use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.
the class RelayerClientAndServerSupport method setEfficientRelayedCommunicaton.
public static void setEfficientRelayedCommunicaton(boolean yes) {
if (yes) {
ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ARelayingObjectDuplexSessionPortFactory());
ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new AnEfficientObjectGroupSessionRelayedPortFactory());
} else {
ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new ALayeredObjectGroupSessionPortFactory());
}
}
use of sessionport.datacomm.duplex.object.direct.ADirectObjectDuplexSessionPortFactory in project GIPC by pdewan.
the class ALatecomerRelayerAndSessionServerLauncherSupport method setLatecomerRelayedCommunicaton.
public static void setLatecomerRelayedCommunicaton(boolean yes) {
if (yes) {
ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ARelayingObjectDuplexSessionPortFactory());
// ObjectGroupSessionPortSelector.setGroupSessionPortFactory(
// new ALatecomerObjectGroupSessionRelayedPortFactory());
ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new AnEfficientObjectGroupSessionRelayedPortFactory());
RelayingGroupConnectionManagerSelector.setRelayingGroupConnectionManagerFactory(new ALatecomerRelayingGroupConnectionManagerFactory());
} else {
ObjectDuplexSessionPortSelector.setDuplexSessionPortFactory(new ADirectObjectDuplexSessionPortFactory());
ObjectGroupSessionPortSelector.setGroupSessionPortFactory(new ALayeredObjectGroupSessionPortFactory());
}
}
Aggregations