org.opends.server.replication.plugin
Class ReplicationRepairRequestControl

java.lang.Object
  extended by org.opends.server.types.Control
      extended by org.opends.server.replication.plugin.ReplicationRepairRequestControl

public class ReplicationRepairRequestControl
extends Control

This class implements the Sun-defined replication repair control. This control can be used to modify the content of a replicated database on a single server without impacting the other servers that are replicated with this server. It also allows to modify attributes like entryuuid and ds-sync-hist that are normally not modifiable from an external connection.


Field Summary
static java.lang.String OID_REPLICATION_REPAIR_CONTROL
          The OID of the Replication repair Control.
 
Constructor Summary
ReplicationRepairRequestControl()
          Creates a new instance of the replication repair request control with the default settings.
ReplicationRepairRequestControl(java.lang.String oid, boolean isCritical)
          Creates a new instance of the replication repair control with the provided information.
 
Method Summary
static ReplicationRepairRequestControl decodeControl(Control control)
          Creates a new replication repair request control from the contents of the provided control.
 java.lang.String toString()
          Retrieves a string representation of this replication repair request control.
 void toString(java.lang.StringBuilder buffer)
          Appends a string representation of this replication repair request control to the provided buffer.
 
Methods inherited from class org.opends.server.types.Control
getOID, getValue, hasValue, isCritical, setCritical, setOID, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OID_REPLICATION_REPAIR_CONTROL

public static final java.lang.String OID_REPLICATION_REPAIR_CONTROL
The OID of the Replication repair Control.

See Also:
Constant Field Values
Constructor Detail

ReplicationRepairRequestControl

public ReplicationRepairRequestControl()
Creates a new instance of the replication repair request control with the default settings.


ReplicationRepairRequestControl

public ReplicationRepairRequestControl(java.lang.String oid,
                                       boolean isCritical)
Creates a new instance of the replication repair control with the provided information.

Parameters:
oid - The OID to use for this control.
isCritical - Indicates whether support for this control should be considered a critical part of the client processing.
Method Detail

decodeControl

public static ReplicationRepairRequestControl decodeControl(Control control)
                                                     throws LDAPException
Creates a new replication repair request control from the contents of the provided control.

Parameters:
control - The generic control containing the information to use to create this replication repair request control.
Returns:
The replication repair request control decoded from the provided control.
Throws:
LDAPException - If this control cannot be decoded as a valid replication repair request control.

toString

public java.lang.String toString()
Retrieves a string representation of this replication repair request control.

Overrides:
toString in class Control
Returns:
A string representation of this replication repair request control.

toString

public void toString(java.lang.StringBuilder buffer)
Appends a string representation of this replication repair request control to the provided buffer.

Overrides:
toString in class Control
Parameters:
buffer - The buffer to which the information should be appended.