minor RemoteService improvements

pull/499/head
Nikita 9 years ago
parent f152c23d57
commit 43e632bfdf

@ -84,14 +84,13 @@ public class RedissonRemoteService implements RRemoteService {
Object result = method.getMethod().invoke(method.getBean(), request.getArgs());
response = new RemoteServiceResponse(result);
} catch (Exception e) {
e.getCause().printStackTrace();
response = new RemoteServiceResponse(e.getCause());
log.error("Can't execute: " + method.getMethod().getName() + " with args: " + request.getArgs(), e);
log.error("Can't execute: " + request, e);
}
long clients = topic.publish(response);
if (clients == 0) {
log.error("None of clients has not received a response for request {}", request);
log.error("None of clients has not received a response for: {}", request);
}
futures.remove(future);

@ -47,7 +47,7 @@ public class RemoteServiceRequest {
@Override
public String toString() {
return "[requestId=" + requestId + ", methodName=" + methodName + ", args="
return "RemoteServiceRequest[requestId=" + requestId + ", methodName=" + methodName + ", args="
+ Arrays.toString(args) + "]";
}

Loading…
Cancel
Save