|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.ControlResults
public class ControlResults
Represents the results of a control operation invocation that a server plugin component performed.
| Constructor Summary | |
|---|---|
ControlResults()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ControlResults()
| Method Detail |
|---|
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 nullpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||