Class ProtocolVersion
- java.lang.Object
-
- org.opends.server.replication.protocol.ProtocolVersion
-
public class ProtocolVersion extends Object
The version utility class for the replication protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static shortREPLICATION_PROTOCOL_V1The constant for the first historical version of the replication protocol.static shortREPLICATION_PROTOCOL_V1_REALThe constant for the real value of the first historical version of the replication protocol (was used in start messages only).static shortREPLICATION_PROTOCOL_V2The constant for the second version of the replication protocol.static shortREPLICATION_PROTOCOL_V3The constant for the 3rd version of the replication protocol.static shortREPLICATION_PROTOCOL_V4The constant for the 4th version of the replication protocol.static shortREPLICATION_PROTOCOL_V5The constant for the 5th version of the replication protocol.static shortREPLICATION_PROTOCOL_V6The constant for the 6th version of the replication protocol.static shortREPLICATION_PROTOCOL_V7The constant for the 7th version of the replication protocol.static shortREPLICATION_PROTOCOL_V8The constant for the 8th version of the replication protocol.
-
Constructor Summary
Constructors Constructor Description ProtocolVersion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static shortgetCompatibleVersion(short version)Specifies the oldest version of the protocol from the provided one and the current one.static shortgetCurrentVersion()Gets the current version of the replication protocol.
-
-
-
Field Detail
-
REPLICATION_PROTOCOL_V1
public static final short REPLICATION_PROTOCOL_V1
The constant for the first historical version of the replication protocol.- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V1_REAL
public static final short REPLICATION_PROTOCOL_V1_REAL
The constant for the real value of the first historical version of the replication protocol (was used in start messages only).- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V2
public static final short REPLICATION_PROTOCOL_V2
The constant for the second version of the replication protocol.- Add fields in the header for assured replication.
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V3
public static final short REPLICATION_PROTOCOL_V3
The constant for the 3rd version of the replication protocol.- Add messages for remote ECL : not used as of today.
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V4
public static final short REPLICATION_PROTOCOL_V4
The constant for the 4th version of the replication protocol.- Add to the body of the ADD/MOD/MODDN/DEL msgs, a list of attribute for ECL entry attributes.
- Modified algorithm for choosing a RS to connect to: introduction of a ReplicationServerDSMsg message.
- also added of the server URL in RSInfo of TopologyMsg
- Introduction of a StopMsg for proper connections ending.
- Initialization failover/flow control
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V5
public static final short REPLICATION_PROTOCOL_V5
The constant for the 5th version of the replication protocol.- Add support for wild-cards in change log included attributes
- Add support for specifying additional included attributes for deletes
- See OPENDJ-194.
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V6
public static final short REPLICATION_PROTOCOL_V6
The constant for the 6th version of the replication protocol.- include DS local URL in the DSInfo of TopologyMsg.
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V7
public static final short REPLICATION_PROTOCOL_V7
The constant for the 7th version of the replication protocol.- compact encoding for length, CSNs, and server IDs.
- See Also:
- Constant Field Values
-
REPLICATION_PROTOCOL_V8
public static final short REPLICATION_PROTOCOL_V8
The constant for the 8th version of the replication protocol.- New ReplicaOfflineMsg.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentVersion
public static short getCurrentVersion()
Gets the current version of the replication protocol.- Returns:
- The current version of the protocol.
-
getCompatibleVersion
public static short getCompatibleVersion(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.
-
-