org.mule.processor
Class SedaStageLifecycleManager

java.lang.Object
  extended by org.mule.lifecycle.AbstractLifecycleManager<O>
      extended by org.mule.lifecycle.SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>
          extended by org.mule.processor.SedaStageLifecycleManager
All Implemented Interfaces:
LifecycleManager

public class SedaStageLifecycleManager
extends SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>

The lifecycle manager responsible for managing lifecycle transitions for a Mule service. The Mule service adds some additional states, namely pause and resume. The lifecycle manager manages lifecycle notifications and logging as well.


Field Summary
protected  Log logger
          logger used by this class
 
Fields inherited from class org.mule.lifecycle.AbstractLifecycleManager
completedPhases, currentPhase, executingPhase, lifecycleManagerId, object, phaseNames, state
 
Fields inherited from interface org.mule.api.lifecycle.LifecycleManager
NOT_IN_LIFECYCLE_PHASE
 
Constructor Summary
SedaStageLifecycleManager(String name, SedaStageInterceptingMessageProcessor sedaStage)
           
 
Method Summary
 void fireDisposePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
 void fireInitialisePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
 void firePausePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
 void fireResumePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
 void fireStartPhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
 void fireStopPhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
           
protected  void notifyTransition(String destinationPhase)
          Allows any for any state adjustments in sub classes.
protected  void registerTransitions()
           
 
Methods inherited from class org.mule.lifecycle.SimpleLifecycleManager
fireLifecycle
 
Methods inherited from class org.mule.lifecycle.AbstractLifecycleManager
addDirectTransition, checkPhase, createLifecycleState, getCurrentPhase, getExecutingPhase, getLifecycleObject, getState, invokePhase, isDirectTransition, isDirectTransition, isPhaseComplete, registerLifecycleCallback, reset, setCurrentPhase, setExecutingPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient Log logger
logger used by this class

Constructor Detail

SedaStageLifecycleManager

public SedaStageLifecycleManager(String name,
                                 SedaStageInterceptingMessageProcessor sedaStage)
Method Detail

registerTransitions

protected void registerTransitions()
Overrides:
registerTransitions in class SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>

notifyTransition

protected void notifyTransition(String destinationPhase)
Description copied from class: AbstractLifecycleManager
Allows any for any state adjustments in sub classes. For example, it may be necessary to remove a state from the 'completedPhases' collection once a transition occurs. This is only necessary for a Lifecycle Manager that introduces a new phase pair.

Overrides:
notifyTransition in class AbstractLifecycleManager<SedaStageInterceptingMessageProcessor>
Parameters:
destinationPhase - the currently completed phase

fireInitialisePhase

public void fireInitialisePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
                         throws InitialisationException
Specified by:
fireInitialisePhase in class SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>
Throws:
InitialisationException

fireStartPhase

public void fireStartPhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
                    throws MuleException
Specified by:
fireStartPhase in class SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>
Throws:
MuleException

firePausePhase

public void firePausePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
                    throws MuleException
Throws:
MuleException

fireResumePhase

public void fireResumePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
                     throws MuleException
Throws:
MuleException

fireStopPhase

public void fireStopPhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
                   throws MuleException
Specified by:
fireStopPhase in class SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>
Throws:
MuleException

fireDisposePhase

public void fireDisposePhase(LifecycleCallback<SedaStageInterceptingMessageProcessor> callback)
Specified by:
fireDisposePhase in class SimpleLifecycleManager<SedaStageInterceptingMessageProcessor>


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.