org.ow2.jonas.services.bootstrap.deploymentplan
Class JOnASDeploymentPlan

java.lang.Object
  extended by org.ow2.jonas.services.bootstrap.deploymentplan.JOnASDeploymentPlan
All Implemented Interfaces:
JOnASDeploymentPlanMBean

public class JOnASDeploymentPlan
extends Object
implements JOnASDeploymentPlanMBean

Implementation of the Deployment plan MBean.

Author:
Mickaƫl LEDUQUE, Francois Fornaciari

Constructor Summary
JOnASDeploymentPlan()
           
 
Method Summary
 String[] getDeploymentPlans()
          Returns the list of deployed deployment plans.
 Integer getDeploymentPlansCount()
          Returns the number of deployed deployment plans.
 void setDeploymentPlanDeployer(org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer deploymentPlanDeployer)
          Sets the deployment plan deployer.
 void setMBeanServer(MBeanServer mbeanServer)
          Set the MBean Server.
 void setServerProperties(ServerProperties serverProperties)
          Set the server properties service.
 void start()
          This callback method is called during the service starting as soon as all service dependencies are resolved.
 void stop()
          This callback method is called during the service stopping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOnASDeploymentPlan

public JOnASDeploymentPlan()
Method Detail

start

public void start()
           throws Exception
This callback method is called during the service starting as soon as all service dependencies are resolved.

Throws:
Exception

stop

public void stop()
          throws ServiceException
This callback method is called during the service stopping. The unregistration of one of the required service can trigger the method invocation.

Throws:
ServiceException

setMBeanServer

public void setMBeanServer(MBeanServer mbeanServer)
Set the MBean Server.

Parameters:
mbeanServer - the new JMX service.

setServerProperties

public void setServerProperties(ServerProperties serverProperties)
Set the server properties service.

Parameters:
serverProperties - the serverProperties to set

setDeploymentPlanDeployer

public void setDeploymentPlanDeployer(org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer deploymentPlanDeployer)
Sets the deployment plan deployer.

Parameters:
deploymentPlanDeployer - the new deployment plan deployer.

getDeploymentPlansCount

public Integer getDeploymentPlansCount()
Returns the number of deployed deployment plans.

Specified by:
getDeploymentPlansCount in interface JOnASDeploymentPlanMBean
Returns:
the number of deployed deployment plans.

getDeploymentPlans

public String[] getDeploymentPlans()
Returns the list of deployed deployment plans.

Specified by:
getDeploymentPlans in interface JOnASDeploymentPlanMBean
Returns:
the list of deployed deployment plans.


Copyright © 2010 OW2 Consortium. All Rights Reserved.