Search in sources :

Example 16 with DuplexRPCClientInputPort

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);
}
Also used : ServerPortDescription(port.sessionserver.ServerPortDescription) AServerPortDescription(port.sessionserver.AServerPortDescription) RelayerSupportingSessionServer(port.sessionserver.relay.RelayerSupportingSessionServer) DuplexRPCClientInputPort(inputport.rpc.duplex.DuplexRPCClientInputPort) AServerPortDescription(port.sessionserver.AServerPortDescription)

Example 17 with DuplexRPCClientInputPort

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());
}
Also used : DuplexUpperCaser(examples.mvc.local.duplex.DuplexUpperCaser) DuplexRPCClientInputPort(inputport.rpc.duplex.DuplexRPCClientInputPort)

Aggregations

DuplexRPCClientInputPort (inputport.rpc.duplex.DuplexRPCClientInputPort)17 ConnectionListener (inputport.ConnectionListener)4 Scanner (java.util.Scanner)4 AnObjectGroupSendingConnectListener (sessionport.datacomm.group.object.example.AnObjectGroupSendingConnectListener)4 AnEchoingObjectReceiveListener (port.delay.example.AnEchoingObjectReceiveListener)3 AnObjectGroupSendingReceiveListener (port.delay.example.AnObjectGroupSendingReceiveListener)3 AServerPortDescription (port.sessionserver.AServerPortDescription)3 ServerPortDescription (port.sessionserver.ServerPortDescription)3 Adder (sessionport.rpc.duplex.relayed.example.Adder)3 AnAdder (sessionport.rpc.duplex.relayed.example.AnAdder)3 ACounter (examples.mvc.local.duplex.ACounter)2 DuplexUpperCaser (examples.mvc.local.duplex.DuplexUpperCaser)2 GroupRPCServerInputPort (inputport.rpc.group.GroupRPCServerInputPort)2 RelayerSupportingSessionServer (port.sessionserver.relay.RelayerSupportingSessionServer)2 RPCProxyGenerator (inputport.rpc.RPCProxyGenerator)1 ADuplexRPCInputPortLauncherSupport (inputport.rpc.duplex.ADuplexRPCInputPortLauncherSupport)1 PrintingTypedReceiveListener (oldtypedip.PrintingTypedReceiveListener)1 PrintingTypedReceiveListener (port.old.PrintingTypedReceiveListener)1 ARelayer (port.relay.ARelayer)1 Relayer (port.relay.Relayer)1