org.ow2.jasmine.monitoring.eos.probemanager.service
Class JasmineListener

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.probemanager.service.JasmineListener
All Implemented Interfaces:
javax.jms.MessageListener

public class JasmineListener
extends Object
implements javax.jms.MessageListener

Listen to the "jasmine" topic where all probe results are sent.

Author:
durieuxp

Field Summary
protected  javax.jms.Connection connection
           
protected  org.ow2.util.log.Log logger
           
protected  Set<String> probeId
           
protected  ProbeTopicProducer producer
           
protected  javax.jms.Session session
           
protected  javax.jms.MessageConsumer subscriber
           
protected  javax.jms.Topic topic
           
 
Constructor Summary
JasmineListener(ProbeTopicProducer producer)
           
 
Method Summary
protected  void connect()
           
protected  void disconnect()
           
 void onMessage(javax.jms.Message message)
           
 void startListening(String id)
           
 void stopListening(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.ow2.util.log.Log logger

probeId

protected Set<String> probeId

subscriber

protected javax.jms.MessageConsumer subscriber

session

protected javax.jms.Session session

connection

protected javax.jms.Connection connection

topic

protected javax.jms.Topic topic

producer

protected ProbeTopicProducer producer
Constructor Detail

JasmineListener

public JasmineListener(ProbeTopicProducer producer)
Method Detail

connect

protected void connect()

disconnect

protected void disconnect()

startListening

public void startListening(String id)

stopListening

public void stopListening(String id)

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener


Copyright © 2013 OW2 Consortium. All Rights Reserved.