public interface JMSServerControl
Modifier and Type | Method and Description |
---|---|
boolean |
closeConnectionsForAddress(String ipAddress)
Closes all the connections of clients connected to this server which matches the specified IP address.
|
boolean |
closeConnectionsForUser(String address)
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)
Create a JMS ConnectionFactory with the specified name connected to a static list of live-backup servers.
|
void |
createConnectionFactory(String name,
boolean ha,
boolean useDiscovery,
int cfType,
String[] connectors,
String[] jndiBindings,
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 jndiBindings)
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 jndiBindings,
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 jndiBindings)
Creates a durable JMS Queue with the specified name and JNDI binding.
|
boolean |
createQueue(String name,
String jndiBindings,
String selector)
Creates a durable JMS Queue with the specified name, JNDI binding and selector.
|
boolean |
createQueue(String name,
String jndiBindings,
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 name,
String jndiBindings)
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.
|
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[] |
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 |
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.
|
boolean isStarted()
String getVersion()
String[] getTopicNames()
String[] getQueueNames()
String[] getConnectionFactoryNames()
boolean createQueue(String name) throws Exception
true
if the queue was created, false
elseException
boolean createQueue(String name, String jndiBindings) throws Exception
true
if the queue was created, false
elseException
boolean createQueue(String name, String jndiBindings, String selector) throws Exception
true
if the queue was created, false
elseException
boolean createQueue(String name, String jndiBindings, String selector, boolean durable) throws Exception
true
if the queue was created, false
elseException
boolean destroyQueue(String name) throws Exception
true
if the queue was destroyed, false
elseException
boolean destroyQueue(String name, boolean removeConsumers) throws Exception
true
if the queue was destroyed, false
elseException
boolean createTopic(String name) throws Exception
true
if the topic was created, false
elseException
boolean createTopic(String name, String jndiBindings) throws Exception
true
if the topic was created, false
elseException
boolean destroyTopic(String name, boolean removeConsumers) throws Exception
true
if the topic was destroyed, false
elseException
boolean destroyTopic(String name) throws Exception
true
if the topic was destroyed, false
elseException
void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectorNames, Object[] bindings) throws Exception
liveConnectorsTransportClassNames
are the class names
of the ConnectorFactory
to connect to the live servers
and liveConnectorTransportParams
are Map<String, Object> for the corresponding TransportConfiguration
's parameters.Exception
void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String jndiBindings) throws Exception
Exception
void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectors, String[] jndiBindings, 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
Exception
void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String jndiBindings, 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
Exception
void destroyConnectionFactory(String name) throws Exception
Exception
String[] listRemoteAddresses() throws Exception
Exception
String[] listRemoteAddresses(String ipAddress) throws Exception
Exception
boolean closeConnectionsForAddress(String ipAddress) throws Exception
Exception
boolean closeConsumerConnectionsForAddress(String address) throws Exception
Exception
boolean closeConnectionsForUser(String address) throws Exception
Exception
String[] listConnectionIDs() throws Exception
Exception
String listConnectionsAsJSON() throws Exception
Exception
JMSConnectionInfo.from(String)
String[] listSessions(String connectionID) throws Exception
Exception
String listConsumersAsJSON(String connectionID) throws Exception
Exception
JMSConsumerInfo.from(String)
String listAllConsumersAsJSON() throws Exception
Exception
JMSConsumerInfo.from(String)
String[] listTargetDestinations(String sessionID) throws Exception
Exception
String getLastSentMessageID(String sessionID, String address) throws Exception
Exception
String getSessionCreationTime(String sessionID) throws Exception
Exception
String listSessionsAsJSON(String connectionID) throws Exception
Exception
String listPreparedTransactionDetailsAsJSON() throws Exception
Exception
String listPreparedTransactionDetailsAsHTML() throws Exception
Exception
Copyright © 2016 JBoss by Red Hat. All rights reserved.