|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
Service
is the internal representation of a Mule Managed service. It
is responsible for managing the interaction of events to and from the service as
well as managing pooled resources.
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Method Summary | |
---|---|
void |
dispatchEvent(MuleEvent event)
Deprecated. |
ServiceAsyncReplyCompositeMessageSource |
getAsyncReplyMessageSource()
|
Component |
getComponent()
Returns the Component that is a invoked by a Service for each incoming
MuleEvent routed on by the InboundRouterCollection . |
MessagingExceptionHandler |
getExceptionListener()
|
java.lang.String |
getInitialState()
Returns the initial state of this service |
LifecycleManager |
getLifecycleManager()
|
MessageSource |
getMessageSource()
|
Model |
getModel()
Returns the name of the model that this descriptor is registered with. |
MuleContext |
getMuleContext()
|
MessageProcessor |
getOutboundMessageProcessor()
Outbound Routers control how events are published by a service once. |
ServiceStatistics |
getStatistics()
Returns the Service statistics. |
boolean |
isPaused()
True if the service is in a paused state, false otherwise |
boolean |
isStarted()
Determines whether this service has been started |
boolean |
isStopped()
|
void |
pause()
Pauses event processing for a single Mule Service. |
void |
resume()
Resumes a single Mule Service that has been paused. |
MuleEvent |
sendEvent(MuleEvent event)
Deprecated. |
void |
setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
|
void |
setComponent(Component component)
Sets the Component that is a invoked by a Service for each incoming
MuleEvent routed on by the InboundRouterCollection . |
void |
setExceptionListener(MessagingExceptionHandler exceptionListener)
|
void |
setInitialState(java.lang.String state)
Sets the initial state of this service |
void |
setMessageSource(MessageSource messageSource)
|
void |
setModel(Model model)
|
void |
setOutboundMessageProcessor(MessageProcessor processor)
Outbound Routers control how events are published by a service once. |
Methods inherited from interface org.mule.api.construct.FlowConstruct |
---|
getMessageInfoMapping, getName |
Methods inherited from interface org.mule.api.lifecycle.LifecycleStateEnabled |
---|
getLifecycleState |
Methods inherited from interface org.mule.api.lifecycle.Initialisable |
---|
initialise |
Methods inherited from interface org.mule.api.lifecycle.Startable |
---|
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
---|
stop |
Methods inherited from interface org.mule.api.lifecycle.Disposable |
---|
dispose |
Methods inherited from interface org.mule.api.NamedObject |
---|
getName, setName |
Method Detail |
---|
void dispatchEvent(MuleEvent event) throws MuleException
event
- the event to consume
MuleException
- if the event fails to be processedMuleEvent sendEvent(MuleEvent event) throws MuleException
event
- the event to consume
MuleException
- if the event fails to be processedboolean isStarted()
boolean isStopped()
void pause() throws MuleException
MuleException
void resume() throws MuleException
MuleException
boolean isPaused()
MessageSource getMessageSource()
MessageProcessor getOutboundMessageProcessor()
OutboundRouterCollection
java.lang.String getInitialState()
Model getModel()
void setMessageSource(MessageSource messageSource)
void setOutboundMessageProcessor(MessageProcessor processor)
router
- the outbound router for this serviceOutboundRouterCollection
void setInitialState(java.lang.String state)
state
- the initial state of this servicevoid setModel(Model model)
Component getComponent()
Service
for each incoming
MuleEvent
routed on by the InboundRouterCollection
.
void setComponent(Component component)
Service
for each incoming
MuleEvent
routed on by the InboundRouterCollection
.
component
- ServiceStatistics getStatistics()
getStatistics
in interface FlowConstruct
MuleContext getMuleContext()
getMuleContext
in interface FlowConstruct
LifecycleManager getLifecycleManager()
void setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
ServiceAsyncReplyCompositeMessageSource getAsyncReplyMessageSource()
MessagingExceptionHandler getExceptionListener()
getExceptionListener
in interface FlowConstruct
void setExceptionListener(MessagingExceptionHandler exceptionListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |