Class MoveSubtreeResult
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.MoveSubtreeResult
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class MoveSubtreeResult
extends Object
implements Serializable
This class provides a data structure that holds information about the result
of a move subtree operation.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a message with information about any administrative action which may be required to bring data in the servers back into a consistent state so that the entries in the target subtree will only exist in one of the two servers.intRetrieves the number of entries added to the target server as a result of the subtree move.intRetrieves the number of entries deleted from the source server as a result of the subtree move.intRetrieves the number of entries within the specified subtree read from the source server.Retrieves an error message with information about a problem that occurred during processing, if any.Retrieves a result code which indicates the ultimate state of the move subtree processing.booleanIndicates whether any data in the source server has been altered as a result of the processing performed during the subtree move.booleanIndicates whether any data in the target server has been altered as a result of the processing performed during the subtree move.toString()Retrieves a string representation of this move subtree result object.voidtoString(StringBuilder buffer) Appends a string representation of this move subtree result object to the provided buffer.
-
Method Details
-
getResultCode
Retrieves a result code which indicates the ultimate state of the move subtree processing. A result ofSUCCESSindicates that all processing was successful and the subtree was moved from one server to another. Any other result indicates that some kind of error occurred.- Returns:
- A result code which indicates the ultimate state of the move subtree processing.
-
getErrorMessage
Retrieves an error message with information about a problem that occurred during processing, if any.- Returns:
- An error message with information about a problem that occurred
during processing, or
nullif no errors were encountered.
-
getAdminActionRequired
Retrieves a message with information about any administrative action which may be required to bring data in the servers back into a consistent state so that the entries in the target subtree will only exist in one of the two servers.- Returns:
- A message with information about any administrative action which
may be required to bring the data in the servers back into a
consistent state, or
nullif no administrative action is necessary.
-
sourceServerAltered
Indicates whether any data in the source server has been altered as a result of the processing performed during the subtree move. A successful subtree move will cause entries to be removed from the source server, but there may be error conditions which also result in source server changes.- Returns:
trueif any data in the source server has been altered as a result of the processing performed, orfalseif not.
-
targetServerAltered
Indicates whether any data in the target server has been altered as a result of the processing performed during the subtree move. A successful subtree move will cause entries to be added to the target server, but there may be error conditions which also result in target server changes.- Returns:
trueif any data in the target server has been altered as a result of the processing performed, orfalseif not.
-
getEntriesReadFromSource
Retrieves the number of entries within the specified subtree read from the source server.- Returns:
- The number of entries within the specified subtree read from the source server.
-
getEntriesAddedToTarget
Retrieves the number of entries added to the target server as a result of the subtree move. Note that even in a completely successful subtree move, it is possible for this number to be less than the number of entries read from the source server if aMoveSubtreeListeneris in use and itsdoPreAddProcessingmethod returns null for one or more entries to indicate that those entries should not be added to the target.- Returns:
- The number of entries added to the target server as a result of the subtree move.
-
getEntriesDeletedFromSource
Retrieves the number of entries deleted from the source server as a result of the subtree move. If all processing is successful, then this value should match the number of entries read from the source server.- Returns:
- The number of entries deleted from the target server as a result of the subtree move.
-
toString
Retrieves a string representation of this move subtree result object. -
toString
Appends a string representation of this move subtree result object to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-