You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through the totdo-Statd tutorial the 'TodoServiceMain' class spat out the not found error, it appears to centre around this statement :
final ServiceManagementBundle serviceManagementBundle =
serviceManagementBundleBuilder().setServiceName("TodoServiceImpl")
.setManagedServiceBuilder(managedServiceBuilder).build();
Admittedly Java is not my first language so not certain if I failed to do something.
Also, I had to replace some code in the 'TodoServiceImpl' class in order to get it to compile, see below for an example, was this the right thing to do?
@Override
@POST(value = "/todo")
public Promise<Boolean> addTodo(final Todo todo) {
return invokablePromise(promise -> {
/** Send KPI addTodo called every time the addTodo method gets called. */
mgmt.increment("addTodo.called");
todoMap.put(todo.getId(), todo);
//promise.accept(true); // **This line was removed**
promise.resolve(true); // **and replaced by this one**
});
}
Any help would be most appreciated.
Mark
The text was updated successfully, but these errors were encountered:
Going through the totdo-Statd tutorial the 'TodoServiceMain' class spat out the not found error, it appears to centre around this statement :
final ServiceManagementBundle serviceManagementBundle =
serviceManagementBundleBuilder().setServiceName("TodoServiceImpl")
.setManagedServiceBuilder(managedServiceBuilder).build();
Admittedly Java is not my first language so not certain if I failed to do something.
Also, I had to replace some code in the 'TodoServiceImpl' class in order to get it to compile, see below for an example, was this the right thing to do?
Any help would be most appreciated.
Mark
The text was updated successfully, but these errors were encountered: