public class BrokerView extends Object implements BrokerViewMBean
| Constructor and Description |
|---|
BrokerView(BrokerService brokerService,
ManagedRegionBroker managedBroker) |
public BrokerView(BrokerService brokerService, ManagedRegionBroker managedBroker) throws Exception
Exceptionpublic ManagedRegionBroker getBroker()
public void setBroker(ManagedRegionBroker broker)
public String getBrokerId()
getBrokerId in interface BrokerViewMBeanpublic String getBrokerName()
getBrokerName in interface BrokerViewMBeanpublic String getBrokerVersion()
getBrokerVersion in interface BrokerViewMBeanpublic String getUptime()
getUptime in interface BrokerViewMBeanpublic long getUptimeMillis()
getUptimeMillis in interface BrokerViewMBeanpublic int getCurrentConnectionsCount()
getCurrentConnectionsCount in interface BrokerViewMBeanpublic long getTotalConnectionsCount()
getTotalConnectionsCount in interface BrokerViewMBeanpublic void gc() throws Exception
BrokerViewMBeangc in interface BrokerViewMBeanExceptionpublic void stop() throws Exception
BrokerViewMBeanstop in interface BrokerViewMBeanstop in interface ServiceExceptionpublic void restart() throws Exception
BrokerViewMBeanrestart in interface BrokerViewMBeanExceptionpublic void stopGracefully(String connectorName, String queueName, long timeout, long pollInterval) throws Exception
stopGracefully in interface BrokerViewMBeanExceptionpublic long getTotalEnqueueCount()
getTotalEnqueueCount in interface BrokerViewMBeanpublic long getTotalDequeueCount()
getTotalDequeueCount in interface BrokerViewMBeanpublic long getTotalConsumerCount()
getTotalConsumerCount in interface BrokerViewMBeanpublic long getTotalProducerCount()
getTotalProducerCount in interface BrokerViewMBeanpublic long getTotalMessageCount()
getTotalMessageCount in interface BrokerViewMBeanpublic long getAverageMessageSize()
getAverageMessageSize in interface BrokerViewMBeanpublic long getMaxMessageSize()
getMaxMessageSize in interface BrokerViewMBeanpublic long getMinMessageSize()
getMinMessageSize in interface BrokerViewMBeanpublic long getTotalMessagesCached()
public int getMemoryPercentUsage()
getMemoryPercentUsage in interface BrokerViewMBeanpublic long getMemoryLimit()
getMemoryLimit in interface BrokerViewMBeanpublic void setMemoryLimit(long limit)
setMemoryLimit in interface BrokerViewMBeanpublic long getStoreLimit()
getStoreLimit in interface BrokerViewMBeanpublic int getStorePercentUsage()
getStorePercentUsage in interface BrokerViewMBeanpublic long getTempLimit()
getTempLimit in interface BrokerViewMBeanpublic int getTempPercentUsage()
getTempPercentUsage in interface BrokerViewMBeanpublic long getJobSchedulerStoreLimit()
getJobSchedulerStoreLimit in interface BrokerViewMBeanpublic int getJobSchedulerStorePercentUsage()
getJobSchedulerStorePercentUsage in interface BrokerViewMBeanpublic void setStoreLimit(long limit)
setStoreLimit in interface BrokerViewMBeanpublic void setTempLimit(long limit)
setTempLimit in interface BrokerViewMBeanpublic void setJobSchedulerStoreLimit(long limit)
setJobSchedulerStoreLimit in interface BrokerViewMBeanpublic void resetStatistics()
resetStatistics in interface BrokerViewMBeanpublic void enableStatistics()
enableStatistics in interface BrokerViewMBeanpublic void disableStatistics()
disableStatistics in interface BrokerViewMBeanpublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface BrokerViewMBeanpublic boolean isPersistent()
isPersistent in interface BrokerViewMBeanpublic void terminateJVM(int exitCode)
BrokerViewMBeanterminateJVM in interface BrokerViewMBeanexitCode - the exit code that will be reported by the JVM process
when it exits.public ObjectName[] getTopics()
getTopics in interface BrokerViewMBeanpublic ObjectName[] getQueues()
getQueues in interface BrokerViewMBeanpublic ObjectName[] getTemporaryTopics()
getTemporaryTopics in interface BrokerViewMBeanpublic ObjectName[] getTemporaryQueues()
getTemporaryQueues in interface BrokerViewMBeanpublic ObjectName[] getTopicSubscribers()
getTopicSubscribers in interface BrokerViewMBeanpublic ObjectName[] getDurableTopicSubscribers()
getDurableTopicSubscribers in interface BrokerViewMBeanpublic ObjectName[] getQueueSubscribers()
getQueueSubscribers in interface BrokerViewMBeanpublic ObjectName[] getTemporaryTopicSubscribers()
getTemporaryTopicSubscribers in interface BrokerViewMBeanpublic ObjectName[] getTemporaryQueueSubscribers()
getTemporaryQueueSubscribers in interface BrokerViewMBeanpublic ObjectName[] getInactiveDurableTopicSubscribers()
getInactiveDurableTopicSubscribers in interface BrokerViewMBeanpublic ObjectName[] getTopicProducers()
getTopicProducers in interface BrokerViewMBeanpublic ObjectName[] getQueueProducers()
getQueueProducers in interface BrokerViewMBeanpublic ObjectName[] getTemporaryTopicProducers()
getTemporaryTopicProducers in interface BrokerViewMBeanpublic ObjectName[] getTemporaryQueueProducers()
getTemporaryQueueProducers in interface BrokerViewMBeanpublic ObjectName[] getDynamicDestinationProducers()
getDynamicDestinationProducers in interface BrokerViewMBeanpublic String addConnector(String discoveryAddress) throws Exception
addConnector in interface BrokerViewMBeanExceptionpublic String addNetworkConnector(String discoveryAddress) throws Exception
addNetworkConnector in interface BrokerViewMBeanExceptionpublic boolean removeConnector(String connectorName) throws Exception
removeConnector in interface BrokerViewMBeanExceptionpublic boolean removeNetworkConnector(String connectorName) throws Exception
removeNetworkConnector in interface BrokerViewMBeanExceptionpublic void addTopic(String name) throws Exception
BrokerViewMBeanaddTopic in interface BrokerViewMBeanname - The name of the TopicExceptionpublic void addQueue(String name) throws Exception
BrokerViewMBeanaddQueue in interface BrokerViewMBeanname - The name of the QueueExceptionpublic void removeTopic(String name) throws Exception
BrokerViewMBeanremoveTopic in interface BrokerViewMBeanname - The name of the TopicExceptionpublic void removeQueue(String name) throws Exception
BrokerViewMBeanremoveQueue in interface BrokerViewMBeanname - The name of the QueueExceptionpublic ObjectName createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) throws Exception
BrokerViewMBeancreateDurableSubscriber in interface BrokerViewMBeanclientId - the JMS client IDsubscriberName - the durable subscriber nametopicName - the name of the topic to subscribe toselector - a selector or nullExceptionpublic void destroyDurableSubscriber(String clientId, String subscriberName) throws Exception
BrokerViewMBeandestroyDurableSubscriber in interface BrokerViewMBeanclientId - the JMS client IDsubscriberName - the durable subscriber nameExceptionpublic void reloadLog4jProperties() throws Throwable
BrokerViewMBeanreloadLog4jProperties in interface BrokerViewMBeanThrowablepublic Map<String,String> getTransportConnectors()
getTransportConnectors in interface BrokerViewMBeanpublic String getTransportConnectorByType(String type)
getTransportConnectorByType in interface BrokerViewMBeanpublic String getVMURL()
getVMURL in interface BrokerViewMBeanpublic String getDataDirectory()
getDataDirectory in interface BrokerViewMBeanpublic ObjectName getJMSJobScheduler()
getJMSJobScheduler in interface BrokerViewMBeanpublic void setJMSJobScheduler(ObjectName name)
public boolean isSlave()
isSlave in interface BrokerViewMBeanCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.