public class JmsInputChannel extends Object implements org.apache.uima.aae.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() |
public org.apache.uima.aae.controller.AnalysisEngineController getController()
public String getName()
getName
in interface org.apache.uima.aae.Channel
public void setController(org.apache.uima.aae.controller.AnalysisEngineController aController) throws Exception
Exception
public void setMessageHandler(org.apache.uima.aae.handler.Handler aHandler)
public void setEndpointName(String anEndpointName)
public boolean validMessage(javax.jms.Message aMessage) throws Exception
aMessage
- - JMS Message to validateException
public void abort()
public void onMessage(javax.jms.Message aMessage, javax.jms.Session aJmsSession)
onMessage
in interface org.springframework.jms.listener.SessionAwareMessageListener
aMessage
- - JMS Message containing header and payloadaJmsSession
- - JMSSession objectpublic int getSessionAckMode()
getSessionAckMode
in interface org.apache.uima.aae.InputChannel
public String getServerUri()
getServerUri
in interface org.apache.uima.aae.InputChannel
public List<UimaDefaultMessageListenerContainer> registerListener(UimaDefaultMessageListenerContainer messageListener)
public List<UimaDefaultMessageListenerContainer> getListeners()
public void setListenerContainer(UimaDefaultMessageListenerContainer messageListener)
public org.apache.activemq.ActiveMQConnectionFactory getConnectionFactory()
public void ackMessage(org.apache.uima.aae.message.MessageContext aMessageContext)
ackMessage
in interface org.apache.uima.aae.InputChannel
public String getBrokerURL()
getBrokerURL
in interface JmsInputChannelMBean
public String getInputQueueName()
getInputQueueName
in interface org.apache.uima.aae.InputChannel
getInputQueueName
in interface JmsInputChannelMBean
public org.apache.uima.aae.jmx.ServiceInfo getServiceInfo()
getServiceInfo
in interface org.apache.uima.aae.InputChannel
public void setServerUri(String serverUri)
setServerUri
in interface org.apache.uima.aae.InputChannel
public void stop(boolean shutdownNow) throws Exception
stop
in interface org.apache.uima.aae.Channel
Exception
public void disconnectListenersFromQueue() throws Exception
disconnectListenersFromQueue
in interface org.apache.uima.aae.InputChannel
Exception
public void setTerminating()
setTerminating
in interface org.apache.uima.aae.InputChannel
public void terminate()
terminate
in interface org.apache.uima.aae.InputChannel
public void stop(int channelsToClose, boolean shutdownNow) throws Exception
stop
in interface org.apache.uima.aae.Channel
Exception
public boolean isStopped()
isStopped
in interface org.apache.uima.aae.InputChannel
public int getConcurrentConsumerCount()
getConcurrentConsumerCount
in interface org.apache.uima.aae.InputChannel
public void createListener(String aDelegateKey, org.apache.uima.aae.controller.Endpoint endpointToUpdate) throws Exception
createListener
in interface org.apache.uima.aae.InputChannel
Exception
public boolean isListenerActiveOnDestination(javax.jms.Destination destination)
public void destroyListener(String anEndpointName, String aDelegateKey)
destroyListener
in interface org.apache.uima.aae.InputChannel
public boolean isFailed(String aDelegateKey)
isFailed
in interface org.apache.uima.aae.InputChannel
public void removeDelegateFromFailedList(String aDelegateKey)
removeDelegateFromFailedList
in interface org.apache.uima.aae.InputChannel
public boolean isListenerForDestination(String anEndpointName)
isListenerForDestination
in interface org.apache.uima.aae.InputChannel
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.