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());
}
}
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();
}
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());
}
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());
}
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());
}
Aggregations