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 intcompareTo(ServiceStatus s)booleanequals(Object o)String[]getChildrenIds()Get runtime identification of child service classesStringgetException()Get the service start exception.StringgetId()Get runtime identification of service classString[]getMissingValues()The list of missing values of this service.StringgetMode()Get the service mode, as a string.StringgetParentId()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.StringgetState()Get the service state, as a string.inthashCode()StringtoString()
-
-
-
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:
compareToin interfaceComparable<ServiceStatus>
-
-