com.cloudtran.replicator.link
Class AbstractLinkProvider

java.lang.Object
  extended by com.cloudtran.replicator.link.AbstractLinkProvider
All Implemented Interfaces:
LinkProvider
Direct Known Subclasses:
LoopbackProvider

public abstract class AbstractLinkProvider
extends Object
implements LinkProvider


Constructor Summary
AbstractLinkProvider()
           
 
Method Summary
 Object deserialize(byte[] bytes)
           
 String getLocalDataCentreName()
           
 String getRemoteDataCentreName()
           
 byte[] serialize(Object object)
           
 void setLink(Link link)
          Set the link to get the disconnect message
 void signalL2Connected()
          This is a hop from the provider, over the LinkProvider, to the Link.
static void test()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cloudtran.replicator.link.LinkProvider
connect, receiveBytes, reset, sendBytes
 

Constructor Detail

AbstractLinkProvider

public AbstractLinkProvider()
Method Detail

setLink

public void setLink(Link link)
Description copied from interface: LinkProvider
Set the link to get the disconnect message

Specified by:
setLink in interface LinkProvider

getLocalDataCentreName

public String getLocalDataCentreName()
Specified by:
getLocalDataCentreName in interface LinkProvider

getRemoteDataCentreName

public String getRemoteDataCentreName()
Specified by:
getRemoteDataCentreName in interface LinkProvider

signalL2Connected

public void signalL2Connected()
This is a hop from the provider, over the LinkProvider, to the Link. The end result is the L2conn prod into the DCConnection will send in


deserialize

public Object deserialize(byte[] bytes)

serialize

public byte[] serialize(Object object)

test

public static void test()