use of inputport.rpc.duplex.DuplexRPCClientInputPort in project GIPC by pdewan.
the class ARelayerCreator method registerWithSessionsServer.
public static void registerWithSessionsServer(String relayerId, String relayerName, String sessionsServerHost, String sessionsServerId, String sessionsServerName) {
ServerPortDescription serverPortDescription = new AServerPortDescription("localhost", relayerId, relayerName);
DuplexRPCClientInputPort sessionServerClientPort = DuplexRPCInputPortSelector.createDuplexRPCClientInputPort(sessionsServerHost, sessionsServerId, sessionsServerName, relayerName);
RelayerSupportingSessionServer sessionsServer = (RelayerSupportingSessionServer) DirectedRPCProxyGenerator.generateRPCProxy(sessionServerClientPort, null, RelayerSupportingSessionServer.class, sessionsServerName);
sessionServerClientPort.connect();
sessionsServer.setRelayerDescripton(serverPortDescription);
}
use of inputport.rpc.duplex.DuplexRPCClientInputPort in project GIPC by pdewan.
the class AnMVCServerSessionConnectionListener method initInputPort.
@Override
public void initInputPort(InputPort anInputPort) {
inputPort = (DuplexRPCClientInputPort) anInputPort;
// create and set proxies
DuplexUpperCaser upperCaseProxy = (DuplexUpperCaser) DirectedRPCProxyGenerator.generateRPCProxy((DuplexRPCClientInputPort) inputPort, ADuplexRPCServerMVCLauncher.REGISTERED_DUPLEX_UPPER_CASER_CLASS);
model.setUpperCaser(upperCaseProxy);
// register remote object
((DuplexRPCClientInputPort) inputPort).register(model.getCounter());
}
Aggregations