|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.jmbeans.ServiceManager
public class ServiceManager
| Constructor Summary | |
|---|---|
ServiceManager(J2EEServer server)
Construct a service manager for JOnAS server. |
|
| Method Summary | |
|---|---|
void |
addService(ServiceItem serviceItem)
Add a service item at server startup or restart. |
protected void |
checkServerState(String serviceName)
Implement state transition from STARTING to RUNNING and from STOPPING/RUNNING to STOPPED. |
void |
deleteAllServices()
Delete all services. |
String |
getServiceDescription(String serviceName)
Return the description of a given service. |
ArrayList<String> |
getServices()
|
ServiceState |
getServiceState(String serviceName)
Return the state of a given service. |
void |
setMandatoryService(String serviceName)
Set mandatory attribute to TRUE. |
ServiceState |
setServiceState(String serviceName,
ServiceState state)
Modify a service state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceManager(J2EEServer server)
server - the JOnAS server name| Method Detail |
|---|
public void addService(ServiceItem serviceItem)
serviceItem - the service itempublic void setMandatoryService(String serviceName)
serviceName - the service name.public void deleteAllServices()
public ArrayList<String> getServices()
public ServiceState setServiceState(String serviceName,
ServiceState state)
serviceName - name of the servicestate - new state
public ServiceState getServiceState(String serviceName)
serviceName - service name
public String getServiceDescription(String serviceName)
serviceName - service name
protected void checkServerState(String serviceName)
serviceName - the name of the service that changed state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||