Class FetchChangelogUpdatesControl
java.lang.Object
org.forgerock.opendj.server.leaderbasedreplication.FetchChangelogUpdatesControl
- All Implemented Interfaces:
Control
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ControlDecoder<FetchChangelogUpdatesControl> The Control Decoder that can be used to decode this control.static final StringThe OID for the fetch changelog updates control. -
Constructor Summary
ConstructorsConstructorDescriptionFetchChangelogUpdatesControl(boolean isCritical, ReplicaId replicaId, Map<Domain, ReplicaState> replicaStateByDomain) Creates a new instance of ReplicationRequestControl. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Returns the control "friendly name" alias for the control.getOid()Returns the numeric OID associated with this control.getReplicaStateOrEmpty(Domain domain) Returns the replica state of the given domain.getValue()Returns the value, if any, associated with this control.booleanhasValue()Returnstrueif this control has a value.booleanReturnstrueif it is unacceptable to perform the operation without applying the semantics of this control.toString()
-
Field Details
-
OID_FETCH_CHANGELOG_UPDATES_CONTROL
The OID for the fetch changelog updates control.- See Also:
-
DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Details
-
FetchChangelogUpdatesControl
public FetchChangelogUpdatesControl(boolean isCritical, ReplicaId replicaId, Map<Domain, ReplicaState> replicaStateByDomain) Creates a new instance of ReplicationRequestControl.- Parameters:
isCritical- Specifies whether the control is critical.replicaId- The replica id.replicaStateByDomain- The replica state by domain map.
-
-
Method Details
-
getOid
-
getReplicaStateOrEmpty
Returns the replica state of the given domain.- Parameters:
domain- the domain for which to return the replica state.- Returns:
- the replica state of the given domain
-
isCritical
public boolean isCritical()Description copied from interface:ControlReturnstrueif it is unacceptable to perform the operation without applying the semantics of this control.The criticality field only has meaning in controls attached to request messages (except UnbindRequest). For controls attached to response messages and the UnbindRequest, the criticality field SHOULD be
false, and MUST be ignored by the receiving protocol peer. A value oftrueindicates that it is unacceptable to perform the operation without applying the semantics of the control.- Specified by:
isCriticalin interfaceControl- Returns:
trueif this control must be processed by the Directory Server, orfalseif it can be ignored.
-
getAlias
-
hasValue
public boolean hasValue()Description copied from interface:ControlReturnstrueif this control has a value. In some circumstances it may be useful to determine if a control has a value, without actually calculating the value and incurring any performance costs. -
getValue
Description copied from interface:ControlReturns the value, if any, associated with this control. Its format is defined by the specification of this control. -
toString
-