Interface ServerUpdateResult
-
public interface ServerUpdateResultEncapsulates the results of performing a configuration modification on an individual server.- Author:
- Brian Stansberry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowablegetFailureResult()Gets the exception, if any, that occurred while executing this update.ThrowablegetRollbackFailure()Gets any failure that occurred when rolling back this action on this server.ServerIdentitygetServerIdentity()Gets the id of the server on which this update was executed.org.jboss.dmr.ModelNodegetSuccessResult()Gets the result of the action's modification to the server's configuration.UUIDgetUpdateActionId()Gets the unique ID of the deployment action.booleanisCancelled()Gets whether the application of this action on this server was cancelled.booleanisRolledBack()Gets whether the application of this action on this server was rolled back.booleanisServerRestarted()Gets whether the application of the update to the server's runtime required a server restart.booleanisTimedOut()Gets whether the application of this action on this server timed out.
-
-
-
Method Detail
-
getUpdateActionId
UUID getUpdateActionId()
Gets the unique ID of the deployment action.- Returns:
- the ID. Will not be
null
-
getServerIdentity
ServerIdentity getServerIdentity()
Gets the id of the server on which this update was executed.- Returns:
- the server identity. Will not be
null
-
getSuccessResult
org.jboss.dmr.ModelNode getSuccessResult()
Gets the result of the action's modification to the server's configuration. This will always benullifisServerRestarted()istrue.- Returns:
- the result. May be
null
-
getFailureResult
Throwable getFailureResult()
Gets the exception, if any, that occurred while executing this update.- Returns:
- the exception, or
nullif no exception occurred
-
isCancelled
boolean isCancelled()
Gets whether the application of this action on this server was cancelled.- Returns:
trueif the action was cancelled;falseotherwise
-
isTimedOut
boolean isTimedOut()
Gets whether the application of this action on this server timed out.- Returns:
trueif the action timed out;falseotherwise
-
isRolledBack
boolean isRolledBack()
Gets whether the application of this action on this server was rolled back.- Returns:
trueif the action was rolled back;falseotherwise
-
getRollbackFailure
Throwable getRollbackFailure()
Gets any failure that occurred when rolling back this action on this server.- Returns:
- the exception, or
nullif no exception occurred
-
isServerRestarted
boolean isServerRestarted()
Gets whether the application of the update to the server's runtime required a server restart.- Returns:
trueif the server was restarted;falseotherwise
-
-