use of inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter in project GIPC by pdewan.
the class AnOldGroupRPCStaticSessionPortLauncher method registerMethods.
// public static void displayConnections() {
// ConnectionEventListener connectionManager = new AConnectionEventManager();
// DistEventsBus.addConnectionEventListener(connectionManager);
// ObjectEditor.edit(connectionManager);
// }
public static void registerMethods(GroupRPCSessionPort rpcPort) {
DuplexCounterAndSenderAwareSummer adder = new AGroupCounterAndSenderAwareSumPrinter(rpcPort);
rpcPort.register(DuplexCounterAndSenderAwareSummer.class, adder);
registerdEchoer = new ARegisteredEchoer();
rpcPort.register(AnotherEchoer.class, registerdEchoer);
counter = new AnAnotherCounter();
counter = new ACounterWithObjectValue();
rpcPort.register(CounterWithObjectValue.class, counter);
rpcPort.register(AnotherCounter.class, counter);
}
use of inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter in project GIPC by pdewan.
the class AGroupRPCStaticSessionPortLauncher method registerRemoteObjects.
@Override
protected void registerRemoteObjects() {
super.registerRemoteObjects();
GroupRPCSessionPort aGroupRPCSessionPort = (GroupRPCSessionPort) mainPort;
DuplexCounterAndSenderAwareSummer adder = new AGroupCounterAndSenderAwareSumPrinter(aGroupRPCSessionPort);
aGroupRPCSessionPort.register(DuplexCounterAndSenderAwareSummer.class, adder);
// registerdEchoer = new AnEchoer();
registerdEchoer = new ARegisteredEchoer();
// aGroupRPCSessionPort.register(Echoer.class, registerdEchoer);
aGroupRPCSessionPort.register(ARegisteredEchoer.class, registerdEchoer);
// counter = new ACounter();
// counter = new ACounterWithObjectValue();
// aGroupRPCSessionPort.register(CounterWithObjectValue.class, counter);
// aGroupRPCSessionPort.register(Counter.class, counter);
}
use of inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter in project GIPC by pdewan.
the class ASingleResponseReplicatedGroupSessionPortServerLauncher 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.example.AGroupCounterAndSenderAwareSumPrinter 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