Search in sources :

Example 6 with DuplexCounterAndSenderAwareSummer

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);
}
Also used : DuplexCounterAndSenderAwareSummer(inputport.rpc.duplex.example.DuplexCounterAndSenderAwareSummer) AGroupCounterAndSenderAwareSumPrinter(inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter) GroupRPCServerInputPort(inputport.rpc.group.GroupRPCServerInputPort)

Aggregations

DuplexCounterAndSenderAwareSummer (inputport.rpc.duplex.example.DuplexCounterAndSenderAwareSummer)6 AGroupCounterAndSenderAwareSumPrinter (inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter)4 GroupRPCServerInputPort (inputport.rpc.group.GroupRPCServerInputPort)3 ARegisteredEchoer (inputport.rpc.duplex.example.ARegisteredEchoer)2 GroupRPCSessionPort (sessionport.rpc.group.GroupRPCSessionPort)2 AnAnotherCounter (inputport.rpc.duplex.example.AnAnotherCounter)1 AnUnregisteredEchoer (inputport.rpc.duplex.example.AnUnregisteredEchoer)1 ACounterWithObjectValue (inputport.rpc.group.example.ACounterWithObjectValue)1 Scanner (java.util.Scanner)1