org.gcube.messaging.common.producer
Class GCUBELocalProducer

java.lang.Object
  extended by LocalMonitor
      extended by org.gcube.messaging.common.producer.GCUBELocalProducer

public class GCUBELocalProducer
extends LocalMonitor

Implementation of a Local Monitor

Author:
Andrea Manzi(CERN)

Field Summary
static GCUBEClientLog logger
           
 
Constructor Summary
GCUBELocalProducer()
           
 
Method Summary
static void addScope(GCUBEScope scope)
          Add the Scope to the monitoredMap
static boolean checkStartScope(GCUBEScope scope)
          Check if the given scope belongs to start scopes
static java.util.Set<GCUBEScope> getMonitoredScope()
          retrun the Monitored scope
static java.util.ArrayList<QueueConnection> getQueueConnection(GCUBEScope scope)
          Get the QueueConnection list for the given scope
static java.util.ArrayList<TopicConnection> getTopicConnection(GCUBEScope scope)
          Get the TopicConnection list for the given scope
 void loadProbes(java.util.Map<java.lang.String,java.lang.Class<? extends GCUBETestProbe>> map)
          
static void main(java.lang.String[] args)
          Main
static void reloadConnection(GCUBEScope scope)
          Reload the scope connection
static void removeScope(GCUBEScope scope)
          Remove Scope from BrokerMap
 void run()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static GCUBEClientLog logger
Constructor Detail

GCUBELocalProducer

public GCUBELocalProducer()
Method Detail

loadProbes

public void loadProbes(java.util.Map<java.lang.String,java.lang.Class<? extends GCUBETestProbe>> map)


getTopicConnection

public static java.util.ArrayList<TopicConnection> getTopicConnection(GCUBEScope scope)
Get the TopicConnection list for the given scope

Returns:
the topic Connection list for the given scope

getQueueConnection

public static java.util.ArrayList<QueueConnection> getQueueConnection(GCUBEScope scope)
Get the QueueConnection list for the given scope

Returns:
the queue Connection list for the given scope

addScope

public static void addScope(GCUBEScope scope)
                     throws BrokerNotConfiguredInScopeException,
                            GCUBEScopeNotSupportedException
Add the Scope to the monitoredMap

Throws:
GCUBEScopeNotSupportedException
BrokerNotConfiguredInScopeException

getMonitoredScope

public static java.util.Set<GCUBEScope> getMonitoredScope()
retrun the Monitored scope

Returns:
The Set of Scope to monitor

removeScope

public static void removeScope(GCUBEScope scope)
Remove Scope from BrokerMap

Parameters:
scope - the scope to remove

reloadConnection

public static void reloadConnection(GCUBEScope scope)
Reload the scope connection

Parameters:
scope - the scope to reload

run

public void run()


checkStartScope

public static boolean checkStartScope(GCUBEScope scope)
Check if the given scope belongs to start scopes

Parameters:
scope - the scope to check
Returns:
true/false

main

public static void main(java.lang.String[] args)
Main

Parameters:
args -