public class JMSServerControlImpl extends AbstractControl implements JMSServerControl, NotificationEmitter, NotificationListener
storageManager
Constructor and Description |
---|
JMSServerControlImpl(JMSServerManager server) |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
boolean |
closeConnectionsForAddress(String ipAddress)
Closes all the connections of clients connected to this server which matches the specified IP address.
|
boolean |
closeConnectionsForUser(String userName)
Closes all the connections on this server for sessions using a particular user name.
|
String |
closeConnectionWithClientID(String clientID)
List all the prepared transaction, sorted by date,
oldest first, with details, in HTML format
|
boolean |
closeConsumerConnectionsForAddress(String address)
Closes all the connections on this server for consumers which are consuming from a queue associated with a particular 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)
Creates a durable JMS Queue.
|
boolean |
createQueue(String name,
String bindings)
Creates a durable JMS Queue with the specified name and JNDI binding.
|
boolean |
createQueue(String name,
String bindings,
String selector)
Creates a durable JMS Queue with the specified name, JNDI binding and selector.
|
boolean |
createQueue(String name,
String bindings,
String selector,
boolean durable)
Creates a JMS Queue with the specified name, durability, selector and JNDI binding.
|
boolean |
createTopic(String name)
Creates a JMS Topic.
|
boolean |
createTopic(String topicName,
String bindings)
Creates a JMS Topic with the specified name and JNDI binding.
|
void |
destroyConnectionFactory(String name) |
boolean |
destroyQueue(String name)
Destroys a JMS Queue with the specified name.
|
boolean |
destroyQueue(String name,
boolean removeConsumers)
Destroys a JMS Queue with the specified name.
|
boolean |
destroyTopic(String name)
Destroys a JMS Topic with the specified name.
|
boolean |
destroyTopic(String name,
boolean removeConsumers)
Destroys a JMS Topic with the specified name.
|
protected MBeanAttributeInfo[] |
fillMBeanAttributeInfo() |
protected MBeanOperationInfo[] |
fillMBeanOperationInfo() |
String[] |
getConnectionFactoryNames()
Returns the names of the JMS connection factories available on this server.
|
String |
getLastSentMessageID(String sessionID,
String address)
Returns the last sent message's ID from the given session to an address.
|
String |
getNodeID()
Returns the server's nodeId
|
MBeanNotificationInfo[] |
getNotificationInfo() |
static MBeanNotificationInfo[] |
getNotificationInfos() |
String[] |
getQueueNames()
Returns the names of the JMS queues available on this server.
|
String |
getSessionCreationTime(String sessionID)
Gets the session's creation time.
|
String[] |
getTopicNames()
Returns the names of the JMS topics available on this server.
|
String |
getVersion()
Returns this server's version
|
boolean |
isStarted()
Returns whether this server is started.
|
String |
listAllConsumersAsJSON()
Lists all the consumers
The returned String is a JSON string containing an array of JMSConsumerInfo objects.
|
String[] |
listConnectionIDs()
Lists all the IDs of the connections connected to this server.
|
String |
listConnectionsAsJSON()
Lists all the connections connected to this server.
|
String |
listConsumersAsJSON(String connectionID)
Lists all the consumers which belongs to the JMS Connection specified by the connectionID.
|
String |
listNetworkTopology() |
String |
listPreparedTransactionDetailsAsHTML()
List all the prepared transaction, sorted by date,
oldest first, with details, in HTML format
|
String |
listPreparedTransactionDetailsAsJSON()
List all the prepared transaction, sorted by date,
oldest first, with details, in text format
|
String[] |
listRemoteAddresses()
Lists the addresses of all the clients connected to this address.
|
String[] |
listRemoteAddresses(String ipAddress)
Lists the addresses of the clients connected to this address which matches the specified IP address.
|
String[] |
listSessions(String connectionID)
Lists all the sessions IDs for the specified connection ID.
|
String |
listSessionsAsJSON(String connectionID)
Lists all the sessions IDs for the specified connection ID.
|
String[] |
listTargetDestinations(String sessionID)
Lists all addresses to which the designated server session has sent messages.
|
void |
onNotification(Notification notification) |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
blockOnIO, clearIO, getMBeanInfo
cacheMBeanInfo, 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, setImplementation
public JMSServerControlImpl(JMSServerManager server) throws Exception
Exception
public static MBeanNotificationInfo[] getNotificationInfos()
public void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectorNames, Object[] bindings) throws Exception
createConnectionFactory
in interface JMSServerControl
Exception
public 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 JMSServerControl
Exception
public 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 JMSServerControl
Exception
public void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String bindings) throws Exception
createConnectionFactory
in interface JMSServerControl
Exception
public boolean createQueue(String name) throws Exception
JMSServerControl
createQueue
in interface JMSServerControl
true
if the queue was created, false
elseException
public boolean createQueue(String name, String bindings) throws Exception
JMSServerControl
createQueue
in interface JMSServerControl
true
if the queue was created, false
elseException
public boolean createQueue(String name, String bindings, String selector) throws Exception
JMSServerControl
createQueue
in interface JMSServerControl
true
if the queue was created, false
elseException
public boolean createQueue(String name, String bindings, String selector, boolean durable) throws Exception
JMSServerControl
createQueue
in interface JMSServerControl
true
if the queue was created, false
elseException
public boolean destroyQueue(String name) throws Exception
JMSServerControl
destroyQueue
in interface JMSServerControl
true
if the queue was destroyed, false
elseException
public boolean destroyQueue(String name, boolean removeConsumers) throws Exception
JMSServerControl
destroyQueue
in interface JMSServerControl
true
if the queue was destroyed, false
elseException
public boolean createTopic(String name) throws Exception
JMSServerControl
createTopic
in interface JMSServerControl
true
if the topic was created, false
elseException
public boolean createTopic(String topicName, String bindings) throws Exception
JMSServerControl
createTopic
in interface JMSServerControl
true
if the topic was created, false
elseException
public boolean destroyTopic(String name) throws Exception
JMSServerControl
destroyTopic
in interface JMSServerControl
true
if the topic was destroyed, false
elseException
public boolean destroyTopic(String name, boolean removeConsumers) throws Exception
JMSServerControl
destroyTopic
in interface JMSServerControl
true
if the topic was destroyed, false
elseException
public void destroyConnectionFactory(String name) throws Exception
destroyConnectionFactory
in interface JMSServerControl
Exception
public boolean isStarted()
JMSServerControl
isStarted
in interface JMSServerControl
public String getVersion()
JMSServerControl
getVersion
in interface JMSServerControl
public String[] getQueueNames()
JMSServerControl
getQueueNames
in interface JMSServerControl
public String[] getTopicNames()
JMSServerControl
getTopicNames
in interface JMSServerControl
public String[] getConnectionFactoryNames()
JMSServerControl
getConnectionFactoryNames
in interface JMSServerControl
public String getNodeID()
JMSServerControl
getNodeID
in interface JMSServerControl
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
IllegalArgumentException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public String[] listRemoteAddresses() throws Exception
JMSServerControl
listRemoteAddresses
in interface JMSServerControl
Exception
public String[] listRemoteAddresses(String ipAddress) throws Exception
JMSServerControl
listRemoteAddresses
in interface JMSServerControl
Exception
public boolean closeConnectionsForAddress(String ipAddress) throws Exception
JMSServerControl
closeConnectionsForAddress
in interface JMSServerControl
Exception
public boolean closeConsumerConnectionsForAddress(String address) throws Exception
JMSServerControl
closeConsumerConnectionsForAddress
in interface JMSServerControl
Exception
public boolean closeConnectionsForUser(String userName) throws Exception
JMSServerControl
closeConnectionsForUser
in interface JMSServerControl
Exception
public String[] listConnectionIDs() throws Exception
JMSServerControl
listConnectionIDs
in interface JMSServerControl
Exception
public String listConnectionsAsJSON() throws Exception
JMSServerControl
listConnectionsAsJSON
in interface JMSServerControl
Exception
JMSConnectionInfo.from(String)
public String listConsumersAsJSON(String connectionID) throws Exception
JMSServerControl
listConsumersAsJSON
in interface JMSServerControl
Exception
JMSConsumerInfo.from(String)
public String listAllConsumersAsJSON() throws Exception
JMSServerControl
listAllConsumersAsJSON
in interface JMSServerControl
Exception
JMSConsumerInfo.from(String)
public String[] listSessions(String connectionID) throws Exception
JMSServerControl
listSessions
in interface JMSServerControl
Exception
public String listPreparedTransactionDetailsAsJSON() throws Exception
JMSServerControl
listPreparedTransactionDetailsAsJSON
in interface JMSServerControl
Exception
public String listPreparedTransactionDetailsAsHTML() throws Exception
JMSServerControl
listPreparedTransactionDetailsAsHTML
in interface JMSServerControl
Exception
protected MBeanOperationInfo[] fillMBeanOperationInfo()
fillMBeanOperationInfo
in class AbstractControl
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
fillMBeanAttributeInfo
in class AbstractControl
public String[] listTargetDestinations(String sessionID) throws Exception
JMSServerControl
listTargetDestinations
in interface JMSServerControl
Exception
public String getLastSentMessageID(String sessionID, String address) throws Exception
JMSServerControl
getLastSentMessageID
in interface JMSServerControl
Exception
public String getSessionCreationTime(String sessionID) throws Exception
JMSServerControl
getSessionCreationTime
in interface JMSServerControl
Exception
public String listSessionsAsJSON(String connectionID) throws Exception
JMSServerControl
listSessionsAsJSON
in interface JMSServerControl
Exception
public String listNetworkTopology() throws Exception
listNetworkTopology
in interface JMSServerControl
Exception
public String closeConnectionWithClientID(String clientID) throws Exception
JMSServerControl
closeConnectionWithClientID
in interface JMSServerControl
Exception
public void onNotification(Notification notification)
onNotification
in interface NotificationListener
Copyright © 2017 JBoss by Red Hat. All rights reserved.