use of inputport.rpc.group.GroupRPCServerInputPort in project GIPC by pdewan.
the class AReplicatedSingleResponseReplicatedGroupSessionServerPortServerLauncher method registerRemoteObjects.
// protected Counter createAndRegisterCounter(RPCRegistry aClientInputPort) {
// Counter counter = new ACounterWithObjectValue();
// aClientInputPort.register(counter);
// return counter;
// }
@Override
protected void registerRemoteObjects() {
GroupRPCServerInputPort aGroupServerInputPort = (GroupRPCServerInputPort) mainPort;
DuplexCounterAndSenderAwareSummer adder = new AGroupCounterAndSenderAwareSumPrinter(aGroupServerInputPort);
aGroupServerInputPort.register(adder);
}
use of inputport.rpc.group.GroupRPCServerInputPort in project GIPC by pdewan.
the class ARelayerCreator method createRelayer.
public static GroupRPCServerInputPort createRelayer(String relayerId, String relayerName) {
GroupRPCServerInputPort serverInputPort = GroupRPCInputPortSelector.createGroupRPCServerInputPort(relayerId, relayerName);
Relayer relayer = new ARelayer(serverInputPort);
serverInputPort.register(Relayer.class, relayer);
serverInputPort.register(relayerName, relayer);
serverInputPort.connect();
return serverInputPort;
}
use of inputport.rpc.group.GroupRPCServerInputPort in project GIPC by pdewan.
the class ARelayerCreator method createAndConnectToSessionsServer.
public static GroupRPCServerInputPort createAndConnectToSessionsServer(String relayerId, String relayerName, String sessionsServerHost, String sessionsServerId, String sessionsServerName) {
GroupRPCServerInputPort retVal = createRelayer(relayerId, relayerName);
registerWithSessionsServer(relayerId, relayerName, sessionsServerHost, sessionsServerId, sessionsServerName);
return retVal;
}
Aggregations