public class ServiceStatus
extends java.lang.Object
A status description maybe entered. See toString()
to
learn how this object is represented as a String.
The default status when this object is first created is UNKNOWN (no description).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STARTED
Indicates that the service endpoint is started and ready to process work requests.
|
static java.lang.String |
STOPPED
Indicates that the service endpoint is stopped and cannot process work requests
|
static java.lang.String |
UNKNOWN
Indicates that the service endpoint's status is unknown.
|
Constructor and Description |
---|
ServiceStatus() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Retrieves the service status description.
|
java.lang.String |
getStatus()
Retrieves the service status.
|
void |
setDescription(java.lang.String description)
Sets the service status description.
|
void |
setStatus(java.lang.String status)
Sets the service's current status.
|
java.lang.String |
toString()
Returns a short description of the service status.
|
public static final java.lang.String UNKNOWN
public static final java.lang.String STARTED
public static final java.lang.String STOPPED
public void setStatus(java.lang.String status)
status
- The service's current status.public java.lang.String getStatus()
public void setDescription(java.lang.String description)
description
- The service status description.public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object