com.cloudtran.replicator.link
Class SocketLinkInitializer

java.lang.Object
  extended by com.cloudtran.replicator.link.AbstractLinkInitializer
      extended by com.cloudtran.replicator.link.SocketLinkInitializer
All Implemented Interfaces:
LinkInitializer

public class SocketLinkInitializer
extends AbstractLinkInitializer

TCP Socket implementation of LinkInitializer


Constructor Summary
SocketLinkInitializer()
           
 
Method Summary
 List<LinkProvider> initialize(boolean thisEndIsServer, String remoteDataCenterName, int port, List<InetAddress> inetAddresses)
          Same as the String form, but the initialization string is converted into a list of InetAddress's.
 
Methods inherited from class com.cloudtran.replicator.link.AbstractLinkInitializer
initialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketLinkInitializer

public SocketLinkInitializer()
Method Detail

initialize

public List<LinkProvider> initialize(boolean thisEndIsServer,
                                     String remoteDataCenterName,
                                     int port,
                                     List<InetAddress> inetAddresses)
Description copied from interface: LinkInitializer
Same as the String form, but the initialization string is converted into a list of InetAddress's. The format of the string will be validated, but no connection is made by the replication framework, so the initialize() method must be prepared for the remote machine to be temporarily unavailable.

Returns:
null if the links cannot be configured.