public class ServiceStatus
extends java.lang.Object
implements java.io.Serializable
| Constructor and 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.
|
| Modifier and Type | Method and 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.String |
getException()
Get the service start exception.
|
java.lang.String |
getModeName()
Get the service mode, as a string.
|
java.lang.String |
getParentName()
Get the name of the parent service, if any.
|
java.lang.String |
getServiceClassName()
Get the service class name, or
"<unknown>" if not known. |
java.lang.String |
getServiceName()
Get the service name, as a string.
|
java.lang.String |
getStateName()
Get the service state, as a string.
|
java.lang.String |
getSubstateName()
Get the service internal substate, as a string.
|
boolean |
isDependencyFailed()
Determine if some dependency was failed at the time of the query.
|
boolean |
isDependencyUnavailable()
Determine if some dependency was not available at the time of the query.
|
java.lang.String |
toString()
Get a string representation of the current status.
|
@ConstructorProperties(value={"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)
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 - true if some dependency is failedexception - the service start exceptiondependencyUnavailable - true if some dependency is unavailablepublic java.lang.String getServiceName()
public java.lang.String[] getAliases()
public java.lang.String getServiceClassName()
"<unknown>" if not known.public java.lang.String getModeName()
public java.lang.String getStateName()
public java.lang.String getSubstateName()
public java.lang.String[] getDependencies()
public boolean isDependencyFailed()
true if some dependency was failedpublic boolean isDependencyUnavailable()
true if some dependency was unavailablepublic java.lang.String getException()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getParentName()
Copyright © 2012 JBoss, a division of Red Hat, Inc.