Package org.jboss.msc.service.management
Interface ServiceContainerMXBean
-
public interface ServiceContainerMXBeanThe service container management bean interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringdumpServiceDetails(java.lang.String serviceName)Dump all details of a service.voiddumpServices()Dump the container state to the console.voiddumpServicesByStatus(java.lang.String status)Dump the services, whose status matches the passedstatusto the consolejava.lang.StringdumpServicesToGraphDescription()Dump the container state to a string suitable for rendering in GraphViz or compatible tools.java.lang.StringdumpServicesToString()Dump the container state to a big string.java.lang.StringdumpServicesToStringByStatus(java.lang.String status)Dump the services, whose status matches the passedstatus, state to a big string.ServiceStatusgetServiceStatus(java.lang.String name)Get the status of one service.java.util.List<java.lang.String>queryServiceNames()Get a list of service names in this container.java.util.List<ServiceStatus>queryServiceStatuses()Get a list of service statuses in this container.voidsetServiceMode(java.lang.String name, java.lang.String mode)Change the mode of a service.
-
-
-
Method Detail
-
getServiceStatus
ServiceStatus getServiceStatus(java.lang.String name)
Get the status of one service.- Parameters:
name- the service name- Returns:
- the status
-
queryServiceNames
java.util.List<java.lang.String> queryServiceNames()
Get a list of service names in this container.- Returns:
- the list of names
-
queryServiceStatuses
java.util.List<ServiceStatus> queryServiceStatuses()
Get a list of service statuses in this container.- Returns:
- the list of statuses
-
setServiceMode
void setServiceMode(java.lang.String name, java.lang.String mode)Change the mode of a service.- Parameters:
name- the service namemode- the new mode
-
dumpServices
void dumpServices()
Dump the container state to the console.
-
dumpServicesToString
java.lang.String dumpServicesToString()
Dump the container state to a big string. The string has no particular standard format and may change over time; this method is simply a convenience.- Returns:
- the container state, as a string
-
dumpServicesToGraphDescription
java.lang.String dumpServicesToGraphDescription()
Dump the container state to a string suitable for rendering in GraphViz or compatible tools.- Returns:
- the container state graph
-
dumpServiceDetails
java.lang.String dumpServiceDetails(java.lang.String serviceName)
Dump all details of a service.- Parameters:
serviceName- the name of the service to examine- Returns:
- the details, as a string
-
dumpServicesByStatus
void dumpServicesByStatus(java.lang.String status)
Dump the services, whose status matches the passedstatusto the console- Parameters:
status- The status of the services that we are interested in
-
dumpServicesToStringByStatus
java.lang.String dumpServicesToStringByStatus(java.lang.String status)
Dump the services, whose status matches the passedstatus, state to a big string. The string has no particular standard format and may change over time; this method is simply a convenience.- Parameters:
status- The status of the services that we are interested in- Returns:
- Returns the string representation of the services whose status matches the passed
status
-
-