@Override protected void handle(FabricConnection connection, int rpcType, byte[] pBody, ByteBuf dBody, ResponseSender sender) throws RpcException { handler.handle(connection.getIdentity(), localIdentity, connection, rpcType, pBody, dBody, sender); }
@Override public FabricRunnerFactory getProtocol(int id) { FabricProtocol protocol = handler.getProtocol(id); return new RunnerFactory(protocol); }
@Override public FabricRunnerFactory registerProtocol(FabricProtocol protocol) { handler.registerProtocol(protocol); return new RunnerFactory(protocol); }
protected FabricServer newFabricServer() throws Exception { return new FabricServer(getAddress(), getHandler(), getRpcConfig(), getAllocator(), getRegistry(), getEventLoop()); }
@Override public void doRpcCall(RpcOutcomeListener<ReflectionRPC.ReflectionInfoResp> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, ReflectionRPC.RpcType.REQ_REFLECTION_INFO, reflectionStatusRequest, ReflectionRPC .ReflectionInfoResp.class); } }
@Override public <R extends MessageLite, C extends RpcCommand<R, ProxyConnection>> void runCommand(C cmd) { manager.runCommand(new ProxyCommand<>(cmd, protocol)); }
@Override public void doRpcCall(RpcOutcomeListener<Ack> outcomeListener, ProxyConnection connection) { connection.sendUnsafe(outcomeListener, RpcType.REQ_NODE_QUERY_STATUS, status, Ack.class); } }
@SuppressWarnings("unchecked") @Override public FabricConnection initRemoteConnection(SocketChannel channel) { return new FabricConnection("fabric client", channel, this, allocator); }
@Override protected void handle(FabricConnection connection, int rpcType, byte[] pBody, ByteBuf dBody, ResponseSender sender) throws RpcException { handler.handle(remoteIdentity, localIdentity, connection, rpcType, pBody, dBody, sender); }
@Override protected BufferAllocator getAllocator() { return connection.getAllocator(); }
@Override public void doRpcCall(RpcOutcomeListener<ReflectionRPC.RefreshInfoResp> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, ReflectionRPC.RpcType.REQ_REFRESH_INFO, refreshInfoRequest, ReflectionRPC .RefreshInfoResp.class); } }
@Override public void doRpcCall(RpcOutcomeListener<Ack> outcomeListener, ProxyConnection connection) { connection.sendUnsafe(outcomeListener, type, handle, Ack.class); }
@Override public void doRpcCall(RpcOutcomeListener<M> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, rpcType, request, clazz); } }
@Override public void doRpcCall(RpcOutcomeListener<Ack> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, RpcType.REQ_RECEIVER_FINISHED, finishedReceiver, Ack.class); } }
@Override public void doRpcCall(RpcOutcomeListener<Ack> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, RpcType.REQ_QUERY_CANCEL, jobCancelRequest, Ack.class); } }
@Override public void doRpcCall(RpcOutcomeListener<ReflectionRPC.DependencyInfoResp> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, ReflectionRPC.RpcType.REQ_DEPENDENCY_INFO, dependencyInfoRequest, ReflectionRPC .DependencyInfoResp.class); } }
@Override public void doRpcCall(RpcOutcomeListener<Ack> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, rpcType, wrapper, Ack.class); } }
@Override public void doRpcCall(RpcOutcomeListener<WriteDataResponse> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, RpcType.WRITE_DATA_REQUEST, request, WriteDataResponse.class, buf); } }
@Override public void doRpcCall(RpcOutcomeListener<QueryProfile> outcomeListener, ProxyConnection connection) { connection.send(outcomeListener, RpcType.REQ_QUERY_PROFILE, queryId, QueryProfile.class); } }