|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.replication.protocol.ReplicationMessage
org.opends.server.replication.protocol.StartMessage
org.opends.server.replication.protocol.ServerStartMessage
public class ServerStartMessage
This message is used by LDAP server when they first connect. to a replication server to let them know who they are and what is their state (their RUV)
| Field Summary |
|---|
| Fields inherited from class org.opends.server.replication.protocol.StartMessage |
|---|
headerLength |
| Constructor Summary | |
|---|---|
ServerStartMessage(byte[] in)
Creates a new ServerStartMessage from its encoded form. |
|
ServerStartMessage(short serverId,
DN baseDn,
int maxReceiveDelay,
int maxReceiveQueue,
int maxSendDelay,
int maxSendQueue,
int windowSize,
long heartbeatInterval,
ServerState serverState,
short protocolVersion,
long generationId,
boolean sslEncryption,
boolean handshakeOnly)
Creates a new ServerStartMessage. |
|
| Method Summary | |
|---|---|
DN |
getBaseDn()
Get the baseDn. |
byte[] |
getBytes()
Return the byte[] representation of this message. |
long |
getHeartbeatInterval()
Get the heartbeat interval requested by the ldap server that created the message. |
int |
getMaxReceiveDelay()
Get the maxReceiveDelay. |
int |
getMaxReceiveQueue()
Get the maxReceiveQueue. |
int |
getMaxSendDelay()
Get the maxSendDelay. |
int |
getMaxSendQueue()
Get the maxSendQueue. |
short |
getServerId()
Get the ServerID from the message. |
ServerState |
getServerState()
Get the ServerState. |
java.lang.String |
getServerURL()
get the Server URL from the message. |
boolean |
getSSLEncryption()
Get the SSL encryption value for the ldap server that created the message. |
int |
getWindowSize()
Get the window size for the ldap server that created the message. |
boolean |
isHandshakeOnly()
Get the SSL encryption value for the ldap server that created the message. |
| Methods inherited from class org.opends.server.replication.protocol.StartMessage |
|---|
decodeHeader, encodeHeader, getGenerationId, getVersion |
| Methods inherited from class org.opends.server.replication.protocol.ReplicationMessage |
|---|
addByteArray, generateMsg, getNextLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerStartMessage(short serverId,
DN baseDn,
int maxReceiveDelay,
int maxReceiveQueue,
int maxSendDelay,
int maxSendQueue,
int windowSize,
long heartbeatInterval,
ServerState serverState,
short protocolVersion,
long generationId,
boolean sslEncryption,
boolean handshakeOnly)
serverId - The serverId of the server for which the ServerStartMessage
is created.baseDn - The base DN.maxReceiveDelay - The max receive delay for this server.maxReceiveQueue - The max receive Queue for this server.maxSendDelay - The max Send Delay from this server.maxSendQueue - The max send Queue from this server.windowSize - The window size used by this server.heartbeatInterval - The requested heartbeat interval.serverState - The state of this server.protocolVersion - The replication protocol version of the creator.generationId - The generationId for this server.sslEncryption - Whether to continue using SSL to encrypt messages
after the start messages have been exchanged.handshakeOnly - Whether this message is only to get an handshake
with the server or not.
public ServerStartMessage(byte[] in)
throws java.util.zip.DataFormatException
in - The byte array containing the encoded form of the
ServerStartMessage.
java.util.zip.DataFormatException - If the byte array does not contain a valid
encoded form of the ServerStartMessage.| Method Detail |
|---|
public short getServerId()
public java.lang.String getServerURL()
public DN getBaseDn()
public int getMaxReceiveDelay()
public int getMaxReceiveQueue()
public int getMaxSendDelay()
public int getMaxSendQueue()
public ServerState getServerState()
public byte[] getBytes()
getBytes in class ReplicationMessagepublic int getWindowSize()
public long getHeartbeatInterval()
public boolean getSSLEncryption()
public boolean isHandshakeOnly()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||