org.opends.server.replication.protocol
Class ProtocolVersion

java.lang.Object
  extended by org.opends.server.replication.protocol.ProtocolVersion

public class ProtocolVersion
extends java.lang.Object

The version utility class for the replication protocol.


Constructor Summary
ProtocolVersion()
           
 
Method Summary
static short currentVersion()
          Specifies the current version of the replication protocol.
static short minWithCurrent(short version)
          Specifies the oldest version of the protocol from the provided one and the current one.
static void setCurrentVersion(short currentVersion)
          For test purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolVersion

public ProtocolVersion()
Method Detail

currentVersion

public static short currentVersion()
Specifies the current version of the replication protocol.

Returns:
The current version of the protocol.

setCurrentVersion

public static void setCurrentVersion(short currentVersion)
For test purpose.

Parameters:
currentVersion - The provided current version.

minWithCurrent

public static short minWithCurrent(short version)
Specifies the oldest version of the protocol from the provided one and the current one.

Parameters:
version - The version to be compared to the current one.
Returns:
The minimal protocol version.