public class JMSServerControlImpl extends org.apache.activemq.artemis.core.management.impl.AbstractControl implements JMSServerControl, NotificationEmitter, org.apache.activemq.artemis.core.server.management.NotificationListener
| Constructor and Description |
|---|
JMSServerControlImpl(JMSServerManager server) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
boolean |
closeConnectionsForAddress(String ipAddress) |
boolean |
closeConnectionsForUser(String userName) |
String |
closeConnectionWithClientID(String clientID) |
boolean |
closeConsumerConnectionsForAddress(String address) |
void |
createConnectionFactory(String name,
boolean ha,
boolean useDiscovery,
int cfType,
String[] connectorNames,
Object[] bindings)
See the interface definition for the javadoc.
|
void |
createConnectionFactory(String name,
boolean ha,
boolean useDiscovery,
int cfType,
String[] connectorNames,
String[] bindings,
String clientID,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
long callFailoverTimeout,
int minLargeMessageSize,
boolean compressLargeMessages,
int consumerWindowSize,
int consumerMaxRate,
int confirmationWindowSize,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnDurableSend,
boolean blockOnNonDurableSend,
boolean autoGroup,
boolean preAcknowledge,
String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
boolean failoverOnInitialConnection,
String groupId) |
void |
createConnectionFactory(String name,
boolean ha,
boolean useDiscovery,
int cfType,
String connectors,
String bindings)
Create a JMS ConnectionFactory with the specified name connected to a single live-backup pair of servers.
|
void |
createConnectionFactory(String name,
boolean ha,
boolean useDiscovery,
int cfType,
String connectors,
String bindings,
String clientID,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
long callFailoverTimeout,
int minLargeMessageSize,
boolean compressLargeMessages,
int consumerWindowSize,
int consumerMaxRate,
int confirmationWindowSize,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnDurableSend,
boolean blockOnNonDurableSend,
boolean autoGroup,
boolean preAcknowledge,
String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
boolean failoverOnInitialConnection,
String groupId) |
boolean |
createQueue(String name) |
boolean |
createQueue(String name,
String bindings) |
boolean |
createQueue(String name,
String bindings,
String selector) |
boolean |
createQueue(String name,
String bindings,
String selector,
boolean durable) |
boolean |
createTopic(String name) |
boolean |
createTopic(String topicName,
String bindings) |
void |
destroyConnectionFactory(String name) |
boolean |
destroyQueue(String name) |
boolean |
destroyQueue(String name,
boolean removeConsumers) |
boolean |
destroyTopic(String name) |
boolean |
destroyTopic(String name,
boolean removeConsumers) |
protected MBeanOperationInfo[] |
fillMBeanOperationInfo() |
String[] |
getConnectionFactoryNames() |
String |
getLastSentMessageID(String sessionID,
String address) |
MBeanNotificationInfo[] |
getNotificationInfo() |
static MBeanNotificationInfo[] |
getNotificationInfos() |
String[] |
getQueueNames() |
String |
getSessionCreationTime(String sessionID) |
String[] |
getTopicNames() |
String |
getVersion() |
boolean |
isStarted() |
String |
listAllConsumersAsJSON() |
String[] |
listConnectionIDs() |
String |
listConnectionsAsJSON() |
String |
listConsumersAsJSON(String connectionID) |
String |
listPreparedTransactionDetailsAsHTML() |
String |
listPreparedTransactionDetailsAsJSON() |
String[] |
listRemoteAddresses() |
String[] |
listRemoteAddresses(String ipAddress) |
String[] |
listSessions(String connectionID) |
String |
listSessionsAsJSON(String connectionID) |
String[] |
listTargetDestinations(String sessionID) |
void |
onNotification(org.apache.activemq.artemis.core.server.management.Notification notification) |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
blockOnIO, clearIO, getMBeanInfocacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic JMSServerControlImpl(JMSServerManager server) throws Exception
Exceptionpublic static MBeanNotificationInfo[] getNotificationInfos()
public void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectorNames, Object[] bindings) throws Exception
createConnectionFactory in interface JMSServerControlExceptionpublic void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String bindings, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, int minLargeMessageSize, boolean compressLargeMessages, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId) throws Exception
createConnectionFactory in interface JMSServerControlExceptionpublic void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectorNames, String[] bindings, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, int minLargeMessageSize, boolean compressLargeMessages, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId) throws Exception
createConnectionFactory in interface JMSServerControlExceptionpublic void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String bindings) throws Exception
createConnectionFactory in interface JMSServerControlExceptionpublic boolean createQueue(String name) throws Exception
createQueue in interface JMSServerControlExceptionpublic boolean createQueue(String name, String bindings) throws Exception
createQueue in interface JMSServerControlExceptionpublic boolean createQueue(String name, String bindings, String selector) throws Exception
createQueue in interface JMSServerControlExceptionpublic boolean createQueue(String name, String bindings, String selector, boolean durable) throws Exception
createQueue in interface JMSServerControlExceptionpublic boolean destroyQueue(String name) throws Exception
destroyQueue in interface JMSServerControlExceptionpublic boolean destroyQueue(String name, boolean removeConsumers) throws Exception
destroyQueue in interface JMSServerControlExceptionpublic boolean createTopic(String name) throws Exception
createTopic in interface JMSServerControlExceptionpublic boolean createTopic(String topicName, String bindings) throws Exception
createTopic in interface JMSServerControlExceptionpublic boolean destroyTopic(String name) throws Exception
destroyTopic in interface JMSServerControlExceptionpublic boolean destroyTopic(String name, boolean removeConsumers) throws Exception
destroyTopic in interface JMSServerControlExceptionpublic void destroyConnectionFactory(String name) throws Exception
destroyConnectionFactory in interface JMSServerControlExceptionpublic boolean isStarted()
isStarted in interface JMSServerControlpublic String getVersion()
getVersion in interface JMSServerControlpublic String[] getQueueNames()
getQueueNames in interface JMSServerControlpublic String[] getTopicNames()
getTopicNames in interface JMSServerControlpublic String[] getConnectionFactoryNames()
getConnectionFactoryNames in interface JMSServerControlpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundExceptionpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterIllegalArgumentExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic String[] listRemoteAddresses() throws Exception
listRemoteAddresses in interface JMSServerControlExceptionpublic String[] listRemoteAddresses(String ipAddress) throws Exception
listRemoteAddresses in interface JMSServerControlExceptionpublic boolean closeConnectionsForAddress(String ipAddress) throws Exception
closeConnectionsForAddress in interface JMSServerControlExceptionpublic boolean closeConsumerConnectionsForAddress(String address) throws Exception
closeConsumerConnectionsForAddress in interface JMSServerControlExceptionpublic boolean closeConnectionsForUser(String userName) throws Exception
closeConnectionsForUser in interface JMSServerControlExceptionpublic String[] listConnectionIDs() throws Exception
listConnectionIDs in interface JMSServerControlExceptionpublic String listConnectionsAsJSON() throws Exception
listConnectionsAsJSON in interface JMSServerControlExceptionpublic String listConsumersAsJSON(String connectionID) throws Exception
listConsumersAsJSON in interface JMSServerControlExceptionpublic String listAllConsumersAsJSON() throws Exception
listAllConsumersAsJSON in interface JMSServerControlExceptionpublic String[] listSessions(String connectionID) throws Exception
listSessions in interface JMSServerControlExceptionpublic String listPreparedTransactionDetailsAsJSON() throws Exception
listPreparedTransactionDetailsAsJSON in interface JMSServerControlExceptionpublic String listPreparedTransactionDetailsAsHTML() throws Exception
listPreparedTransactionDetailsAsHTML in interface JMSServerControlExceptionprotected MBeanOperationInfo[] fillMBeanOperationInfo()
fillMBeanOperationInfo in class org.apache.activemq.artemis.core.management.impl.AbstractControlpublic String[] listTargetDestinations(String sessionID) throws Exception
listTargetDestinations in interface JMSServerControlExceptionpublic String getLastSentMessageID(String sessionID, String address) throws Exception
getLastSentMessageID in interface JMSServerControlExceptionpublic String getSessionCreationTime(String sessionID) throws Exception
getSessionCreationTime in interface JMSServerControlExceptionpublic String listSessionsAsJSON(String connectionID) throws Exception
listSessionsAsJSON in interface JMSServerControlExceptionpublic String closeConnectionWithClientID(String clientID) throws Exception
closeConnectionWithClientID in interface JMSServerControlExceptionpublic void onNotification(org.apache.activemq.artemis.core.server.management.Notification notification)
onNotification in interface org.apache.activemq.artemis.core.server.management.NotificationListenerCopyright © 2016. All Rights Reserved.