Interface ServerUpdateResult
public interface ServerUpdateResult
Encapsulates the results of performing a configuration modification on an individual
server.
- Author:
- Brian Stansberry
-
Method Summary
Modifier and TypeMethodDescriptionGets the exception, if any, that occurred while executing this update.Gets any failure that occurred when rolling back this action on this server.Gets the id of the server on which this update was executed.Gets the result of the action's modification to the server's configuration.Gets the unique ID of the deployment action.booleanGets whether the application of this action on this server was cancelled.booleanGets whether the application of this action on this server was rolled back.booleanGets whether the application of the update to the server's runtime required a server restart.booleanGets whether the application of this action on this server timed out.
-
Method Details
-
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
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
-