org.apache.geronimo.farm.deployment
Class BasicClusterConfigurationController

java.lang.Object
  extended by org.apache.geronimo.farm.deployment.BasicClusterConfigurationController
All Implemented Interfaces:
ClusterConfigurationController, GBeanLifecycle

public class BasicClusterConfigurationController
extends Object
implements GBeanLifecycle, ClusterConfigurationController


Field Summary
static String GBEAN_ATTR_ARTIFACT
           
static String GBEAN_ATTR_IGNORE_START_CONF_FAIL_UPON_START
           
static String GBEAN_ATTR_NODE_NAME
           
static String GBEAN_ATTR_START_CONF_UPON_START
           
static GBeanInfo GBEAN_INFO
           
static String GBEAN_J2EE_TYPE
           
static String GBEAN_REF_CLUSTER_INFO
           
 
Constructor Summary
BasicClusterConfigurationController(ClusterInfo clusterInfo, String nodeName, Artifact artifact, boolean startConfigurationUponStart, boolean ignoreStartConfigurationFailureUponStart)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
protected  ConfigurationManager newConfigurationManager(Kernel kernel)
           
 void startConfiguration()
           
 void stopConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO

GBEAN_J2EE_TYPE

public static final String GBEAN_J2EE_TYPE
See Also:
Constant Field Values

GBEAN_ATTR_NODE_NAME

public static final String GBEAN_ATTR_NODE_NAME
See Also:
Constant Field Values

GBEAN_ATTR_ARTIFACT

public static final String GBEAN_ATTR_ARTIFACT
See Also:
Constant Field Values

GBEAN_ATTR_START_CONF_UPON_START

public static final String GBEAN_ATTR_START_CONF_UPON_START
See Also:
Constant Field Values

GBEAN_ATTR_IGNORE_START_CONF_FAIL_UPON_START

public static final String GBEAN_ATTR_IGNORE_START_CONF_FAIL_UPON_START
See Also:
Constant Field Values

GBEAN_REF_CLUSTER_INFO

public static final String GBEAN_REF_CLUSTER_INFO
See Also:
Constant Field Values
Constructor Detail

BasicClusterConfigurationController

public BasicClusterConfigurationController(ClusterInfo clusterInfo,
                                           String nodeName,
                                           Artifact artifact,
                                           boolean startConfigurationUponStart,
                                           boolean ignoreStartConfigurationFailureUponStart)
Method Detail

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

startConfiguration

public void startConfiguration()
                        throws Exception
Specified by:
startConfiguration in interface ClusterConfigurationController
Throws:
Exception

stopConfiguration

public void stopConfiguration()
                       throws Exception
Specified by:
stopConfiguration in interface ClusterConfigurationController
Throws:
Exception

newConfigurationManager

protected ConfigurationManager newConfigurationManager(Kernel kernel)

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.