|
||||||||||
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)
Makes an asynchronous event call to the service. |
Component |
getComponent()
Returns the Component that is a invoked by a Service for each incoming
MuleEvent routed on by the InboundRouterCollection . |
ExceptionListener |
getExceptionListener()
The exception strategy to use to handle exceptions in the Mule component. |
InboundRouterCollection |
getInboundRouter()
Inbound Routers control how events are received by a service. |
String |
getInitialState()
Returns the initial state of this service |
Model |
getModel()
Returns the name of the model that this descriptor is registered with. |
MuleContext |
getMuleContext()
|
OutboundRouterCollection |
getOutboundRouter()
Outbound Routers control how events are published by a service once. |
ResponseRouterCollection |
getResponseRouter()
Response Routers control how events are returned in a request/response call. |
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 |
void |
pause()
Pauses event processing for a single Mule Service. |
void |
resume()
Resumes a single Mule Service that has been paused. |
MuleMessage |
sendEvent(MuleEvent event)
Makes a synchronous event call to the service. |
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(ExceptionListener listener)
The exception strategy to use to handle exceptions in the Mule component. |
void |
setInboundRouter(InboundRouterCollection router)
Inbound Routers control how events are received by a service. |
void |
setInitialState(String state)
Sets the initial state of this service |
void |
setModel(Model model)
Sets the Model name that this descriptor is registered within. |
void |
setOutboundRouter(OutboundRouterCollection router)
Outbound Routers control how events are published by a service once. |
void |
setResponseRouter(ResponseRouterCollection router)
Response Routers control how events are returned in a request/response call. |
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.context.MuleContextAware |
---|
setMuleContext |
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 processedMuleMessage sendEvent(MuleEvent event) throws MuleException
event
- the event to consume
MuleException
- if the event fails to be processedboolean isStarted()
void pause() throws MuleException
MuleException
void resume() throws MuleException
MuleException
boolean isPaused()
ExceptionListener getExceptionListener()
InboundRouterCollection getInboundRouter()
InboundRouterCollection
OutboundRouterCollection getOutboundRouter()
OutboundRouterCollection
ResponseRouterCollection getResponseRouter()
ResponseRouterCollection
String getInitialState()
Model getModel()
void setExceptionListener(ExceptionListener listener)
listener
- the exception strategy to use. If none has been set or
argument is null a defaultvoid setInboundRouter(InboundRouterCollection router)
router
- the inbound router for this serviceInboundRouterCollection
void setOutboundRouter(OutboundRouterCollection router)
router
- the outbound router for this serviceOutboundRouterCollection
void setResponseRouter(ResponseRouterCollection router)
router
- the response router for this serviceResponseRouterCollection
void setInitialState(String state)
state
- the initial state of this serviceorg.mule.ImmutableMuleDescriptor#INITIAL_STATE_STARTED
,
org.mule.ImmutableMuleDescriptor#INITIAL_STATE_STOPPED
,
org.mule.ImmutableMuleDescriptor#INITIAL_STATE_PAUSED
void setModel(Model model)
modelName
- name of the modelComponent 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()
MuleContext getMuleContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |