Home » geronimo-2.2-source-release » org.apache.geronimo.gbean.runtime » [javadoc | source]
org.apache.geronimo.gbean.runtime
public class: GBeanInstanceState [javadoc | source]
java.lang.Object
   org.apache.geronimo.gbean.runtime.GBeanInstanceState
Constructor:
 GBeanInstanceState(AbstractName abstractName,
    Kernel kernel,
    DependencyManager dependencyManager,
    GBeanInstance gbeanInstance,
    LifecycleBroadcaster lifecycleBroadcaster) 
Method from org.apache.geronimo.gbean.runtime.GBeanInstanceState Summary:
attemptFullStart,   attemptFullStop,   fail,   getState,   getStateInstance,   start,   startRecursive,   stop,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.gbean.runtime.GBeanInstanceState Detail:
  void attemptFullStart() 
    Attempts to bring the component into org.apache.geronimo.kernel.management.State#RUNNING state. If an Exception occurs while starting the component, the component will be failed.

    Note: Do not call this from within a synchronized block as it makes may send a JMX notification

  void attemptFullStop() 
    Attempt to bring the component into the fully stopped state. If an exception occurs while stopping the component, the component will be failed.

    Note: Do not call this from within a synchronized block as it may send a JMX notification

 final  void fail() 
    Moves this MBean to the FAILED state. There are no calls to dependent children, but they will be notified using standard J2EE management notification.

    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.

 public int getState() 
 public final State getStateInstance() 
 public final  void start() 
 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.

 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.

 public String toString()