org.gcube.accounting.messaging
Class ConnectionsManager
java.lang.Object
org.gcube.accounting.messaging.ConnectionsManager
public class ConnectionsManager
- extends Object
- Author:
- Andrea Manzi(CERN), Ermanno Travaglino (E-IIS)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionsManager
public ConnectionsManager()
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.