org.apache.geronimo.gbean.runtime
Class GBeanInstanceState

java.lang.Object
  extended by org.apache.geronimo.gbean.runtime.GBeanInstanceState

public class GBeanInstanceState
extends Object


Method Summary
 int getState()
           
 State getStateInstance()
           
 void start()
          Moves this MBean to the State.STARTING state and then attempts to move this MBean immediately to the State.RUNNING state.
 void startRecursive()
          Starts this MBean and then attempts to start all of its start dependent children.
 void stop()
          Moves this MBean to the STOPPING state, calls stop on all start dependent children, and then attempt to move this MBean to the STOPPED state.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

start

public final void start()
Moves this MBean to the State.STARTING state and then attempts to move this MBean immediately to the State.RUNNING state.

Note: This method cannot be called while the current thread holds a synchronized lock on this MBean, because this method sends JMX notifications. Sending a general notification from a synchronized block is a bad idea and therefore not allowed.


startRecursive

public final void startRecursive()
Starts this MBean and then attempts to start all of its start dependent children.

Note: This method cannot be call while the current thread holds a synchronized lock on this MBean, because this method sends JMX notifications. Sending a general notification from a synchronized block is a bad idea and therefore not allowed.


stop

public final void stop()
Moves this MBean to the STOPPING state, calls stop on all start dependent children, and then attempt to move this MBean to the STOPPED state.

Note: This method can not be call while the current thread holds a syncronized lock on this MBean, because this method sends JMX notifications. Sending a general notification from a synchronized block is a bad idea and therefore not allowed.


getState

public int getState()

getStateInstance

public final State getStateInstance()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.