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 java.lang.Object
implements javax.jms.MessageListener

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

Author:
durieuxp

Field Summary
protected  javax.jms.TopicConnection connection
           
protected  org.ow2.util.log.Log logger
           
protected  java.util.Set<java.lang.String> probeId
           
protected  ProbeTopicProducer producer
           
protected  javax.jms.TopicSession session
           
protected  javax.jms.TopicSubscriber 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(java.lang.String id)
           
 void stopListening(java.lang.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 java.util.Set<java.lang.String> probeId

subscriber

protected javax.jms.TopicSubscriber subscriber

session

protected javax.jms.TopicSession session

connection

protected javax.jms.TopicConnection 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(java.lang.String id)

stopListening

public void stopListening(java.lang.String id)

onMessage

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


Copyright © 2012 OW2 Consortium. All Rights Reserved.