com.ibm.websphere.management.cmdframework

Interface CommandResult

  • All Superinterfaces:
    java.io.Serializable
    All Known Subinterfaces:
    TaskCommandResult
    All Known Implementing Classes:
    CommandResultImpl, TaskCommandResultImpl


    public interface CommandResult
    extends java.io.Serializable
    An interface that defines the command execution result.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Throwable getException()
      Gets the exception if the command execution failed.
      java.util.Collection getMessages()
      Gets warning messages if there is any.
      java.lang.Object getResult()
      Gets the result of the command execution if the execution is successful.
      boolean 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.
IBM WebSphere Application ServerTM
Release 8.5