|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.model.AbstractComponent
org.mule.ra.JcaComponent
public class JcaComponent
JcaComponent
Is the type of component used in Mule when embedded
inside an app server using JCA. In the future we might want to use one of the
existing models.
Nested Class Summary | |
---|---|
class |
JcaComponent.MuleJcaWorker
|
Field Summary | |
---|---|
protected UMOWorkManager |
workManager
|
Fields inherited from class org.mule.impl.model.AbstractComponent |
---|
descriptor, exceptionListener, initialised, logger, model, paused, poolInitialised, stats, stopped, stopping |
Constructor Summary | |
---|---|
JcaComponent(MuleDescriptor descriptor,
UMOWorkManager workManager)
|
Method Summary | |
---|---|
protected void |
doDispatch(UMOEvent event)
|
void |
doInitialise()
|
protected void |
doPause()
Custom components can execute code necessary to put the component in a paused state here. |
protected void |
doResume()
Custom components can execute code necessary to resume a component once it has been paused If a developer overloads this method the doPause() method MUST also be overloaded to avoid inconsistent state in the component |
protected UMOMessage |
doSend(UMOEvent event)
Implementation of template method which is never call because send() is overwritten |
UMODescriptor |
getDescriptor()
|
Object |
getManagedInstance()
|
boolean |
isPaused()
Determines if the component is in a paused state |
UMOMessage |
sendEvent(UMOEvent event)
This is the synchronous call method and not supported by components managed in a JCA container |
protected void |
waitIfPaused(UMOEvent event)
Called before an event is sent or dispatched to a component, it will block until resume() is called. |
void |
workAccepted(javax.resource.spi.work.WorkEvent arg0)
|
void |
workCompleted(javax.resource.spi.work.WorkEvent arg0)
|
void |
workRejected(javax.resource.spi.work.WorkEvent arg0)
|
void |
workStarted(javax.resource.spi.work.WorkEvent arg0)
|
Methods inherited from class org.mule.impl.model.AbstractComponent |
---|
connectListeners, createStatistics, disconnectListeners, dispatchEvent, dispose, doDispose, doForceStop, doStart, doStop, fireComponentNotification, forceStop, getIncomingEndpoints, getInstance, getName, getStatistics, handleException, initialise, isStarted, isStopped, isStopping, lookupComponent, pause, registerListeners, resume, start, start, startListeners, stop, stopListeners, toString, unregisterListeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UMOWorkManager workManager
Constructor Detail |
---|
public JcaComponent(MuleDescriptor descriptor, UMOWorkManager workManager)
Method Detail |
---|
public UMODescriptor getDescriptor()
getDescriptor
in interface UMOComponent
getDescriptor
in class AbstractComponent
UMODescriptor
public UMOMessage sendEvent(UMOEvent event) throws UMOException
sendEvent
in interface UMOComponent
sendEvent
in class AbstractComponent
event
-
UMOException
public boolean isPaused()
AbstractComponent
isPaused
in interface UMOComponent
isPaused
in class AbstractComponent
protected void waitIfPaused(UMOEvent event) throws InterruptedException
AbstractComponent
waitIfPaused
in class AbstractComponent
event
- the current event being passed to the component
InterruptedException
- if the thread is interruptedprotected void doPause() throws UMOException
AbstractComponent
doPause
in class AbstractComponent
UMOException
protected void doResume() throws UMOException
AbstractComponent
doResume
in class AbstractComponent
UMOException
public void doInitialise() throws InitialisationException
doInitialise
in class AbstractComponent
InitialisationException
protected void doDispatch(UMOEvent event) throws UMOException
doDispatch
in class AbstractComponent
UMOException
protected UMOMessage doSend(UMOEvent event) throws UMOException
doSend
in class AbstractComponent
UMOException
public Object getManagedInstance() throws UMOException
UMOException
public void workAccepted(javax.resource.spi.work.WorkEvent arg0)
workAccepted
in interface javax.resource.spi.work.WorkListener
public void workCompleted(javax.resource.spi.work.WorkEvent arg0)
workCompleted
in interface javax.resource.spi.work.WorkListener
public void workRejected(javax.resource.spi.work.WorkEvent arg0)
workRejected
in interface javax.resource.spi.work.WorkListener
public void workStarted(javax.resource.spi.work.WorkEvent arg0)
workStarted
in interface javax.resource.spi.work.WorkListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |