use of inputport.rpc.duplex.example.DuplexCounterAndSenderAwareSummer 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);
}
Aggregations