Package org.jboss.msc.service.management
Class ServiceStatus
- java.lang.Object
-
- org.jboss.msc.service.management.ServiceStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceStatus>
public final class ServiceStatus extends Object implements Serializable, Comparable<ServiceStatus>
A representation of the current status of some service.- Author:
- David M. Lloyd, Richard Opalka
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ServiceStatus s)
boolean
equals(Object o)
String[]
getChildrenIds()
Get runtime identification of child service classesString
getException()
Get the service start exception.String
getId()
Get runtime identification of service classString[]
getMissingValues()
The list of missing values of this service.String
getMode()
Get the service mode, as a string.String
getParentId()
Get runtime identification of parent service classString[]
getProvidedValues()
The list of provided values by this service.String[]
getRequiredValues()
The list of required values by this service.String
getState()
Get the service state, as a string.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ServiceStatus
@ConstructorProperties({"id","parentId","childrenIds","requiredValues","providedValues","missingValues","serviceMode","serviceState","startException"}) public ServiceStatus(String id, String parentId, String[] childrenIds, String[] requiredValues, String[] providedValues, String[] missingValues, String mode, String state, String exception)
Constructs a new instance.- Parameters:
id
- runtime identification of service classparentId
- runtime identification of parent service classchildrenIds
- runtime identification of children services classesrequiredValues
- required values by this serviceprovidedValues
- provided values by this servicemissingValues
- missing values of this servicemode
- the service modestate
- the service stateexception
- the start failure reason
-
-
Method Detail
-
getId
public String getId()
Get runtime identification of service class- Returns:
- the id
-
getParentId
public String getParentId()
Get runtime identification of parent service class- Returns:
- the parent id
-
getChildrenIds
public String[] getChildrenIds()
Get runtime identification of child service classes- Returns:
- the children ids
-
getRequiredValues
public String[] getRequiredValues()
The list of required values by this service.- Returns:
- the required value names
-
getProvidedValues
public String[] getProvidedValues()
The list of provided values by this service.- Returns:
- the provided value names
-
getMissingValues
public String[] getMissingValues()
The list of missing values of this service.- Returns:
- the missing value names
-
getMode
public String getMode()
Get the service mode, as a string.- Returns:
- the service mode
-
getState
public String getState()
Get the service state, as a string.- Returns:
- the service state
-
getException
public String getException()
Get the service start exception.- Returns:
- the service start exception
-
compareTo
public int compareTo(ServiceStatus s)
- Specified by:
compareTo
in interfaceComparable<ServiceStatus>
-
-