|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.routing.AbstractSelectiveRouter
public abstract class AbstractSelectiveRouter
| 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 |
| Fields inherited from interface org.mule.api.AnnotatedObject |
|---|
PROPERTY_NAME |
| Constructor Summary | |
|---|---|
AbstractSelectiveRouter()
|
|
| Method Summary | |
|---|---|
void |
addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Add the child nodes to the path element tree. |
void |
addRoute(MessageProcessor processor,
Filter filter)
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
Object |
getAnnotation(QName name)
Gets the value of specified annotation. |
Map<QName,Object> |
getAnnotations()
Gets all annotations. |
List<MessageProcessorFilterPair> |
getConditionalMessageProcessors()
|
RouterStatistics |
getRouterStatistics()
|
void |
initialise()
Method used to perform any initialisation work. |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor. |
void |
removeRoute(MessageProcessor processor)
|
protected abstract Collection<MessageProcessor> |
selectProcessors(MuleEvent event)
|
void |
setAnnotations(Map<QName,Object> newAnnotations)
Sets annotations to the object. |
void |
setDefaultRoute(MessageProcessor processor)
|
void |
setFlowConstruct(FlowConstruct flowConstruct)
|
void |
setMuleContext(MuleContext context)
|
void |
setRouterStatistics(RouterStatistics routerStatistics)
|
void |
start()
|
void |
stop()
|
String |
toString()
|
void |
updateRoute(MessageProcessor processor,
Filter filter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSelectiveRouter()
| Method Detail |
|---|
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAware
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from
public void start()
throws MuleException
start in interface StartableMuleException
public void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
Disposable
dispose in interface Disposable
public void addRoute(MessageProcessor processor,
Filter filter)
addRoute in interface SelectiveRouterpublic void removeRoute(MessageProcessor processor)
removeRoute in interface SelectiveRouter
public void updateRoute(MessageProcessor processor,
Filter filter)
updateRoute in interface SelectiveRouterpublic void setDefaultRoute(MessageProcessor processor)
setDefaultRoute in interface SelectiveRouter
public MuleEvent process(MuleEvent event)
throws MuleException
MessageProcessor
process in interface MessageProcessorevent - MuleEvent to be processed
MuleExceptionprotected abstract Collection<MessageProcessor> selectProcessors(MuleEvent event)
public List<MessageProcessorFilterPair> getConditionalMessageProcessors()
public RouterStatistics getRouterStatistics()
public void setRouterStatistics(RouterStatistics routerStatistics)
setRouterStatistics in interface RouterStatisticsRecorderpublic final Object getAnnotation(QName name)
AnnotatedObject
getAnnotation in interface AnnotatedObjectpublic final Map<QName,Object> getAnnotations()
AnnotatedObject
getAnnotations in interface AnnotatedObjectpublic final void setAnnotations(Map<QName,Object> newAnnotations)
AnnotatedObject
setAnnotations in interface AnnotatedObjectpublic void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
MessageProcessorContainer
addMessageProcessorPathElements in interface MessageProcessorContainerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||