Class AbstractServerUpdateActionResult<T extends ServerUpdateActionResult>
- java.lang.Object
-
- org.jboss.as.controller.client.helpers.standalone.AbstractServerUpdateActionResult<T>
-
- All Implemented Interfaces:
Serializable,ServerUpdateActionResult
- Direct Known Subclasses:
SimpleServerDeploymentActionResult,SimpleServerUpdateActionResult
public abstract class AbstractServerUpdateActionResult<T extends ServerUpdateActionResult> extends Object implements ServerUpdateActionResult, Serializable
Abstract superclass of implementations ofServerUpdateActionResult.- Author:
- Brian Stansberry
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.helpers.standalone.ServerUpdateActionResult
ServerUpdateActionResult.Result
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractServerUpdateActionResult()AbstractServerUpdateActionResult(UUID id, Throwable deploymentException)AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result)AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result, Throwable deploymentException)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ThrowablegetDeploymentException()Gets the exception, if any, that occurred while executing this action.ServerUpdateActionResult.ResultgetResult()Gets the result of the action's modification to the server's configuration.TgetRollbackResult()protected abstract Class<T>getRollbackResultClass()UUIDgetUpdateActionId()Gets the unique ID of the deployment action.static <R extends ServerUpdateActionResult>
voidinstallRollbackResult(AbstractServerUpdateActionResult<R> update, ServerUpdateActionResult rollback)
-
-
-
Constructor Detail
-
AbstractServerUpdateActionResult
protected AbstractServerUpdateActionResult()
-
AbstractServerUpdateActionResult
public AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result)
-
AbstractServerUpdateActionResult
public AbstractServerUpdateActionResult(UUID id, Throwable deploymentException)
-
AbstractServerUpdateActionResult
public AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result, Throwable deploymentException)
-
-
Method Detail
-
getUpdateActionId
public UUID getUpdateActionId()
Description copied from interface:ServerUpdateActionResultGets the unique ID of the deployment action.- Specified by:
getUpdateActionIdin interfaceServerUpdateActionResult- Returns:
- the ID. Will not be
null
-
getDeploymentException
public Throwable getDeploymentException()
Description copied from interface:ServerUpdateActionResultGets the exception, if any, that occurred while executing this action.- Specified by:
getDeploymentExceptionin interfaceServerUpdateActionResult- Returns:
- the exception, or
nullif no exception occurred
-
getResult
public ServerUpdateActionResult.Result getResult()
Description copied from interface:ServerUpdateActionResultGets the result of the action's modification to the server's configuration.- Specified by:
getResultin interfaceServerUpdateActionResult- Returns:
- the result. Will not be
null
-
getRollbackResult
public T getRollbackResult()
Description copied from interface:ServerUpdateActionResult- Specified by:
getRollbackResultin interfaceServerUpdateActionResult- Returns:
- the result of rolling back the action, or
nullif the action was not rolled back.
-
installRollbackResult
public static <R extends ServerUpdateActionResult> void installRollbackResult(AbstractServerUpdateActionResult<R> update, ServerUpdateActionResult rollback)
-
-