public abstract class AbstractServerUpdateActionResult<T extends ServerUpdateActionResult> extends Object implements ServerUpdateActionResult, Serializable
ServerUpdateActionResult
.ServerUpdateActionResult.Result
Modifier | Constructor and Description |
---|---|
protected |
AbstractServerUpdateActionResult() |
|
AbstractServerUpdateActionResult(UUID id,
ServerUpdateActionResult.Result result) |
|
AbstractServerUpdateActionResult(UUID id,
ServerUpdateActionResult.Result result,
Throwable deploymentException) |
|
AbstractServerUpdateActionResult(UUID id,
Throwable deploymentException) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getDeploymentException()
Gets the exception, if any, that occurred while executing this action.
|
ServerUpdateActionResult.Result |
getResult()
Gets the result of the action's modification to the server's configuration.
|
T |
getRollbackResult()
If the #getResult() result was {@link Result#ROLLED_BACK} or
{@link Result#FAILED} and the update plan allows rollback,
gets the result of rolling back the action.
|
protected abstract Class<T> |
getRollbackResultClass() |
UUID |
getUpdateActionId()
Gets the unique ID of the deployment action.
|
static <R extends ServerUpdateActionResult> |
installRollbackResult(AbstractServerUpdateActionResult<R> update,
ServerUpdateActionResult rollback) |
protected AbstractServerUpdateActionResult()
public AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result)
public AbstractServerUpdateActionResult(UUID id, Throwable deploymentException)
public AbstractServerUpdateActionResult(UUID id, ServerUpdateActionResult.Result result, Throwable deploymentException)
public UUID getUpdateActionId()
ServerUpdateActionResult
getUpdateActionId
in interface ServerUpdateActionResult
null
public Throwable getDeploymentException()
ServerUpdateActionResult
getDeploymentException
in interface ServerUpdateActionResult
null
if no exception occurredpublic ServerUpdateActionResult.Result getResult()
ServerUpdateActionResult
getResult
in interface ServerUpdateActionResult
null
public T getRollbackResult()
ServerUpdateActionResult
getRollbackResult
in interface ServerUpdateActionResult
null
if the
action was not rolled back.public static <R extends ServerUpdateActionResult> void installRollbackResult(AbstractServerUpdateActionResult<R> update, ServerUpdateActionResult rollback)
Copyright © 2019 JBoss by Red Hat. All rights reserved.