|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esperio.jms.JMSInputAdapter
public abstract class JMSInputAdapter
Created for ESPER.
Field Summary | |
---|---|
protected com.espertech.esper.core.EPServiceProviderSPI |
epServiceProviderSPI
Engine services. |
protected JMSMessageUnmarshaller |
jmsMessageUnmarshaller
Unmarshaller for JMS messages. |
protected long |
startTime
Start time. |
protected AdapterStateManager |
stateManager
Manages adapter state. |
Fields inherited from interface com.espertech.esperio.InputAdapter |
---|
ESPERIO_MAP_EVENT_TYPE |
Constructor Summary | |
---|---|
JMSInputAdapter()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the Adapter, stopping the sending of all events and releasing all the resources, and disallowing any further state changes on the Adapter. |
com.espertech.esper.client.EPServiceProvider |
getEPServiceProvider()
Returns the engine instance. |
JMSMessageUnmarshaller |
getJmsMessageUnmarshaller()
Returns the unmarshaller. |
AdapterState |
getState()
Get the state of this Adapter. |
void |
pause()
Pause the sending of events after a Adapter has been started. |
void |
resume()
Resume sending events after the Adapter has been paused. |
void |
setEPServiceProvider(com.espertech.esper.client.EPServiceProvider epService)
An adapter takes an engine instance to process events. |
void |
setJmsMessageUnmarshaller(JMSMessageUnmarshaller jmsMessageUnmarshaller)
Sets the unmarshaller to use. |
void |
start()
Start the sending of events into the runtime egine. |
void |
stop()
Stop sending events and return the Adapter to the OPENED state, ready to be started once again. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AdapterStateManager stateManager
protected com.espertech.esper.core.EPServiceProviderSPI epServiceProviderSPI
protected long startTime
protected JMSMessageUnmarshaller jmsMessageUnmarshaller
Constructor Detail |
---|
public JMSInputAdapter()
Method Detail |
---|
public JMSMessageUnmarshaller getJmsMessageUnmarshaller()
public void setJmsMessageUnmarshaller(JMSMessageUnmarshaller jmsMessageUnmarshaller)
jmsMessageUnmarshaller
- is the unmarshaller to usepublic com.espertech.esper.client.EPServiceProvider getEPServiceProvider()
AdapterSPI
getEPServiceProvider
in interface AdapterSPI
public void setEPServiceProvider(com.espertech.esper.client.EPServiceProvider epService)
AdapterSPI
setEPServiceProvider
in interface AdapterSPI
epService
- is the service instance for the adapter.public void start() throws com.espertech.esper.client.EPException
Adapter
start
in interface Adapter
com.espertech.esper.client.EPException
- in case of errors processing the eventspublic void pause() throws com.espertech.esper.client.EPException
Adapter
pause
in interface Adapter
com.espertech.esper.client.EPException
- if this Adapter has already been stoppedpublic void resume() throws com.espertech.esper.client.EPException
Adapter
resume
in interface Adapter
com.espertech.esper.client.EPException
- in case of errors processing the eventspublic void stop() throws com.espertech.esper.client.EPException
Adapter
stop
in interface Adapter
com.espertech.esper.client.EPException
- in case of errors releasing resourcespublic void destroy() throws com.espertech.esper.client.EPException
Adapter
destroy
in interface Adapter
com.espertech.esper.client.EPException
- to indicate errors during destroypublic AdapterState getState()
Adapter
getState
in interface Adapter
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |