com.ibm.websphere.management.sync
Interface SyncResult
-
public interface SyncResult
SyncResult describes the result of the most recent configuration synchronization operation. It is returned by the NodeSync MBean's getResult operation.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
COMPLETE
The most recent synchronization operation completed successfullystatic int
ERROR
The most recent synchronization operation failed.static int
IN_PROGRESS
A synchronization operation is currently in progressstatic int
NOT_VERIFIED
The most recent synchronization operation completed but there was an error while verifying the success of the operation.static int
OUT_OF_SYNC
The node is not synchronized with the master configuration.
-
Method Summary
Methods Modifier and Type Method and Description long
getCompleteTime()
Gets the time at which the most recent synchronization operation completed.long
getInitTime()
Gets the time at which the most recent synchronization operation began.int
getResult()
Gets the result of the most recent synchronization operation.boolean
isSuccessful()
Determines whether or not the most recent operation was successfulboolean
isUpdated()
Determines whether the most recent synchronization operation resulted in updates to the node configuration.
-
-
-
Field Detail
-
IN_PROGRESS
static final int IN_PROGRESS
A synchronization operation is currently in progress- See Also:
- Constant Field Values
-
COMPLETE
static final int COMPLETE
The most recent synchronization operation completed successfully- See Also:
- Constant Field Values
-
NOT_VERIFIED
static final int NOT_VERIFIED
The most recent synchronization operation completed but there was an error while verifying the success of the operation.- See Also:
- Constant Field Values
-
OUT_OF_SYNC
static final int OUT_OF_SYNC
The node is not synchronized with the master configuration.- See Also:
- Constant Field Values
-
ERROR
static final int ERROR
The most recent synchronization operation failed.- See Also:
- Constant Field Values
-
-
Method Detail
-
getResult
int getResult()
Gets the result of the most recent synchronization operation.- Returns:
- One of the result constants defined above.
-
getInitTime
long getInitTime()
Gets the time at which the most recent synchronization operation began.- Returns:
- A timestamp indicating the when the operation began
-
getCompleteTime
long getCompleteTime()
Gets the time at which the most recent synchronization operation completed.- Returns:
- A timestamp indicating the when the operation completed
-
isSuccessful
boolean isSuccessful()
Determines whether or not the most recent operation was successful- Returns:
true
for success, otherwisefalse
-
isUpdated
boolean isUpdated()
Determines whether the most recent synchronization operation resulted in updates to the node configuration.- Returns:
true
if the node configuration was updated, otherwisefalse
-
-