Uses of Class
org.opends.server.replication.common.ServerState
-
Packages that use ServerState Package Description org.opends.server.replication.common This package contains utilities that can are used by all the packages below org.opends.server.replication.org.opends.server.replication.plugin This package contains the part of the Multi-master replication code that works on the Directory Server side.org.opends.server.replication.protocol This package contains the code used by the replication server and by the code running on the Directory Server side to exchange their information.org.opends.server.replication.server This package contains the code for the Replication Server part of the Multimaster replication feature.org.opends.server.replication.server.changelog.api This package contains the API for the changelog database.org.opends.server.replication.server.changelog.file This package contains a file-based log implementation for the changelog database API.org.opends.server.replication.service This package contains the generic of the Multi-Master replication code that works on the Directory Server side. -
-
Uses of ServerState in org.opends.server.replication.common
Methods in org.opends.server.replication.common that return ServerState Modifier and Type Method Description ServerState
ServerState. duplicate()
Make a duplicate of this state.ServerState
MultiDomainServerState. getServerState(Dn baseDN)
Returns the ServerState associated to the provided replication domain's baseDN.Methods in org.opends.server.replication.common with parameters of type ServerState Modifier and Type Method Description void
CSNGenerator. adjust(ServerState state)
Adjust utility method that takes ServerState as a parameter.static int
ServerState. countNbChanges(ServerState ss1, ServerState ss2)
Unreliably computes the number of changes a first server state has in advance compared to a second server state.boolean
ServerState. cover(ServerState covered)
Check that all the CSNs in the covered serverState are also in this serverState.static CSNGenerator
CSNGenerator. newCSNGenerator(ReplicaId replicaId, ServerState state)
Create a newCSNGenerator
.void
MultiDomainServerState. replace(Dn baseDN, ServerState serverState)
Replace the ServerState of the provided baseDN with the provided server state.void
MultiDomainServerState. update(Dn baseDN, ServerState serverState)
Update the ServerState of the provided baseDN with the provided server state. -
Uses of ServerState in org.opends.server.replication.plugin
Methods in org.opends.server.replication.plugin with parameters of type ServerState Modifier and Type Method Description void
LDAPReplicationDomain. sessionInitiated(ServerStatus initStatus, ServerState rsState, ServerState newestChangelogStateOfReplica)
-
Uses of ServerState in org.opends.server.replication.protocol
Methods in org.opends.server.replication.protocol that return ServerState Modifier and Type Method Description ServerState
MonitorMsg. getReplServerDbState()
Get the state of the replication server that sent this message.ServerState
ExtendedStartMsg. getServerState()
Returns the ServerState in this message.ServerState
ReplServerStartDSMsg. getServerState()
Get the serverState.ServerState
ReplServerStartMsg. getServerState()
Get the serverState.ServerState
ServerStartMsg. getServerState()
Get the ServerState.ServerState
ByteArrayScanner. nextServerStateMustComeLast()
Reads the next ServerState.Methods in org.opends.server.replication.protocol that return types with arguments of type ServerState Modifier and Type Method Description Map<Integer,ServerState>
MonitorMsg. getReplicaServerStates()
Returns the map of replica Ids to server states.Map<Integer,ServerState>
MonitorMsg. getRsServerStates()
Returns the map of replication server Ids to server states.Methods in org.opends.server.replication.protocol with parameters of type ServerState Modifier and Type Method Description ByteArrayBuilder
ByteArrayBuilder. appendServerStateMustComeLast(ServerState serverState)
Append the byte representation of a ServerState to this ByteArrayBuilder and then append a final zero byte separator.ExtendedStartMsg
Session. performExtendedHandshake(ServerId<?> serverId, com.forgerock.opendj.discovery.GroupId groupId, ServerState state)
Performs extended handshake to exchange additional information.void
MonitorMsg. setReplServerDbState(ServerState state)
Sets the state of the replication server.void
MonitorMsg. setServerState(int serverId, ServerState state, boolean isReplicaServer)
Sets the information of an LDAP server.Constructors in org.opends.server.replication.protocol with parameters of type ServerState Constructor Description ExtendedStartMsg(ServerId<?> serverId, com.forgerock.opendj.discovery.GroupId groupId, ProcessId processId, ServerState state)
Constructs an ExtendedStartMsg replication message for sending.ReplServerStartDSMsg(ReplicationServerId rsId, com.forgerock.opendj.util.HostPort hostPort, Dn baseDN, ServerState serverState, long generationId, boolean sslEncryption, com.forgerock.opendj.discovery.GroupId groupId, int degradedStatusThreshold, int weight, int connectedDSNumber)
Create a ReplServerStartDSMsg.ReplServerStartMsg(ReplicationServerId rsId, com.forgerock.opendj.util.HostPort rsHostPort, Dn baseDN, ServerState serverState, long generationId, boolean sslEncryption, com.forgerock.opendj.discovery.GroupId groupId, int degradedStatusThreshold)
Create a ReplServerStartMsg.ServerStartMsg(ReplicaId replicaId, com.forgerock.opendj.util.HostPort hostPort, Dn baseDN, long heartbeatInterval, ServerState serverState, long generationId, boolean sslEncryption, com.forgerock.opendj.discovery.GroupId groupId)
Creates a new ServerStartMsg. -
Uses of ServerState in org.opends.server.replication.server
Methods in org.opends.server.replication.server that return ServerState Modifier and Type Method Description ServerState
ReplicationServerDomain. getLatestServerState()
Returns the latest most current ServerState describing the newest CSNs for each server in this domain.ServerState
ReplicationServerDomain. getOldestState()
Returns the oldest known state for the domain, made of the oldest CSN stored for each replica id.Methods in org.opends.server.replication.server with parameters of type ServerState Modifier and Type Method Description Flowable<UpdateRecord>
ReplicationServerDomain. getPublisher(String name, Dn baseDn, ServerState startState, ServerState endState)
Returns a publisher of changes from the provided domain, using the provided states to determine the starting and ending points of each replica of the domain. -
Uses of ServerState in org.opends.server.replication.server.changelog.api
Methods in org.opends.server.replication.server.changelog.api that return ServerState Modifier and Type Method Description ServerState
ReplicationDomainDB. getDomainNewestCSNs(Dn baseDN)
Returns the newestCSN
s from the replicaDBs for each replica id in the specified replication domain.ServerState
ReplicationDomainDB. getDomainOldestCSNs(Dn baseDN)
Returns the oldestCSN
s from the replicaDBs for each replica id in the specified replication domain.ServerState
RemovedReplicasStates. getLastMessages()
Returns the CSNs of the last messages for all removed replicas.ServerState
RemovedReplicasStates. getLastUpdates()
Returns the CSNs of the lastLDAPUpdateMsg
for all removed replicas.Methods in org.opends.server.replication.server.changelog.api with parameters of type ServerState Modifier and Type Method Description static RemovedReplicasStates
RemovedReplicasStates. fromStates(ServerState lastUpdates, ServerState lastMessages)
Initializes the removed replica states with information read from an external source, typically on disk.DBCursor<UpdateMsg>
ReplicationDomainDB. getCursorFrom(Dn baseDN, ServerState startState, DBCursor.CursorOptions options)
Generates aDBCursor
across all the replicaDBs for the specified replication domain starting before, at or after the providedServerState
for each replicaDB, depending on the provided matching and positioning strategies.Flowable<UpdateRecord>
ReplicationDomainDB. getPublisherForDomain(String name, Dn domain, ServerState startState, ServerState endState)
Returns a publisher of changes from the provided domain, using the provided states to determine the starting and ending points of each replica of the domain. -
Uses of ServerState in org.opends.server.replication.server.changelog.file
Methods in org.opends.server.replication.server.changelog.file that return ServerState Modifier and Type Method Description ServerState
FileChangelogDB. getDomainNewestCSNs(Dn baseDN)
ServerState
FileChangelogDB. getDomainOldestCSNs(Dn baseDN)
ServerState
ReplicationEnvironment.DomainState. lastMsgs()
Returns the state containing the CSNs of the last UpdateMsg.ServerState
ReplicationEnvironment.DomainState. lastUpdates()
Returns the state containing the CSNs of the last LDAPUpdateMsg.Methods in org.opends.server.replication.server.changelog.file with parameters of type ServerState Modifier and Type Method Description void
MultiDomainDBCursor. addDomain(Dn baseDN, ServerState startAfterState)
Adds a replication domain for this cursor to iterate over.DBCursor<UpdateMsg>
FileChangelogDB. getCursorFrom(Dn baseDN, ServerState startState, DBCursor.CursorOptions options)
Flowable<UpdateRecord>
FileChangelogDB. getPublisherForDomain(String name, Dn baseDn, ServerState startState, ServerState endState)
Constructors in org.opends.server.replication.server.changelog.file with parameters of type ServerState Constructor Description DomainState(Dn domainDn, String domainId, ServerState lastUpdates, ServerState lastMsgs)
Create a new domain state. -
Uses of ServerState in org.opends.server.replication.service
Methods in org.opends.server.replication.service that return ServerState Modifier and Type Method Description ServerState
ReplicationDomain. getServerState()
Get the ServerState maintained by the Concrete class.Methods in org.opends.server.replication.service with parameters of type ServerState Modifier and Type Method Description void
ReplicationDomain. sessionInitiated(ServerStatus initStatus, ServerState rsState, ServerState newestChangelogStateOfReplica)
Set the initial status of the domain and perform necessary initializations.Constructors in org.opends.server.replication.service with parameters of type ServerState Constructor Description ReplicationBroker(ServerContext serverContext, ReplicationDomain replicationDomain, ServerState state, ReplicationDomainCfg config, ReplSessionSecurity replSessionSecurity)
Creates a new ReplicationServer Broker for a particular ReplicationDomain.
-