Package org.jboss.msc.service.management
Class ServiceStatus
java.lang.Object
org.jboss.msc.service.management.ServiceStatus
- All Implemented Interfaces:
Serializable
A representation of the current status of some service.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the service aliases, if any, as strings.String[]The list of dependency names for this service.Get the service start exception.Get the service mode, as a string.Get the name of the parent service, if any.Get the service class name, or"<unknown>"if not known.Get the service name, as a string.Get the service state, as a string.Get the service internal substate, as a string.booleanDetermine if some dependency was failed at the time of the query.booleanDetermine if some dependency was not available at the time of the query.toString()Get a string representation of the current status.
-
Constructor Details
-
ServiceStatus
@ConstructorProperties({"parentName","serviceName","aliases","serviceClassName","modeName","stateName","substateName","dependencies","dependencyFailed","exception","dependencyUnavailable"}) public ServiceStatus(String parentName, String serviceName, String[] aliases, String serviceClassName, String modeName, String stateName, String substateName, String[] dependencies, boolean dependencyFailed, String exception, boolean dependencyUnavailable) Construct a new instance.- Parameters:
parentName- the name of the parentserviceName- the service namealiases- the aliases of this serviceserviceClassName- the name of the service classmodeName- the service mode namestateName- the service state namesubstateName- the internal service substate namedependencies- the list of dependencies for this servicedependencyFailed-trueif some dependency is failedexception- the service start exceptiondependencyUnavailable-trueif some dependency is unavailable
-
-
Method Details
-
getServiceName
Get the service name, as a string.- Returns:
- the service name
-
getAliases
Get the service aliases, if any, as strings. If there are no aliases, an empty array is returned.- Returns:
- the service aliases
-
getServiceClassName
Get the service class name, or"<unknown>"if not known.- Returns:
- the service class name
-
getModeName
Get the service mode, as a string.- Returns:
- the service mode
-
getStateName
Get the service state, as a string.- Returns:
- the service state
-
getSubstateName
Get the service internal substate, as a string.- Returns:
- the service substate
-
getDependencies
The list of dependency names for this service.- Returns:
- the dependency names
-
isDependencyFailed
public boolean isDependencyFailed()Determine if some dependency was failed at the time of the query.- Returns:
trueif some dependency was failed
-
getException
Get the service start exception.- Returns:
- the service start exception
-
toString
Get a string representation of the current status. -
getParentName
Get the name of the parent service, if any.- Returns:
- the parent name
-