|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas.service.ServiceManager
This class implements a manager of org.objectweb.jonas.service.Service for JOnAS.
Method Summary | |
protected javax.naming.Context |
createServiceContextFor(java.lang.String serviceName)
Creates and returns the context for the configuration of the service which have the given name. |
protected Service |
createServiceFrom(java.lang.String serviceName)
Creates and returns the service which have the given name. |
static Service |
getDataBaseService()
Return the DataBase service (service's name: 'dbm') |
static Service |
getEjbService()
Return the EJB service (service's name: 'ejb') |
static ServiceManager |
getInstance()
Get the unique instance. |
static Service |
getJmsService()
Return the JMS service (service's name: 'jms') |
static Service |
getJmxService()
Return the JMX service (service's name: 'jmx') |
static Service |
getRegistryService()
Return the Registry service (service's name: 'registry') |
static Service |
getSecurityService()
Return the Security service (service's name: 'security') |
static Service |
getService(java.lang.String name)
Returns the service which have the given name |
java.lang.String[] |
getServiceNames()
return the list of services + registry if needed |
Service[] |
getServices()
Returns the list of the managed services |
static Service |
getTomcatService()
Return the Tomcat service (service's name: 'tomcat') |
static Service |
getTransactionService()
Return the Transaction service (service's name: 'jtm') |
protected void |
readServices()
For each service, create it and its associated configuration context. |
void |
startRegistry()
Start the mandatory "registry" service |
void |
startServices()
Starts the managed services. |
void |
stopServices()
Management Method: Stop all services. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ServiceManager getInstance()
public static Service getService(java.lang.String name) throws ServiceException
public static Service getEjbService() throws ServiceException
public static Service getDataBaseService() throws ServiceException
public static Service getTransactionService() throws ServiceException
public static Service getJmsService() throws ServiceException
public static Service getSecurityService() throws ServiceException
public static Service getJmxService() throws ServiceException
public static Service getRegistryService() throws ServiceException
public static Service getTomcatService() throws ServiceException
public void startRegistry() throws ServiceException
public void startServices() throws ServiceException
public Service[] getServices() throws ServiceException
public java.lang.String[] getServiceNames()
protected void readServices() throws ServiceException
protected Service createServiceFrom(java.lang.String serviceName) throws ServiceException
protected javax.naming.Context createServiceContextFor(java.lang.String serviceName) throws javax.naming.NamingException
public void stopServices() throws ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |