public static final class ManagementOperation.Status
extends java.lang.Object
ManagementOperation
. One of
unavailable(String)
, none(String)
, initiated(String)
,
running(String)
, succeeded(String)
and failed(String)
,
the semantics of which correspond to the respective status codes in
RepositoryManagementMBean
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITEM_CODE |
static java.lang.String |
ITEM_ID |
static java.lang.String |
ITEM_MESSAGE |
static java.lang.String[] |
ITEM_NAMES |
static javax.management.openmbean.CompositeType |
ITEM_TYPES |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object that) |
static ManagementOperation.Status |
failed(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
failed(java.lang.String message) |
static java.lang.String |
formatTime(long nanos)
Utility method for formatting a duration in nano seconds
into a human readable string.
|
static ManagementOperation.Status |
fromCompositeData(javax.management.openmbean.CompositeData status)
Utility method for converting a
CompositeData encoding
of a status to a Status instance. |
RepositoryManagementMBean.StatusCode |
getCode() |
int |
getId() |
java.lang.String |
getMessage() |
java.lang.String |
getName() |
int |
hashCode() |
static ManagementOperation.Status |
initiated(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
initiated(java.lang.String message) |
boolean |
isFailure() |
boolean |
isSuccess() |
static ManagementOperation.Status |
none(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
none(java.lang.String message) |
static ManagementOperation.Status |
running(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
running(java.lang.String message) |
static ManagementOperation.Status |
succeeded(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
succeeded(java.lang.String message) |
javax.management.openmbean.CompositeData |
toCompositeData()
Utility method for converting this instance to a
CompositeData
encoding of the respective status. |
java.lang.String |
toString() |
static javax.management.openmbean.TabularData |
toTabularData(java.lang.Iterable<ManagementOperation.Status> statuses) |
static ManagementOperation.Status |
unavailable(ManagementOperation<?> op,
java.lang.String message) |
static ManagementOperation.Status |
unavailable(java.lang.String message) |
public static final java.lang.String ITEM_CODE
public static final java.lang.String ITEM_ID
public static final java.lang.String ITEM_MESSAGE
public static final java.lang.String[] ITEM_NAMES
public static final javax.management.openmbean.CompositeType ITEM_TYPES
public static ManagementOperation.Status unavailable(java.lang.String message)
public static ManagementOperation.Status none(java.lang.String message)
public static ManagementOperation.Status initiated(java.lang.String message)
public static ManagementOperation.Status running(java.lang.String message)
public static ManagementOperation.Status succeeded(java.lang.String message)
public static ManagementOperation.Status failed(java.lang.String message)
public static ManagementOperation.Status unavailable(ManagementOperation<?> op, java.lang.String message)
public static ManagementOperation.Status none(ManagementOperation<?> op, java.lang.String message)
public static ManagementOperation.Status initiated(ManagementOperation<?> op, java.lang.String message)
public static ManagementOperation.Status running(ManagementOperation<?> op, java.lang.String message)
public static ManagementOperation.Status succeeded(ManagementOperation<?> op, java.lang.String message)
public static ManagementOperation.Status failed(ManagementOperation<?> op, java.lang.String message)
public static java.lang.String formatTime(long nanos)
nanos
- number of nano secondspublic static ManagementOperation.Status fromCompositeData(javax.management.openmbean.CompositeData status)
CompositeData
encoding
of a status to a Status
instance.status
- CompositeData
encoding of a statusStatus
for status
java.lang.IllegalArgumentException
- if status
is not a valid
encoding of a Status
.public javax.management.openmbean.CompositeData toCompositeData()
CompositeData
encoding of the respective status.CompositeData
of this Status
public static javax.management.openmbean.TabularData toTabularData(java.lang.Iterable<ManagementOperation.Status> statuses)
public RepositoryManagementMBean.StatusCode getCode()
public int getId()
public java.lang.String getName()
public java.lang.String getMessage()
public boolean isSuccess()
public boolean isFailure()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved