org.opends.server.replication.server
Class ReplicationData

java.lang.Object
  extended by com.sleepycat.je.DatabaseEntry
      extended by org.opends.server.replication.server.ReplicationData

public class ReplicationData
extends com.sleepycat.je.DatabaseEntry

SuperClass of DatabaseEntry used for data stored in the ReplicationServer Databases.


Field Summary
 
Fields inherited from class com.sleepycat.je.DatabaseEntry
MAX_DUMP_BYTES
 
Constructor Summary
ReplicationData(UpdateMessage change)
          Creates a new ReplicationData object from an UpdateMessage.
 
Method Summary
static UpdateMessage generateChange(byte[] data)
          Generate an UpdateMessage from its byte[] form.
 
Methods inherited from class com.sleepycat.je.DatabaseEntry
equals, getData, getOffset, getPartial, getPartialLength, getPartialOffset, getSize, hashCode, setData, setData, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setSize, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicationData

public ReplicationData(UpdateMessage change)
                throws java.io.UnsupportedEncodingException
Creates a new ReplicationData object from an UpdateMessage.

Parameters:
change - the UpdateMessage used to create the ReplicationData.
Throws:
java.io.UnsupportedEncodingException - When the encoding of the message failed because the UTF-8 encoding is not supported.
Method Detail

generateChange

public static UpdateMessage generateChange(byte[] data)
                                    throws java.lang.Exception
Generate an UpdateMessage from its byte[] form.

Parameters:
data - The DatabaseEntry used to generate the UpdateMessage.
Returns:
The generated change.
Throws:
java.lang.Exception - When the data was not a valid Update Message.