org.ow2.jonas.management
Interface ServiceManager

All Known Implementing Classes:
ServiceManagerImpl

public interface ServiceManager

Interface for managing the JOnAS services.

Author:
Francois Fornaciari

Method Summary
 void disableServiceStatesCheck()
          Disable the service states check.
 List<String> getAllServices()
          Return the list of all JOnAS services.
 List<String> getOptionalServices()
          Return the list of optional JOnAS services.
 String getServiceDescription(String serviceName)
          Return the description of a given JOnAS service.
 String getServiceState(String serviceName)
          Return the state of a given JOnAS service.
 void startRequiredServices(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Start all required services for a given deployable.
 void startService(String serviceName)
          Start a given JOnAS service.
 void startServices()
          Start optional JOnAS services defined in the server configuration.
 void stopService(String serviceName)
          Stop a given JOnAS service.
 void stopServices()
          Stop all optional started JOnAS services.
 

Method Detail

startService

void startService(String serviceName)
                  throws Exception
Start a given JOnAS service.

Parameters:
serviceName - the service name
Throws:
Exception - If the startup of the service fails

startRequiredServices

void startRequiredServices(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Start all required services for a given deployable.

Parameters:
deployable - The deployable to analyse

stopService

void stopService(String serviceName)
                 throws Exception
Stop a given JOnAS service.

Parameters:
serviceName - the service name
Throws:
Exception - If the stop of the service fails

startServices

void startServices()
Start optional JOnAS services defined in the server configuration. Some JOnAS services may requires other services which will also be started.


stopServices

void stopServices()
Stop all optional started JOnAS services.


getAllServices

List<String> getAllServices()
Return the list of all JOnAS services.

Returns:
The list of all JOnAS services

getOptionalServices

List<String> getOptionalServices()
Return the list of optional JOnAS services.

Returns:
The list of optional JOnAS services

getServiceDescription

String getServiceDescription(String serviceName)
Return the description of a given JOnAS service.

Parameters:
serviceName - the service name
Returns:
The description of a given JOnAS service

getServiceState

String getServiceState(String serviceName)
Return the state of a given JOnAS service.

Parameters:
serviceName - the service name
Returns:
The state of a given JOnAS service

disableServiceStatesCheck

void disableServiceStatesCheck()
Disable the service states check. Called when the server reaches the RUNNING state.



Copyright © 2010 OW2 Consortium. All Rights Reserved.