public class DistributedQueueState extends Object
| Constructor and Description |
|---|
DistributedQueueState(DistributedQueueConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DistributedQueueStateListener listener) |
void |
addRemoteBroker(RemoteBrokerInfo bi) |
void |
clear()
Clears all internal structures containing state information about
remote brokers or remote queues.
|
RemoteBrokerInfo |
getRemoteBroker(String url) |
ConcurrentHashMap<String,RemoteBrokerInfo> |
getRemoteBrokers() |
RemoteQueueInfo |
getRemoteQueue(String queueName) |
ConcurrentHashMap<String,RemoteQueueInfo> |
getRemoteQueues() |
void |
removeListener(DistributedQueueStateListener listener) |
void |
removeRemoteBroker(String url) |
String |
toDebugString() |
void |
updateRemoteBrokerState(String url,
int state,
String errorMessage,
long monitorTime)
Updates the state of a RemoteBroker.
|
void |
updateRemoteQueueWeight(String queueName,
String url,
int weight) |
public DistributedQueueState(DistributedQueueConfiguration configuration)
public void clear()
public void addListener(DistributedQueueStateListener listener)
public void removeListener(DistributedQueueStateListener listener)
public RemoteBrokerInfo getRemoteBroker(String url)
public ConcurrentHashMap<String,RemoteBrokerInfo> getRemoteBrokers()
public void addRemoteBroker(RemoteBrokerInfo bi)
public void removeRemoteBroker(String url)
public RemoteQueueInfo getRemoteQueue(String queueName)
public ConcurrentHashMap<String,RemoteQueueInfo> getRemoteQueues()
public void updateRemoteBrokerState(String url, int state, String errorMessage, long monitorTime)
url - The url of the RemoteBrokerstate - The new state of the RemoteBrokererrorMessage - The new error message to save with the RemoteBrokermonitorTime - The timestamp of the monitoring event that triggered
this state change.public void updateRemoteQueueWeight(String queueName, String url, int weight)
public String toDebugString()
Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.