|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.MuleComponent
MuleComponent
manages the interaction and distribution of
events for a Mule-managed component.
Constructor Summary | |
MuleComponent(MuleDescriptor descriptor)
Default constructor |
Method Summary | |
void |
dispatchEvent(UMOEvent event)
Makes an asynhronous event call to the component. |
void |
dispose()
|
UMODescriptor |
getDescriptor()
|
java.lang.String |
getName()
|
int |
getQueueSize()
|
ComponentStatistics |
getStatistics()
|
protected void |
handleException(java.lang.Object msg,
java.lang.Throwable t)
|
void |
initialise()
Initialise the component. |
boolean |
isPaused()
|
boolean |
isStopped()
|
void |
pause()
Pauses event processing for theComponent. |
void |
resume()
Resumes the Component that has been paused. |
void |
run()
While the component isn't stopped this runs a continuous loop checking for new events in the queue |
UMOMessage |
sendEvent(UMOEvent event)
Makes a synhronous event call to the component. |
void |
start()
|
void |
stop()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MuleComponent(MuleDescriptor descriptor)
Method Detail |
public void initialise() throws InitialisationException
initialise
in interface Initialisable
InitialisationException
- if the component fails to initialiseUMODescriptor
public void stop() throws UMOException
stop
in interface Stoppable
UMOException
public void start() throws UMOException
start
in interface Startable
UMOException
public void pause()
UMOComponent
pause
in interface UMOComponent
MuleConfiguration
public void resume()
UMOComponent
resume
in interface UMOComponent
public void dispose() throws UMOException
dispose
in interface Disposable
UMOException
public ComponentStatistics getStatistics()
public UMODescriptor getDescriptor()
getDescriptor
in interface UMOComponent
UMODescriptor
public void dispatchEvent(UMOEvent event) throws UMOException
UMOComponent
dispatchEvent
in interface UMOComponent
event
- the event to consume
UMOException
- if the event fails to be processedpublic UMOMessage sendEvent(UMOEvent event) throws UMOException
UMOComponent
sendEvent
in interface UMOComponent
event
- the event to consume
UMOException
- if the event fails to be processedpublic java.lang.String getName()
public java.lang.String toString()
public int getQueueSize()
public boolean isStopped()
public boolean isPaused()
public void run()
run
in interface java.lang.Runnable
protected void handleException(java.lang.Object msg, java.lang.Throwable t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |