|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.lib.service.manager.ServiceManagerImpl
public class ServiceManagerImpl
Class to manage the JOnAS services.
| Constructor Summary | |
|---|---|
ServiceManagerImpl(org.osgi.framework.BundleContext bc)
Construct a service manager for JOnAS server. |
|
| Method Summary | |
|---|---|
void |
bindJ2EEServer(J2EEServerService j2eeServer)
|
void |
disableServiceStatesCheck()
|
List<String> |
getAllServices()
|
List<String> |
getOptionalServices()
|
String |
getServiceDescription(String service)
Return the description of a given service. |
String |
getServiceState(String service)
Return the state of a given service. |
protected boolean |
isServiceStarted(String service)
Returns true if the service is started, false otherwise. |
protected boolean |
isServiceStopped(String service)
Returns true if the service is stopped, false otherwise. |
void |
setConfigurationManager(ConfigurationManager configurationManager)
|
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setDeploymentPlanDeployer(DeploymentPlanDeployer deploymentPlanDeployer)
|
void |
setServerProperties(ServerProperties serverProperties)
|
J2EEServiceState |
setServiceState(String service,
J2EEServiceState state)
Modify a service state. |
void |
start()
Initialization method. |
void |
startRequiredServices(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Start all required services for a given deployable. |
void |
startService(String service)
Start a JOnAS service. |
void |
startServices()
|
void |
stop()
Finalization method. |
void |
stopService(String service)
Stop a JOnAS service. |
void |
stopServices()
|
void |
unbindJ2EEServer(J2EEServerService j2eeServer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceManagerImpl(org.osgi.framework.BundleContext bc)
bc - The bundleContext reference| Method Detail |
|---|
public void start()
public void stop()
public List<String> getAllServices()
getAllServices in interface ServiceManagerpublic List<String> getOptionalServices()
getOptionalServices in interface ServiceManager
public J2EEServiceState setServiceState(String service,
J2EEServiceState state)
service - The service namestate - new state
public String getServiceState(String service)
getServiceState in interface ServiceManagerservice - The service name
public String getServiceDescription(String service)
getServiceDescription in interface ServiceManagerservice - The service name
public void startService(String service)
throws Exception
startService in interface ServiceManagerservice - Name of the service to start
Exception - If the startup of the service failspublic void startRequiredServices(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
startRequiredServices in interface ServiceManagerdeployable - The deployable to analyse
public void stopService(String service)
throws Exception
stopService in interface ServiceManagerservice - Name of the service to stop
Exception - If the stop of the service failspublic void startServices()
startServices in interface ServiceManagerpublic void stopServices()
stopServices in interface ServiceManagerpublic void bindJ2EEServer(J2EEServerService j2eeServer)
j2eeServer - The j2eeServer to setpublic void unbindJ2EEServer(J2EEServerService j2eeServer)
j2eeServer - the j2eeServer to unsetpublic void setConfigurationManager(ConfigurationManager configurationManager)
configurationManager - the configurationManager to setpublic void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager - the deployerManager to setpublic void setDeploymentPlanDeployer(DeploymentPlanDeployer deploymentPlanDeployer)
deploymentPlanDeployer - the deploymentPlanDeployer to setpublic void setServerProperties(ServerProperties serverProperties)
serverProperties - the serverProperties to setpublic void disableServiceStatesCheck()
disableServiceStatesCheck in interface ServiceManagerprotected boolean isServiceStarted(String service)
service - The given service name
protected boolean isServiceStopped(String service)
service - The given service name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||