@Deprecated public abstract class AbstractService extends AbstractAnnotatedObject implements Service, MessageProcessor
| Modifier and Type | Field and Description |
|---|---|
protected ServiceAsyncReplyCompositeMessageSource |
asyncReplyMessageSource
Deprecated.
|
protected Component |
component
Deprecated.
|
protected MessagingExceptionHandler |
exceptionListener
Deprecated.
The exception strategy used by the service.
|
static String |
INITIAL_STATE_PAUSED
Deprecated.
|
static String |
INITIAL_STATE_STARTED
Deprecated.
|
static String |
INITIAL_STATE_STOPPED
Deprecated.
The initial states that the service can be started in
|
protected String |
initialState
Deprecated.
Determines the initial state of this service when the model starts.
|
protected ServiceLifecycleManager |
lifecycleManager
Deprecated.
|
protected org.apache.commons.logging.Log |
logger
Deprecated.
logger used by this class
|
protected MessageInfoMapping |
messageInfoMapping
Deprecated.
|
protected MessageProcessorChain |
messageProcessorChain
Deprecated.
|
protected MessageSource |
messageSource
Deprecated.
|
protected Model |
model
Deprecated.
The model in which this service is registered
|
protected MuleContext |
muleContext
Deprecated.
|
protected String |
name
Deprecated.
The service's name
|
protected MessageProcessor |
outboundRouter
Deprecated.
|
protected ServiceStatistics |
stats
Deprecated.
|
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
AbstractService(MuleContext muleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addMessageProcessors(MessageProcessorChainBuilder builder)
Deprecated.
|
protected void |
buildServiceMessageProcessorChain()
Deprecated.
|
protected ServiceAsyncRequestReplyRequestor |
createAsyncReplyProcessor()
Deprecated.
|
protected ServiceStatistics |
createStatistics()
Deprecated.
|
void |
dispatchEvent(MuleEvent event)
Deprecated.
|
void |
dispose()
Deprecated.
A lifecycle method where implementor should free up any resources.
|
protected void |
disposeIfDisposable(Object candidate)
Deprecated.
|
protected void |
doDispose()
Deprecated.
|
protected void |
doForceStop()
Deprecated.
|
protected void |
doInitialise()
Deprecated.
|
protected void |
doPause()
Deprecated.
Custom components can execute code necessary to put the service in a paused state here.
|
protected void |
doResume()
Deprecated.
Custom components can execute code necessary to resume a service once it has
been paused If a developer overloads this method the doPause() method MUST
also be overloaded to avoid inconsistent state in the service
|
protected void |
doStart()
Deprecated.
|
protected void |
doStop()
Deprecated.
|
void |
forceStop()
Deprecated.
|
ServiceAsyncReplyCompositeMessageSource |
getAsyncReplyMessageSource()
Deprecated.
|
protected long |
getAsyncReplyTimeout()
Deprecated.
|
Component |
getComponent()
Deprecated.
|
MessagingExceptionHandler |
getExceptionListener()
Deprecated.
|
String |
getInitialState()
Deprecated.
Returns the initial state of this service
|
LifecycleManager |
getLifecycleManager()
Deprecated.
|
LifecycleState |
getLifecycleState()
Deprecated.
|
MessageInfoMapping |
getMessageInfoMapping()
Deprecated.
|
MessageProcessorChain |
getMessageProcessorChain()
Deprecated.
|
MessageSource |
getMessageSource()
Deprecated.
|
Model |
getModel()
Deprecated.
Returns the name of the model that this descriptor is registered with.
|
MuleContext |
getMuleContext()
Deprecated.
|
String |
getName()
Deprecated.
Gets the name of the object
|
MessageProcessor |
getOutboundMessageProcessor()
Deprecated.
Outbound Routers control how events are published by a service once.
|
protected MessageProcessor |
getServiceStartedAssertingMessageProcessor()
Deprecated.
|
ServiceStatistics |
getStatistics()
Deprecated.
Returns the Service statistics.
|
void |
initialise()
Deprecated.
Initialise the service.
|
protected void |
initialiseIfInitialisable(Object candidate)
Deprecated.
|
protected void |
injectFlowConstructMuleContext(Object candidate)
Deprecated.
|
protected void |
injectFlowConstructMuleContextExceptionHandler(Object candidate)
Deprecated.
|
boolean |
isPaused()
Deprecated.
Determines if the service is in a paused state
|
boolean |
isStarted()
Deprecated.
Determines whether this service has been started
|
boolean |
isStopped()
Deprecated.
|
boolean |
isStopping()
Deprecated.
|
void |
pause()
Deprecated.
Pauses event processing for a single Mule Service.
|
protected void |
pauseIfPausable(Object candidate)
Deprecated.
|
MuleEvent |
process(MuleEvent event)
Deprecated.
Invokes the MessageProcessor.
|
void |
resume()
Deprecated.
Resumes a single Mule Service that has been paused.
|
protected void |
resumeIfResumable(Object candidate)
Deprecated.
|
MuleEvent |
sendEvent(MuleEvent event)
Deprecated.
|
void |
setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
Deprecated.
|
void |
setComponent(Component component)
Deprecated.
|
void |
setExceptionListener(MessagingExceptionHandler exceptionListener)
Deprecated.
|
void |
setInitialState(String initialState)
Deprecated.
Sets the initial state of this service
|
void |
setMessageInfoMapping(MessageInfoMapping messageInfoMapping)
Deprecated.
|
void |
setMessageProcessor(MessageProcessor processor)
Deprecated.
|
void |
setMessageSource(MessageSource inboundMessageSource)
Deprecated.
|
void |
setModel(Model model)
Deprecated.
|
void |
setName(String name)
Deprecated.
Sets the name of the object
|
void |
setOutboundMessageProcessor(MessageProcessor processor)
Deprecated.
Outbound message processor controls how events are published by a service once the
event has been processed.
|
void |
start()
Deprecated.
|
protected void |
startIfStartable(Object candidate)
Deprecated.
|
void |
stop()
Deprecated.
|
protected void |
stopIfStoppable(Object candidate)
Deprecated.
|
String |
toString()
Deprecated.
|
getAnnotation, getAnnotations, setAnnotationsprotected transient org.apache.commons.logging.Log logger
protected ServiceStatistics stats
protected Model model
protected MuleContext muleContext
protected ServiceLifecycleManager lifecycleManager
public static final String INITIAL_STATE_STOPPED
public static final String INITIAL_STATE_STARTED
public static final String INITIAL_STATE_PAUSED
protected MessagingExceptionHandler exceptionListener
protected String name
protected MessageProcessor outboundRouter
protected MessageSource messageSource
protected ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource
protected MessageProcessorChain messageProcessorChain
protected MessageInfoMapping messageInfoMapping
protected String initialState
protected Component component
public AbstractService(MuleContext muleContext)
public final void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationException - if the service fails to
initialiseRecoverableException - if an error occurs that can be recovered fromServiceDescriptorpublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic final void pause()
throws MuleException
pause in interface ServiceMuleExceptionpublic final void resume()
throws MuleException
resume in interface ServiceMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic final void dispose()
Disposabledispose in interface Disposablepublic LifecycleState getLifecycleState()
getLifecycleState in interface LifecycleStateEnabledpublic boolean isStarted()
Servicepublic boolean isPaused()
public boolean isStopping()
protected void doPause()
throws MuleException
MuleExceptionprotected void doResume()
throws MuleException
MuleExceptionprotected void doForceStop()
throws MuleException
MuleExceptionprotected void doStop()
throws MuleException
MuleExceptionprotected void doStart()
throws MuleException
MuleExceptionprotected void doDispose()
protected void doInitialise()
throws InitialisationException
InitialisationExceptionpublic void forceStop()
throws MuleException
MuleExceptionprotected void buildServiceMessageProcessorChain()
throws MuleException
MuleExceptionprotected MessageProcessor getServiceStartedAssertingMessageProcessor()
protected abstract void addMessageProcessors(MessageProcessorChainBuilder builder)
protected ServiceStatistics createStatistics()
public ServiceStatistics getStatistics()
ServicegetStatistics in interface FlowConstructgetStatistics in interface Service@Deprecated public void dispatchEvent(MuleEvent event) throws MuleException
ServicedispatchEvent in interface Serviceevent - the event to consumeMuleException - if the event fails to be processed@Deprecated public MuleEvent sendEvent(MuleEvent event) throws MuleException
ServicesendEvent in interface Serviceevent - the event to consumeMuleException - if the event fails to be processedpublic String getName()
NamedObjectgetName in interface NamedObjectpublic Model getModel()
Servicepublic MessagingExceptionHandler getExceptionListener()
getExceptionListener in interface FlowConstructgetExceptionListener in interface Servicepublic void setExceptionListener(MessagingExceptionHandler exceptionListener)
setExceptionListener in interface Servicepublic MessageSource getMessageSource()
getMessageSource in interface Servicepublic void setMessageSource(MessageSource inboundMessageSource)
setMessageSource in interface Servicepublic MessageProcessor getOutboundMessageProcessor()
ServicegetOutboundMessageProcessor in interface ServiceOutboundRouterCollection@Deprecated public void setMessageProcessor(MessageProcessor processor)
public void setOutboundMessageProcessor(MessageProcessor processor)
ServicesetOutboundMessageProcessor in interface Servicepublic ServiceAsyncReplyCompositeMessageSource getAsyncReplyMessageSource()
getAsyncReplyMessageSource in interface Servicepublic void setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
setAsyncReplyMessageSource in interface Servicepublic String getInitialState()
ServicegetInitialState in interface Servicepublic void setInitialState(String initialState)
ServicesetInitialState in interface ServiceinitialState - the initial state of this servicepublic void setName(String name)
NameableObjectsetName in interface NameableObjectname - the name of the objectpublic Component getComponent()
ServiceService for each incoming
MuleEvent routed on by the inbound routers.getComponent in interface Servicepublic void setComponent(Component component)
ServiceService for each incoming
MuleEvent routed on by the inbound routers.setComponent in interface Servicepublic MuleContext getMuleContext()
getMuleContext in interface FlowConstructgetMuleContext in interface Servicepublic LifecycleManager getLifecycleManager()
getLifecycleManager in interface Servicepublic MessageInfoMapping getMessageInfoMapping()
getMessageInfoMapping in interface FlowConstructMessageInfoMapping used to control how Important message
information is pulled from the current message.public void setMessageInfoMapping(MessageInfoMapping messageInfoMapping)
protected long getAsyncReplyTimeout()
protected ServiceAsyncRequestReplyRequestor createAsyncReplyProcessor()
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionpublic MessageProcessorChain getMessageProcessorChain()
protected void injectFlowConstructMuleContextExceptionHandler(Object candidate)
protected void injectFlowConstructMuleContext(Object candidate)
protected void initialiseIfInitialisable(Object candidate) throws InitialisationException
InitialisationExceptionprotected void startIfStartable(Object candidate) throws MuleException
MuleExceptionprotected void stopIfStoppable(Object candidate) throws MuleException
MuleExceptionprotected void disposeIfDisposable(Object candidate)
protected void pauseIfPausable(Object candidate) throws MuleException
MuleExceptionprotected void resumeIfResumable(Object candidate) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.