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();
}
Aggregations