|
|||||||||
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.ReplServerInfoMessage
public class ReplServerInfoMessage
This class defines a message that is sent by a replication server to the other replication servers in the topology containing the list of LDAP servers directly connected to it. A replication server sends a ReplServerInfoMessage when an LDAP server connects or disconnects. Exchanging these messages allows to have each replication server knowing the complete list of LDAP servers in the topology and their associated replication server and thus take the appropriate decision to route a message to an LDAP server.
Constructor Summary | |
---|---|
ReplServerInfoMessage(byte[] in)
Creates a new changelogInfo message from its encoded form. |
|
ReplServerInfoMessage(java.util.List<java.lang.String> connectedServers,
long generationId)
Creates a new ReplServerInfo message from a list of the currently connected servers. |
Method Summary | |
---|---|
byte[] |
getBytes()
Return the byte[] representation of this message. |
java.util.List<java.lang.String> |
getConnectedServers()
Get the list of servers currently connected to the Changelog server that generated this message. |
long |
getGenerationId()
Get the generationId from this message. |
java.lang.String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public ReplServerInfoMessage(byte[] in) throws java.util.zip.DataFormatException
in
- The byte array containing the encoded form of the message.
java.util.zip.DataFormatException
- If the byte array does not
contain a valid encoded form of the message.public ReplServerInfoMessage(java.util.List<java.lang.String> connectedServers, long generationId)
connectedServers
- The list of currently connected servers ID.generationId
- The generationId currently associated with this
domain.Method Detail |
---|
public byte[] getBytes()
getBytes
in class ReplicationMessage
public java.util.List<java.lang.String> getConnectedServers()
public long getGenerationId()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |