com.continuent.tungsten.replicator.thl
Class ProtocolHandshake

java.lang.Object
  extended by com.continuent.tungsten.replicator.thl.ProtocolMessage
      extended by com.continuent.tungsten.replicator.thl.ProtocolHandshake
All Implemented Interfaces:
java.io.Serializable

public class ProtocolHandshake
extends ProtocolMessage

This class defines a ProtocolHandshake, which is sent from the master to a slave as the slave connects. Masters offer capabilities to slaves.

See Also:
Serialized Form

Constructor Summary
ProtocolHandshake()
          Create a new instance.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getCapabilities()
          Returns the current capability settings or null if no capabilities exist.
 java.lang.String getCapability(java.lang.String name)
          Gets a capability value.
 void setCapability(java.lang.String name, java.lang.String value)
          Sets a capability to a particular value.
 
Methods inherited from class com.continuent.tungsten.replicator.thl.ProtocolMessage
getPayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolHandshake

public ProtocolHandshake()
Create a new instance.

Method Detail

setCapability

public void setCapability(java.lang.String name,
                          java.lang.String value)
Sets a capability to a particular value.


getCapability

public java.lang.String getCapability(java.lang.String name)
Gets a capability value.


getCapabilities

public java.util.Map<java.lang.String,java.lang.String> getCapabilities()
Returns the current capability settings or null if no capabilities exist. Older replicators do not return capabilities.