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  int cmdId
           
protected  javax.jms.TopicConnection connection
           
protected  org.ow2.util.log.Log logger
           
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(int cmdId)
           
 void stopListening(int cmdId)
           
 
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

cmdId

protected int cmdId

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(int cmdId)

stopListening

public void stopListening(int cmdId)

onMessage

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


Copyright © 2012 OW2 Consortium. All Rights Reserved.