Class UimaEEAdminSpringContext
- java.lang.Object
-
- org.apache.uima.adapter.jms.activemq.UimaEEAdminSpringContext
-
- All Implemented Interfaces:
java.util.EventListener,UimaEEAdminContext,org.springframework.context.ApplicationListener
public class UimaEEAdminSpringContext extends java.lang.Object implements UimaEEAdminContext, org.springframework.context.ApplicationListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classUimaEEAdminSpringContext.ListenerEntry
-
Constructor Summary
Constructors Constructor Description UimaEEAdminSpringContext(org.springframework.context.support.FileSystemXmlApplicationContext aSpringContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConcurrentConsumerCount(java.lang.String anEndpointName)org.springframework.context.ApplicationContextgetSpringContainer()booleanisShutdown()voidonApplicationEvent(org.springframework.context.ApplicationEvent anEvent)voidsetBroker(org.apache.activemq.broker.BrokerService aBrokerService)voidshutdown()Stops the Spring ContainervoidstopListener(java.lang.String anEndpointName)Stops a listener thread on a given endpoint
-
-
-
Method Detail
-
setBroker
public void setBroker(org.apache.activemq.broker.BrokerService aBrokerService)
-
getSpringContainer
public org.springframework.context.ApplicationContext getSpringContainer()
-
getConcurrentConsumerCount
public int getConcurrentConsumerCount(java.lang.String anEndpointName)
- Specified by:
getConcurrentConsumerCountin interfaceUimaEEAdminContext
-
stopListener
public void stopListener(java.lang.String anEndpointName)
Stops a listener thread on a given endpoint- Specified by:
stopListenerin interfaceUimaEEAdminContext
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent anEvent)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener
-
shutdown
public void shutdown()
Stops the Spring Container- Specified by:
shutdownin interfaceUimaEEAdminContext
-
isShutdown
public boolean isShutdown()
-
-