public class DeploymentResult extends Object
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
asModelNode()
The result from the deployment operation.
|
void |
assertSuccess()
Checks to see if the deployment was successful and if not throws a
DeploymentException with the failure
message. |
String |
getFailureMessage()
Returns the failure message if the deployment was not successful.
|
boolean |
successful()
Determines if the deployment was successful or not.
|
public boolean successful()
true
if the deployment was successful, otherwise false
public void assertSuccess() throws DeploymentException
DeploymentException
with the failure
message.DeploymentException
- if the deployment was not successfulpublic String getFailureMessage()
null
if the deployment was successful.public org.jboss.dmr.ModelNode asModelNode()
In some cases the result may be undefined.
Copyright © 2021 JBoss by Red Hat. All rights reserved.