org.gcube.accounting.messaging
Class ConnectionsManager

java.lang.Object
  extended by org.gcube.accounting.messaging.ConnectionsManager

public class ConnectionsManager
extends Object

Author:
Andrea Manzi(CERN), Ermanno Travaglino (E-IIS)

Constructor Summary
ConnectionsManager()
           
 
Method Summary
static void addScope(String scope)
          Add the Scope to the monitoredMap
static org.gcube.common.messaging.endpoints.ScheduledRetriever getBrokerRetriever(String scope)
           
static javax.jms.QueueConnection getQueueConnection(String scope)
          Get the QueueConnection list for the given scope
 void init(long waitingTime, long refreshTime)
           
static void reloadConnection(String scope)
          Reload the scope connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionsManager

public ConnectionsManager()
Method Detail

init

public void init(long waitingTime,
                 long refreshTime)

getQueueConnection

public static javax.jms.QueueConnection getQueueConnection(String scope)
Get the QueueConnection list for the given scope

Returns:
the queue Connection list for the given scope

addScope

public static void addScope(String scope)
                     throws org.gcube.common.messaging.endpoints.BrokerNotConfiguredInScopeException,
                            Exception
Add the Scope to the monitoredMap

Throws:
org.gcube.common.messaging.endpoints.BrokerNotConfiguredInScopeException
Exception

getBrokerRetriever

public static org.gcube.common.messaging.endpoints.ScheduledRetriever getBrokerRetriever(String scope)
                                                                                  throws org.gcube.common.messaging.endpoints.BrokerNotConfiguredInScopeException,
                                                                                         Exception
Returns:
Throws:
Exception
org.gcube.common.messaging.endpoints.BrokerNotConfiguredInScopeException

reloadConnection

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

Parameters:
scope - the scope to reload


Copyright © 2014. All Rights Reserved.