Search in sources :

Example 1 with ASessionServer

use of port.sessionserver.ASessionServer in project GIPC by pdewan.

the class AReplicatedSessionServerLauncher method launchServer.

public static void launchServer(String aSessionServerName, String aSessionServerPort) {
    Tracer.showInfo(true);
    DuplexRPCServerInputPort serverInputPort = DuplexRPCInputPortSelector.createDuplexRPCServerInputPort("" + aSessionServerPort, aSessionServerName);
    DuplexSingleResponseUtlity.supportSingleResponse(serverInputPort);
    SessionServer sessionServer = new ASessionServer(serverInputPort);
    // RelayerSupportingSessionsServer sessionServer = new ARelayerSupportingSessionsServer(serverInputPort);
    serverInputPort.register(RelayerSupportingSessionServer.class, sessionServer);
    serverInputPort.register(AFaultTolerantSessionPortLauncher.SESSION_SERVER_NAME, sessionServer);
    serverInputPort.connect();
}
Also used : DuplexRPCServerInputPort(inputport.rpc.duplex.DuplexRPCServerInputPort) ASessionServer(port.sessionserver.ASessionServer) ASessionServer(port.sessionserver.ASessionServer) RelayerSupportingSessionServer(port.sessionserver.relay.RelayerSupportingSessionServer) SessionServer(port.sessionserver.SessionServer)

Aggregations

DuplexRPCServerInputPort (inputport.rpc.duplex.DuplexRPCServerInputPort)1 ASessionServer (port.sessionserver.ASessionServer)1 SessionServer (port.sessionserver.SessionServer)1 RelayerSupportingSessionServer (port.sessionserver.relay.RelayerSupportingSessionServer)1