- java.lang.Object
-
- org.wildfly.plugin.core.DeploymentResult
-
public class DeploymentResult extends Object
Represents the results of a deployment.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodeasModelNode()The result from the deployment operation.voidassertSuccess()Checks to see if the deployment was successful and if not throws aDeploymentExceptionwith the failure message.StringgetFailureMessage()Returns the failure message if the deployment was not successful.booleansuccessful()Determines if the deployment was successful or not.
-
-
-
Method Detail
-
successful
public boolean successful()
Determines if the deployment was successful or not.- Returns:
trueif the deployment was successful, otherwisefalse
-
assertSuccess
public void assertSuccess() throws DeploymentExceptionChecks to see if the deployment was successful and if not throws aDeploymentExceptionwith the failure message.- Throws:
DeploymentException- if the deployment was not successful
-
getFailureMessage
public String getFailureMessage()
Returns the failure message if the deployment was not successful.- Returns:
- the failure description or
nullif the deployment was successful.
-
asModelNode
public org.jboss.dmr.ModelNode asModelNode()
The result from the deployment operation.In some cases the result may be undefined.
- Returns:
- the result
-
-