public class InitializeTargetMsg extends RoutableMsg
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
InitializeTargetMsg(org.forgerock.opendj.ldap.Dn baseDN,
int serverID,
int destination,
int requestorID,
long entryCount,
int initWindow)
Creates a InitializeTargetMsg.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.Dn |
getBaseDN()
Get the base DN of the domain.
|
byte[] |
getBytes(short version)
Serializes the PDU using the provided replication protocol version.
|
long |
getEntryCount()
Get the number of entries expected to be sent during the export.
|
long |
getInitiatorID()
Get the serverID of the server that initiated the export.
|
int |
getInitWindow()
Get the initializationWindow.
|
void |
setInitWindow(int initWindow)
Set the initWindow value.
|
getDestination, getSenderID, toString
generateMsg
public InitializeTargetMsg(org.forgerock.opendj.ldap.Dn baseDN, int serverID, int destination, int requestorID, long entryCount, int initWindow)
baseDN
- The base DN for which the InitializeMessage is created.serverID
- The serverID of the server that sends this message.destination
- The destination of this message.requestorID
- The server that initiates this export.entryCount
- The count of entries that will be sent.initWindow
- the initialization window.public long getEntryCount()
public long getInitiatorID()
public org.forgerock.opendj.ldap.Dn getBaseDN()
public int getInitWindow()
public byte[] getBytes(short version)
getBytes
in class ReplicationMsg
version
- The protocol version to use for serialization. The version should
normally be older than the current one.null
if the message isn't supported
in that protocol version.public void setInitWindow(int initWindow)
initWindow
- The initialization window.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.