public class ControlResults extends Object implements Serializable
| Constructor and Description |
|---|
ControlResults() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.configuration.Configuration |
getComplexResults()
Returns the
Configuration object that is used to contain all the complex data that resulted from
the invocation. |
String |
getError()
Returns the error message that describes why the invocation failed.
|
boolean |
isSuccess()
Indicates if the control operation invocation was a success.
|
void |
setError(String errorMessage)
If the invocation was a failure, call this method to mark it as such.
|
void |
setError(Throwable exception)
Convienence method to indicate a failure due to an exception.
|
String |
toString() |
public boolean isSuccess()
false,
call getError() to get the error message describing the error.true if the invocation was a success; false on failurepublic org.rhq.core.domain.configuration.Configuration getComplexResults()
Configuration object that is used to contain all the complex data that resulted from
the invocation. The returned object is not a copy, so you can use this object to populate the complex
results.public String getError()
null.null if successpublic void setError(String errorMessage)
errorMessage - error message describing the failure, must not be nullpublic void setError(Throwable exception)
exception - exception describing the failure, must not be nullCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.