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 ServerStateServerState. duplicate()Make a duplicate of this state.ServerStateMultiDomainServerState. 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 voidCSNGenerator. adjust(ServerState state)Adjust utility method that takes ServerState as a parameter.static intServerState. countNbChanges(ServerState ss1, ServerState ss2)Unreliably computes the number of changes a first server state has in advance compared to a second server state.booleanServerState. cover(ServerState covered)Check that all the CSNs in the covered serverState are also in this serverState.static CSNGeneratorCSNGenerator. newCSNGenerator(ReplicaId replicaId, ServerState state)Create a newCSNGenerator.voidMultiDomainServerState. replace(Dn baseDN, ServerState serverState)Replace the ServerState of the provided baseDN with the provided server state.voidMultiDomainServerState. 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 voidLDAPReplicationDomain. 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 ServerStateMonitorMsg. getReplServerDbState()Get the state of the replication server that sent this message.ServerStateExtendedStartMsg. getServerState()Returns the ServerState in this message.ServerStateReplServerStartDSMsg. getServerState()Get the serverState.ServerStateReplServerStartMsg. getServerState()Get the serverState.ServerStateServerStartMsg. getServerState()Get the ServerState.ServerStateByteArrayScanner. 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 ByteArrayBuilderByteArrayBuilder. appendServerStateMustComeLast(ServerState serverState)Append the byte representation of a ServerState to this ByteArrayBuilder and then append a final zero byte separator.ExtendedStartMsgSession. performExtendedHandshake(ServerId<?> serverId, com.forgerock.opendj.discovery.GroupId groupId, ServerState state)Performs extended handshake to exchange additional information.voidMonitorMsg. setReplServerDbState(ServerState state)Sets the state of the replication server.voidMonitorMsg. 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 ServerStateReplicationServerDomain. getLatestServerState()Returns the latest most current ServerState describing the newest CSNs for each server in this domain.ServerStateReplicationServerDomain. 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 ServerStateReplicationDomainDB. getDomainNewestCSNs(Dn baseDN)Returns the newestCSNs from the replicaDBs for each replica id in the specified replication domain.ServerStateReplicationDomainDB. getDomainOldestCSNs(Dn baseDN)Returns the oldestCSNs from the replicaDBs for each replica id in the specified replication domain.ServerStateRemovedReplicasStates. getLastMessages()Returns the CSNs of the last messages for all removed replicas.ServerStateRemovedReplicasStates. getLastUpdates()Returns the CSNs of the lastLDAPUpdateMsgfor all removed replicas.Methods in org.opends.server.replication.server.changelog.api with parameters of type ServerState Modifier and Type Method Description static RemovedReplicasStatesRemovedReplicasStates. 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 aDBCursoracross all the replicaDBs for the specified replication domain starting before, at or after the providedServerStatefor 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 ServerStateFileChangelogDB. getDomainNewestCSNs(Dn baseDN)ServerStateFileChangelogDB. getDomainOldestCSNs(Dn baseDN)ServerStateReplicationEnvironment.DomainState. lastMsgs()Returns the state containing the CSNs of the last UpdateMsg.ServerStateReplicationEnvironment.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 voidMultiDomainDBCursor. 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 ServerStateReplicationDomain. 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 voidReplicationDomain. 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.
-