Class NrtCollectorJMSDLMC
- java.lang.Object
-
- org.opennms.nrtg.nrtcollector.internal.jms.NrtCollectorJMSDLMC
-
- All Implemented Interfaces:
NrtCollector
public class NrtCollectorJMSDLMC extends Object implements NrtCollector
A JMS based NrtCollector listening to CollectionJobs using aAbstractMessageListenerContainer
. Received Jobs will be send to aCollectionJobListener
configured via spring.- Author:
- Simon Walter
-
-
Constructor Summary
Constructors Constructor Description NrtCollectorJMSDLMC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setListenerContainer(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)
void
start()
Starts the satellite.void
stop()
Stops the nrtcollector and cleans up all the resourcesboolean
terminated()
Tells the main thread if the satellite instance is terminated.
-
-
-
Method Detail
-
setListenerContainer
public void setListenerContainer(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer)
-
start
public void start()
Description copied from interface:NrtCollector
Starts the satellite. Must return after initialization and start.- Specified by:
start
in interfaceNrtCollector
-
terminated
public boolean terminated()
Description copied from interface:NrtCollector
Tells the main thread if the satellite instance is terminated.- Specified by:
terminated
in interfaceNrtCollector
- Returns:
-
stop
public void stop()
Description copied from interface:NrtCollector
Stops the nrtcollector and cleans up all the resources- Specified by:
stop
in interfaceNrtCollector
-
-