Search in sources :

Example 1 with ADirectObjectDuplexSessionPortFactory

use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.

the class RelayerClientAndServerSupport method setRelayedCommunicaton.

public static void setRelayedCommunicaton(boolean yes) {
    if (yes) {
        ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ARelayingObjectDuplexSessionPortFactory());
        ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new AnObjectGroupSessionPortRelayedFactory());
    } else {
        ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
        ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new ALayeredObjectGroupSessionPortFactory());
    }
}
Also used : ALayeredObjectGroupSessionPortFactory(sessionport.datacomm.group.object.direct.ALayeredObjectGroupSessionPortFactory) ARelayingObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.relayed.ARelayingObjectDuplexSessionPortFactory) ADirectObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory) AnObjectGroupSessionPortRelayedFactory(sessionport.datacomm.group.object.relayed.AnObjectGroupSessionPortRelayedFactory)

Example 2 with ADirectObjectDuplexSessionPortFactory

use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.

the class ADuplexRPCDirectSessionPortLauncher method launchSessionPartipant.

public static void launchSessionPartipant(String anId, String aName, ParticipantChoice aChoice) {
    // Tracer.showInfo(true);
    ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
    // ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(
    // new ARelayingObjectDuplexSessionPortFactory());
    DuplexRPCSessionPort sessionPort = DuplexRPCSessionPortSelector.createDuplexRPCSessionPort("localhost", "" + SESSION_SERVER_PORT, SESSION_SERVER_NAME, "Test Session", anId, aName, aChoice);
    // DuplexRPCSessionPort sessionPort = DuplexRPCSessionPortSelector.createDuplexRPCSessionPort("localhost",
    // "" + SESSION_SERVER_PORT, aSessionServerName, "Test Session", anId, aName,
    // aChoice
    // );
    ConnectionListener connectListener = new ACallingConnectListener(sessionPort);
    sessionPort.addConnectionListener(connectListener);
    Adder adder = new AnAdder();
    sessionPort.register(Adder.class, adder);
    sessionPort.connect();
}
Also used : ACallingConnectListener(sessionport.rpc.duplex.relayed.example.ACallingConnectListener) ADirectObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory) DuplexRPCSessionPort(sessionport.rpc.duplex.DuplexRPCSessionPort) ConnectionListener(inputport.ConnectionListener) AnAdder(sessionport.rpc.duplex.relayed.example.AnAdder) Adder(sessionport.rpc.duplex.relayed.example.Adder) AnAdder(sessionport.rpc.duplex.relayed.example.AnAdder)

Example 3 with ADirectObjectDuplexSessionPortFactory

use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.

the class ADuplexRPCSessionPortDirectLauncherSupport method setFactories.

public void setFactories() {
    super.setFactories();
    ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
}
Also used : ADirectObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory)

Example 4 with ADirectObjectDuplexSessionPortFactory

use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.

the class AStaticSessionDuplexBufferPortLauncherSupport method setP2PFactories.

public static void setP2PFactories() {
    ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
    ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new ALayeredObjectGroupSessionPortFactory());
}
Also used : ALayeredObjectGroupSessionPortFactory(sessionport.datacomm.group.object.direct.ALayeredObjectGroupSessionPortFactory) ADirectObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory)

Example 5 with ADirectObjectDuplexSessionPortFactory

use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.

the class AnObjectGroupSessionPortDirectLauncherSupport method setDirectCommunicaton.

public static void setDirectCommunicaton() {
    ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
    ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new ALayeredObjectGroupSessionPortFactory());
}
Also used : ADirectObjectDuplexSessionPortFactory(sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory)

Aggregations

ADirectObjectDuplexSessionPortFactory (sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory)7 ALayeredObjectGroupSessionPortFactory (sessionport.datacomm.group.object.direct.ALayeredObjectGroupSessionPortFactory)4 ARelayingObjectDuplexSessionPortFactory (sessionport.datacomm.duplex.object.relayed.ARelayingObjectDuplexSessionPortFactory)3 AnEfficientObjectGroupSessionRelayedPortFactory (sessionport.datacomm.group.object.relayed.AnEfficientObjectGroupSessionRelayedPortFactory)2 ConnectionListener (inputport.ConnectionListener)1 AnObjectGroupSessionPortRelayedFactory (sessionport.datacomm.group.object.relayed.AnObjectGroupSessionPortRelayedFactory)1 ALatecomerRelayingGroupConnectionManagerFactory (sessionport.datacomm.group.object.relayed.latecomer.ALatecomerRelayingGroupConnectionManagerFactory)1 DuplexRPCSessionPort (sessionport.rpc.duplex.DuplexRPCSessionPort)1 ACallingConnectListener (sessionport.rpc.duplex.relayed.example.ACallingConnectListener)1 Adder (sessionport.rpc.duplex.relayed.example.Adder)1 AnAdder (sessionport.rpc.duplex.relayed.example.AnAdder)1