public class DCConnectionManager
- extends Object
Currently, the DCConnectionManager doesn't have much of a role, because we only allow one DCConnection.
Eventually, we will support multiple DCConnections, distinguished by the connection name or possibly the remote DC name,
so that we can replicate different objects over different DCConnections.
The replicator handles *all* connections to other data centres; one DCConnection handles traffic to one remote DC.
As it stands right now,
- we can have multiple inbound DC Connections
- ALL OUTBOUND TRAFFIC GOES TO ALL DCConnections - replication request messages are put onto all the DCConnection's sendData queues.
public static final String LINK_INIT_CLASS_PROPERTY
- See Also:
- Constant Field Values
public static final int pollPeriod
public static final int timeoutPeriod
public static LinkInitializer initializer
public static Link connectedLink
public static boolean connected
public static boolean connecting
public static DCConnectionManager get()
public DCConnection getDefaultDC()
public static void addDCConnection(DCConnection dcc)
public void configure()
public void connect()
- This method is called the ReplicatorElection.run(), which is an Invocable.
We don't want to hang around in there, so we start a separate thread to do the business.
public void sendPackets(ReplicatorOutboundRequest requestFromManager)