org.gcube.messaging.monitoring.probes.ghn
Class GHNNotificationProbe

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.common.core.monitoring.GCUBETestProbe>
      extended by org.gcube.common.core.monitoring.GCUBETestProbe
          extended by org.gcube.common.core.monitoring.GCUBENotificationProbe
              extended by org.gcube.messaging.monitoring.probes.ghn.GHNNotificationProbe
All Implemented Interfaces:
org.gcube.common.core.monitoring.GCUBEProbe, org.gcube.common.core.utils.handlers.GCUBEIHandler<org.gcube.common.core.monitoring.GCUBETestProbe>

public class GHNNotificationProbe
extends org.gcube.common.core.monitoring.GCUBENotificationProbe

Implementation of a GHNNotifictionProbe that subscribe for GHN events and dispatch messages to the Broker

Author:
Andrea Manzi(CERN)

Field Summary
 
Fields inherited from class org.gcube.common.core.monitoring.GCUBETestProbe
map, scheduler
 
Fields inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
handled, logger, producer
 
Constructor Summary
GHNNotificationProbe()
           
 
Method Summary
static org.gcube.messaging.common.messages.GHNMessage createGHNMessage(org.gcube.common.core.scope.GCUBEScope scope)
           
 void run()
           
static void sendGHNTest(org.gcube.messaging.common.messages.Test test)
           
static void sendGHNTest(org.gcube.messaging.common.messages.Test test, org.gcube.common.core.scope.GCUBEScope scope)
           
 void sendMessage(org.gcube.common.core.monitoring.GCUBEMessage message)
           
 void sendMessageWithTest(org.gcube.messaging.common.messages.Test test)
          Send a Test using the JMS Client
 void sendMessageWithTest(org.gcube.messaging.common.messages.Test test, org.gcube.common.core.scope.GCUBEScope scope)
          Send a Test using the JMS Client
 
Methods inherited from class org.gcube.common.core.monitoring.GCUBENotificationProbe
execute
 
Methods inherited from class org.gcube.common.core.monitoring.GCUBETestProbe
getDescription, getInterval, setDescription, setInterval
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHNNotificationProbe

public GHNNotificationProbe()
Method Detail

run

public void run()
         throws Exception
Specified by:
run in interface org.gcube.common.core.utils.handlers.GCUBEIHandler<org.gcube.common.core.monitoring.GCUBETestProbe>
Specified by:
run in class org.gcube.common.core.utils.handlers.GCUBEHandler<org.gcube.common.core.monitoring.GCUBETestProbe>
Throws:
Exception

sendMessage

public void sendMessage(org.gcube.common.core.monitoring.GCUBEMessage message)

sendGHNTest

public static void sendGHNTest(org.gcube.messaging.common.messages.Test test)

sendGHNTest

public static void sendGHNTest(org.gcube.messaging.common.messages.Test test,
                               org.gcube.common.core.scope.GCUBEScope scope)

createGHNMessage

public static org.gcube.messaging.common.messages.GHNMessage createGHNMessage(org.gcube.common.core.scope.GCUBEScope scope)

sendMessageWithTest

public void sendMessageWithTest(org.gcube.messaging.common.messages.Test test)
Send a Test using the JMS Client


sendMessageWithTest

public void sendMessageWithTest(org.gcube.messaging.common.messages.Test test,
                                org.gcube.common.core.scope.GCUBEScope scope)
Send a Test using the JMS Client



Copyright © 2013. All Rights Reserved.