public class DistributedQueueManager extends Object implements QueueManagerListener, DistributedQueueStateListener, DistributedQueueManagerMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedQueueManager.Event |
| Modifier and Type | Field and Description |
|---|---|
protected DistributedQueueConfiguration |
configuration |
protected DistributedQueueState |
dqs |
protected DelayQueue<DistributedQueueEvent> |
events |
protected ScheduledThreadPoolExecutor |
monitorExecutorService |
protected QueueManager |
queueManager |
protected ConcurrentHashMap<String,LocalToRemoteQueueProcessor> |
queueProcessors |
protected ConcurrentHashMap<String,RemoteBrokerMonitor> |
remoteBrokerMonitors |
protected ExecutorService |
remotingExecutorService |
protected RemoteQueueTransferScheduler |
remotingScheduler |
protected AtomicBoolean |
started |
| Constructor and Description |
|---|
DistributedQueueManager(DistributedQueueConfiguration configuration,
QueueManager queueManager) |
protected final AtomicBoolean started
protected final DistributedQueueConfiguration configuration
protected final QueueManager queueManager
protected final DistributedQueueState dqs
protected final DelayQueue<DistributedQueueEvent> events
protected ExecutorService remotingExecutorService
protected RemoteQueueTransferScheduler remotingScheduler
protected ScheduledThreadPoolExecutor monitorExecutorService
protected final ConcurrentHashMap<String,RemoteBrokerMonitor> remoteBrokerMonitors
protected final ConcurrentHashMap<String,LocalToRemoteQueueProcessor> queueProcessors
public DistributedQueueManager(DistributedQueueConfiguration configuration, QueueManager queueManager)
protected void registerMBean()
public DistributedQueueConfiguration getConfiguration()
public QueueManager getQueueManager()
public DistributedQueueState getDistributedQueueState()
public DelayQueue getEventQueue()
public ConcurrentHashMap<String,RemoteBrokerMonitor> getRemoteBrokerMonitors()
public ConcurrentHashMap<String,LocalToRemoteQueueProcessor> getQueueProcessors()
public Integer getAreaId()
getAreaId in interface DistributedQueueManagerMBeanpublic String getGroupName()
getGroupName in interface DistributedQueueManagerMBeanpublic String[] getRemoteBrokerMonitorNames()
getRemoteBrokerMonitorNames in interface DistributedQueueManagerMBeanpublic int getEventQueueSize()
getEventQueueSize in interface DistributedQueueManagerMBeanpublic int getLocalToRemoteQueueProcessorSize()
getLocalToRemoteQueueProcessorSize in interface DistributedQueueManagerMBeanpublic String[] getLocalToRemoteQueueProcessorNames()
getLocalToRemoteQueueProcessorNames in interface DistributedQueueManagerMBeanpublic boolean isStarted()
isStarted in interface DistributedQueueManagerMBeanpublic boolean isStopped()
isStopped in interface DistributedQueueManagerMBeanpublic boolean isEventProcessorAlive()
isEventProcessorAlive in interface DistributedQueueManagerMBeanpublic boolean isMonitorThreadPoolAlive()
isMonitorThreadPoolAlive in interface DistributedQueueManagerMBeanpublic boolean isTransferThreadPoolAlive()
isTransferThreadPoolAlive in interface DistributedQueueManagerMBeanpublic int getMonitorThreadsSize()
getMonitorThreadsSize in interface DistributedQueueManagerMBeanpublic int getTransferThreadsSize()
getTransferThreadsSize in interface DistributedQueueManagerMBeanpublic long getRemotingTakeTimeouts()
getRemotingTakeTimeouts in interface DistributedQueueManagerMBeanpublic long incrementRemotingTakeTimeouts()
public long getRemotingTakeNulls()
getRemotingTakeNulls in interface DistributedQueueManagerMBeanpublic long incrementRemotingTakeNulls()
public void start()
start in interface DistributedQueueManagerMBeanpublic void stop()
stop in interface DistributedQueueManagerMBeanpublic void notifyQueueCreated(Queue queue)
notifyQueueCreated in interface QueueManagerListenerpublic void notifyQueueDestroyed(Queue queue)
notifyQueueDestroyed in interface QueueManagerListenerpublic void notifyAtLeastOneQueueConsumerStarted(Queue queue)
notifyAtLeastOneQueueConsumerStarted in interface QueueManagerListenerpublic void notifyAllQueueConsumersStopped(Queue queue)
notifyAllQueueConsumersStopped in interface QueueManagerListenerpublic void notifyRemoteBrokerAdded(RemoteBrokerInfo bi)
DistributedQueueStateListenernotifyRemoteBrokerAdded in interface DistributedQueueStateListenerbi - The RemoteBroker that was addedpublic void notifyRemoteBrokerRemoved(RemoteBrokerInfo bi)
DistributedQueueStateListenernotifyRemoteBrokerRemoved in interface DistributedQueueStateListenerbi - The RemoteBroker that was removedpublic void notifyRemoteBrokerStateChanged(RemoteBrokerInfo bi, int state)
DistributedQueueStateListenernotifyRemoteBrokerStateChanged in interface DistributedQueueStateListenerbi - The RemoteBroker whose state changedpublic void notifyRemoteQueueAdded(RemoteQueueInfo qi)
DistributedQueueStateListenernotifyRemoteQueueAdded in interface DistributedQueueStateListenerqi - The RemoteQueue that was addedpublic void notifyRemoteQueueRemoved(RemoteQueueInfo qi)
DistributedQueueStateListenernotifyRemoteQueueRemoved in interface DistributedQueueStateListenerqi - The RemoteQueue that was removedpublic void notifyRemoteQueueStateChanged(RemoteQueueInfo qi, int state)
DistributedQueueStateListenernotifyRemoteQueueStateChanged in interface DistributedQueueStateListenerqi - The RemoteQueue whose state changedpublic void notifyRemoteQueueAttributesChanged(RemoteQueueInfo qi)
DistributedQueueStateListenernotifyRemoteQueueAttributesChanged in interface DistributedQueueStateListenerqi - The RemoteQueue whose attributes changedCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.