Search in sources :

Example 1 with AnAnotherCounter

use of inputport.rpc.duplex.example.AnAnotherCounter 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 AnAnotherCounter

use of inputport.rpc.duplex.example.AnAnotherCounter in project GIPC by pdewan.

the class ADuplexRPCClientInputPortLauncher method createAndRegisterCounter.

protected AnotherCounter createAndRegisterCounter(RPCRegistry aClientInputPort) {
    AnotherCounter counter = new AnAnotherCounter();
    aClientInputPort.register(counter);
    return counter;
}
Also used : AnAnotherCounter(inputport.rpc.duplex.example.AnAnotherCounter) AnAnotherCounter(inputport.rpc.duplex.example.AnAnotherCounter) AnotherCounter(inputport.rpc.duplex.example.AnotherCounter)

Aggregations

AnAnotherCounter (inputport.rpc.duplex.example.AnAnotherCounter)2 ARegisteredEchoer (inputport.rpc.duplex.example.ARegisteredEchoer)1 AnotherCounter (inputport.rpc.duplex.example.AnotherCounter)1 DuplexCounterAndSenderAwareSummer (inputport.rpc.duplex.example.DuplexCounterAndSenderAwareSummer)1 ACounterWithObjectValue (inputport.rpc.group.example.ACounterWithObjectValue)1 AGroupCounterAndSenderAwareSumPrinter (inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter)1