Class ManagementOperation.Status

    • Field Detail

      • ITEM_NAMES

        public static final java.lang.String[] ITEM_NAMES
      • ITEM_TYPES

        public static final javax.management.openmbean.CompositeType ITEM_TYPES
    • Method Detail

      • formatTime

        public static java.lang.String formatTime​(long nanos)
        Utility method for formatting a duration in nano seconds into a human readable string.
        Parameters:
        nanos - number of nano seconds
        Returns:
        human readable string
      • fromCompositeData

        public static ManagementOperation.Status fromCompositeData​(javax.management.openmbean.CompositeData status)
        Utility method for converting a CompositeData encoding of a status to a Status instance.
        Parameters:
        status - CompositeData encoding of a status
        Returns:
        Status for status
        Throws:
        java.lang.IllegalArgumentException - if status is not a valid encoding of a Status.
      • toCompositeData

        public javax.management.openmbean.CompositeData toCompositeData()
        Utility method for converting this instance to a CompositeData encoding of the respective status.
        Returns:
        CompositeData of this Status
      • toTabularData

        public static javax.management.openmbean.TabularData toTabularData​(java.lang.Iterable<ManagementOperation.Status> statuses)
      • getId

        public int getId()
      • getName

        public java.lang.String getName()
      • getMessage

        public java.lang.String getMessage()
      • isSuccess

        public boolean isSuccess()
      • isFailure

        public boolean isFailure()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object