public class JmsInputChannel extends Object implements InputChannel, JmsInputChannelMBean, org.springframework.jms.listener.SessionAwareMessageListener
Handler. Each JMS Message is wrapped in transport neutral MessageContext
wrapper.| Modifier and Type | Field and Description |
|---|---|
static boolean |
attachToBrokerMBeanServer |
CloseAllChannels, InputChannels| Constructor and Description |
|---|
JmsInputChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
ackMessage(MessageContext aMessageContext) |
void |
createListener(String aDelegateKey,
Endpoint endpointToUpdate) |
void |
destroyListener(String anEndpointName,
String aDelegateKey) |
String |
getBrokerURL() |
int |
getConcurrentConsumerCount() |
org.apache.activemq.ActiveMQConnectionFactory |
getConnectionFactory() |
AnalysisEngineController |
getController() |
String |
getInputQueueName() |
String |
getName() |
String |
getServerUri() |
ServiceInfo |
getServiceInfo() |
int |
getSessionAckMode() |
boolean |
isFailed(String aDelegateKey) |
boolean |
isListenerActiveOnDestination(javax.jms.Destination destination) |
boolean |
isListenerForDestination(String anEndpointName) |
boolean |
isStopped() |
void |
onMessage(javax.jms.Message aMessage,
javax.jms.Session aJmsSession)
Receives Messages from the JMS Provider.
|
void |
removeDelegateFromFailedList(String aDelegateKey) |
void |
setController(AnalysisEngineController aController) |
void |
setEndpointName(String anEndpointName) |
void |
setListenerContainer(UimaDefaultMessageListenerContainer messageListener) |
void |
setMessageHandler(Handler aHandler) |
void |
setServerUri(String serverUri) |
void |
setTerminating() |
void |
stop() |
void |
stop(int channelsToClose) |
void |
terminate() |
boolean |
validMessage(javax.jms.Message aMessage)
Validates contents of the message.
|
public AnalysisEngineController getController()
public void setController(AnalysisEngineController aController) throws Exception
Exceptionpublic void setMessageHandler(Handler aHandler)
public void setEndpointName(String anEndpointName)
public boolean validMessage(javax.jms.Message aMessage)
throws Exception
aMessage - - JMS Message to validateExceptionpublic void abort()
public void onMessage(javax.jms.Message aMessage,
javax.jms.Session aJmsSession)
onMessage in interface org.springframework.jms.listener.SessionAwareMessageListeneraMessage - - JMS Message containing header and payloadaJmsSession - - JMSSession objectpublic int getSessionAckMode()
getSessionAckMode in interface InputChannelpublic String getServerUri()
getServerUri in interface InputChannelpublic void setListenerContainer(UimaDefaultMessageListenerContainer messageListener)
public org.apache.activemq.ActiveMQConnectionFactory getConnectionFactory()
public void ackMessage(MessageContext aMessageContext)
ackMessage in interface InputChannelpublic String getBrokerURL()
getBrokerURL in interface JmsInputChannelMBeanpublic String getInputQueueName()
getInputQueueName in interface InputChannelgetInputQueueName in interface JmsInputChannelMBeanpublic ServiceInfo getServiceInfo()
getServiceInfo in interface InputChannelpublic void setServerUri(String serverUri)
setServerUri in interface InputChannelpublic void setTerminating()
setTerminating in interface InputChannelpublic void terminate()
terminate in interface InputChannelpublic void stop(int channelsToClose)
throws Exception
public boolean isStopped()
isStopped in interface InputChannelpublic int getConcurrentConsumerCount()
getConcurrentConsumerCount in interface InputChannelpublic void createListener(String aDelegateKey, Endpoint endpointToUpdate) throws Exception
createListener in interface InputChannelExceptionpublic boolean isListenerActiveOnDestination(javax.jms.Destination destination)
public void destroyListener(String anEndpointName, String aDelegateKey)
destroyListener in interface InputChannelpublic boolean isFailed(String aDelegateKey)
isFailed in interface InputChannelpublic void removeDelegateFromFailedList(String aDelegateKey)
removeDelegateFromFailedList in interface InputChannelpublic boolean isListenerForDestination(String anEndpointName)
isListenerForDestination in interface InputChannelCopyright © 2016. All rights reserved.