Search in sources :

Example 16 with GroupRPCServerInputPort

use of inputport.rpc.group.GroupRPCServerInputPort 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)

Example 17 with GroupRPCServerInputPort

use of inputport.rpc.group.GroupRPCServerInputPort in project GIPC by pdewan.

the class ARelayerCreator method createRelayer.

public static GroupRPCServerInputPort createRelayer(String relayerId, String relayerName) {
    GroupRPCServerInputPort serverInputPort = GroupRPCInputPortSelector.createGroupRPCServerInputPort(relayerId, relayerName);
    Relayer relayer = new ARelayer(serverInputPort);
    serverInputPort.register(Relayer.class, relayer);
    serverInputPort.register(relayerName, relayer);
    serverInputPort.connect();
    return serverInputPort;
}
Also used : GroupRPCServerInputPort(inputport.rpc.group.GroupRPCServerInputPort)

Example 18 with GroupRPCServerInputPort

use of inputport.rpc.group.GroupRPCServerInputPort in project GIPC by pdewan.

the class ARelayerCreator method createAndConnectToSessionsServer.

public static GroupRPCServerInputPort createAndConnectToSessionsServer(String relayerId, String relayerName, String sessionsServerHost, String sessionsServerId, String sessionsServerName) {
    GroupRPCServerInputPort retVal = createRelayer(relayerId, relayerName);
    registerWithSessionsServer(relayerId, relayerName, sessionsServerHost, sessionsServerId, sessionsServerName);
    return retVal;
}
Also used : GroupRPCServerInputPort(inputport.rpc.group.GroupRPCServerInputPort)

Aggregations

GroupRPCServerInputPort (inputport.rpc.group.GroupRPCServerInputPort)18 ServerPortDescription (port.sessionserver.ServerPortDescription)7 AServerPortDescription (port.sessionserver.AServerPortDescription)6 Adder (sessionport.rpc.duplex.relayed.example.Adder)5 AnAdder (sessionport.rpc.duplex.relayed.example.AnAdder)5 DuplexCounterAndSenderAwareSummer (inputport.rpc.duplex.example.DuplexCounterAndSenderAwareSummer)3 DuplexRPCClientInputPort (inputport.rpc.duplex.DuplexRPCClientInputPort)2 AGroupCounterAndSenderAwareSumPrinter (inputport.rpc.group.example.AGroupCounterAndSenderAwareSumPrinter)2 ARelayer (port.relay.ARelayer)2 Relayer (port.relay.Relayer)2 RelayerSupportingSessionServer (port.sessionserver.relay.RelayerSupportingSessionServer)2 ConnectionListener (inputport.ConnectionListener)1 DuplexRPCServerInputPort (inputport.rpc.duplex.DuplexRPCServerInputPort)1 Scanner (java.util.Scanner)1 PrintingReplyingObjectReceiver (port.old.PrintingReplyingObjectReceiver)1 SessionObserver (port.sessionserver.SessionObserver)1 SessionServer (port.sessionserver.SessionServer)1 ARelayerSupportingSessionServer (port.sessionserver.relay.ARelayerSupportingSessionServer)1 AnOldGroupCallingConnectListener (sessionport.rpc.group.AnOldGroupCallingConnectListener)1