protected void onInvoke(final HandlerContext ctx, final Invocation invocation) LocalObjects.LocalObjectEntry localObjectEntry = objects.findLocalObjectByReference(invocation.getToReference()); if (localObjectEntry != null) final Invocation forwardedInvocation = new Invocation() .withToReference(invocation.getToReference()) .withMethod(invocation.getMethod()) .withOneWay(invocation.isOneWay()) .withMethodId(invocation.getMethodId()) .withParams(invocation.getParams()) .withHeaders(invocation.getHeaders() != null ? new LinkedHashMap<>(invocation.getHeaders()) : null); if (invocation.getCompletion() != null) InternalUtils.linkFutures(write, invocation.getCompletion());
final RemoteReference toReference = invocation.getToReference(); if (toReference instanceof NodeCapabilities) Method method = invocation.getMethod(); if (method == null) method = DefaultDescriptorFactory.get().getInvoker(RemoteReference.getInterfaceClass(toReference)).getMethod(invocation.getMethodId()); final Object[] params = invocation.getParams(); if (params != null && params.length > 0) if (invocation.getHeaders() != null) strParams += " " + invocation.getHeaders(); if (!invocation.isOneWay())
@Override public Task<Void> onNext(final Object data, final StreamSequenceToken sequenceToken) { if (subscription.valid && peer.getPipeline().isActive()) { return peer.getPipeline().write(new Invocation()); } return Task.done(); } }, null);
final RemoteReference toReference = invocation.getToReference(); if (toReference instanceof NodeCapabilities) Method method = invocation.getMethod(); if (method == null) method = DefaultDescriptorFactory.get().getInvoker(RemoteReference.getInterfaceClass(toReference)).getMethod(invocation.getMethodId()); final Object[] params = invocation.getParams(); if (params != null && params.length > 0) if (invocation.getHeaders() != null) strParams += " " + invocation.getHeaders(); if (!invocation.isOneWay())