Search in sources :

Example 1 with AGroupCounterAndSenderAwareSumPrinter

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

Example 2 with AGroupCounterAndSenderAwareSumPrinter

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

Example 3 with AGroupCounterAndSenderAwareSumPrinter

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

Example 4 with AGroupCounterAndSenderAwareSumPrinter

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);
}
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)4 AGroupCounterAndSenderAwareSumPrinter (inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter)4 ARegisteredEchoer (inputport.rpc.duplex.example.ARegisteredEchoer)2 GroupRPCServerInputPort (inputport.rpc.group.GroupRPCServerInputPort)2 AnAnotherCounter (inputport.rpc.duplex.example.AnAnotherCounter)1 ACounterWithObjectValue (inputport.rpc.group.example.ACounterWithObjectValue)1 GroupRPCSessionPort (sessionport.rpc.group.GroupRPCSessionPort)1