Package org.jboss.msc.service.management
Class ServiceStatus
- java.lang.Object
-
- org.jboss.msc.service.management.ServiceStatus
-
- All Implemented Interfaces:
java.io.Serializable
public class ServiceStatus extends java.lang.Object implements java.io.SerializableA representation of the current status of some service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]aliasesprivate java.lang.String[]dependenciesprivate booleandependencyFailedprivate booleandependencyUnavailableprivate java.lang.Stringexceptionprivate java.lang.StringmodeNameprivate java.lang.StringparentNameprivate static longserialVersionUIDprivate java.lang.StringserviceClassNameprivate java.lang.StringserviceNameprivate java.lang.StringstateNameprivate java.lang.StringsubstateName
-
Constructor Summary
Constructors Constructor Description ServiceStatus(java.lang.String parentName, java.lang.String serviceName, java.lang.String[] aliases, java.lang.String serviceClassName, java.lang.String modeName, java.lang.String stateName, java.lang.String substateName, java.lang.String[] dependencies, boolean dependencyFailed, java.lang.String exception, boolean dependencyUnavailable)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getAliases()Get the service aliases, if any, as strings.java.lang.String[]getDependencies()The list of dependency names for this service.java.lang.StringgetException()Get the service start exception.java.lang.StringgetModeName()Get the service mode, as a string.java.lang.StringgetParentName()Get the name of the parent service, if any.java.lang.StringgetServiceClassName()Get the service class name, or"<unknown>"if not known.java.lang.StringgetServiceName()Get the service name, as a string.java.lang.StringgetStateName()Get the service state, as a string.java.lang.StringgetSubstateName()Get the service internal substate, as a string.booleanisDependencyFailed()Determine if some dependency was failed at the time of the query.booleanisDependencyUnavailable()Determine if some dependency was not available at the time of the query.java.lang.StringtoString()Get a string representation of the current status.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
serviceName
private final java.lang.String serviceName
-
aliases
private final java.lang.String[] aliases
-
serviceClassName
private final java.lang.String serviceClassName
-
modeName
private final java.lang.String modeName
-
stateName
private final java.lang.String stateName
-
substateName
private final java.lang.String substateName
-
dependencies
private final java.lang.String[] dependencies
-
dependencyFailed
private final boolean dependencyFailed
-
dependencyUnavailable
private final boolean dependencyUnavailable
-
parentName
private final java.lang.String parentName
-
exception
private final java.lang.String exception
-
-
Constructor Detail
-
ServiceStatus
@ConstructorProperties({"parentName","serviceName","serviceClassName","modeName","stateName","substateName","dependencies","dependencyFailed","exception","dependencyUnavailable"}) public ServiceStatus(java.lang.String parentName, java.lang.String serviceName, java.lang.String[] aliases, java.lang.String serviceClassName, java.lang.String modeName, java.lang.String stateName, java.lang.String substateName, java.lang.String[] dependencies, boolean dependencyFailed, java.lang.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 Detail
-
getServiceName
public java.lang.String getServiceName()
Get the service name, as a string.- Returns:
- the service name
-
getAliases
public java.lang.String[] getAliases()
Get the service aliases, if any, as strings. If there are no aliases, an empty array is returned.- Returns:
- the service aliases
-
getServiceClassName
public java.lang.String getServiceClassName()
Get the service class name, or"<unknown>"if not known.- Returns:
- the service class name
-
getModeName
public java.lang.String getModeName()
Get the service mode, as a string.- Returns:
- the service mode
-
getStateName
public java.lang.String getStateName()
Get the service state, as a string.- Returns:
- the service state
-
getSubstateName
public java.lang.String getSubstateName()
Get the service internal substate, as a string.- Returns:
- the service substate
-
getDependencies
public java.lang.String[] 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
-
isDependencyUnavailable
public boolean isDependencyUnavailable()
Determine if some dependency was not available at the time of the query.- Returns:
trueif some dependency was unavailable
-
getException
public java.lang.String getException()
Get the service start exception.- Returns:
- the service start exception
-
toString
public java.lang.String toString()
Get a string representation of the current status.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation
-
getParentName
public java.lang.String getParentName()
Get the name of the parent service, if any.- Returns:
- the parent name
-
-