com.cloudtran.replicator.link
Class LoopbackInitializer

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

public class LoopbackInitializer
extends AbstractLinkInitializer

This class is never going to run for real. All it does is allow us to test the path from the MEL event back to putting into the grid. It will run on the same box and then just duplicate the puts into the grid and the persistence (which will happen twice).


Constructor Summary
LoopbackInitializer()
           
 
Method Summary
 List<LinkProvider> initialize(boolean thisMachineIsServer, String remoteName, 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

LoopbackInitializer

public LoopbackInitializer()
Method Detail

initialize

public List<LinkProvider> initialize(boolean thisMachineIsServer,
                                     String remoteName,
                                     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.