Package org.wildfly.plugin.tools
Class DeploymentResult
java.lang.Object
org.wildfly.plugin.tools.DeploymentResult
Represents the results of a deployment.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.dmr.ModelNode
The result from the deployment operation.void
Checks to see if the deployment was successful and if not throws aDeploymentException
with the failure message.Returns the failure message if the deployment was not successful.boolean
Determines if the deployment was successful or not.
-
Method Details
-
successful
public boolean successful()Determines if the deployment was successful or not.- Returns:
true
if the deployment was successful, otherwisefalse
-
assertSuccess
Checks to see if the deployment was successful and if not throws aDeploymentException
with the failure message.- Throws:
DeploymentException
- if the deployment was not successful
-
getFailureMessage
Returns the failure message if the deployment was not successful.- Returns:
- the failure description or
null
if 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
-