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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.probemanager.service.ProbeTopicProducer
All Implemented Interfaces:
org.ow2.jasmine.probe.JasmineProbeListener

public class ProbeTopicProducer
extends Object
implements org.ow2.jasmine.probe.JasmineProbeListener

This class receives events from JasmineListener and resend them on the jasmineProbe Topic

Author:
durieuxp

Field Summary
protected  org.ow2.util.log.Log logger
           
protected  javax.jms.Connection probeconn
           
protected  javax.jms.MessageProducer probeProducer
           
protected  javax.jms.Session probesess
           
protected  javax.jms.Topic probetopic
           
 
Constructor Summary
ProbeTopicProducer()
           
 
Method Summary
 void notifyEvent(org.ow2.jasmine.probe.JasmineProbe probe)
          Notifies a Probe state change
 void publishResult(org.ow2.jasmine.event.messages.JasmineEvent event)
          Send a message on the Topic for flex clients
 void releaseProbeConnection()
           
 
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

probeconn

protected javax.jms.Connection probeconn

probesess

protected javax.jms.Session probesess

probetopic

protected javax.jms.Topic probetopic

probeProducer

protected javax.jms.MessageProducer probeProducer
Constructor Detail

ProbeTopicProducer

public ProbeTopicProducer()
Method Detail

notifyEvent

public void notifyEvent(org.ow2.jasmine.probe.JasmineProbe probe)
Notifies a Probe state change

Specified by:
notifyEvent in interface org.ow2.jasmine.probe.JasmineProbeListener
Parameters:
probe -

publishResult

public void publishResult(org.ow2.jasmine.event.messages.JasmineEvent event)
Send a message on the Topic for flex clients

Parameters:
event - Event sent by the eventswitch (JasmineEvent format)

releaseProbeConnection

public void releaseProbeConnection()


Copyright © 2013 OW2 Consortium. All Rights Reserved.