com.ibm.websphere.management.cmdframework
Interface CommandResult
All Superinterfaces:
java.io.Serializable
All known subinterfaces:
All known implementing classes:
- public interface CommandResult
- extends java.io.Serializable
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getException()
Gets the exception if the command execution failed.
|
|
getMessages()
Gets warning messages if there is any.
|
|
getResult()
Gets the result of the command execution if the execution is successful.
|
|
isSuccessful()
Returns if the last command execution is successful or not.
|
Method Detail
isSuccessful
- boolean isSuccessful()
Returns if the last command execution is successful or not.
Returns:
true if command is executed successfully; false otherwise.
getMessages
- java.util.Collection getMessages( )
Gets warning messages if there is any.
Returns:
a collection of messages.
getException
- java.lang.Throwable getException( )
Gets the exception if the command execution failed.
This returns null if the command is executed successfully.
Returns:
the exception thrown during the command execution.
getResult
- java.lang.Object getResult()
Gets the result of the command execution if the execution is successful.
This method returns null if the command execution failed.
Returns:
the result of the command execution.