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.
|
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,
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,
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 |
destroyTopic(String name)
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 elseExceptionboolean createQueue(String name, String jndiBindings) throws Exception
true if the queue was created, false elseExceptionboolean createQueue(String name, String jndiBindings, String selector) throws Exception
true if the queue was created, false elseExceptionboolean createQueue(String name, String jndiBindings, String selector, boolean durable) throws Exception
true if the queue was created, false elseExceptionboolean destroyQueue(String name) throws Exception
true if the queue was destroyed, false elseExceptionboolean createTopic(String name) throws Exception
true if the topic was created, false elseExceptionboolean createTopic(String name, String jndiBindings) throws Exception
true if the topic was created, false elseExceptionboolean destroyTopic(String name) throws Exception
true if the topic was destroyed, false elseExceptionvoid 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.ExceptionClientSessionFactory#setStaticConnectors(java.util.List)void createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String jndiBindings) throws Exception
Exceptionvoid createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String[] connectors, String[] jndiBindings, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, 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
Exceptionvoid createConnectionFactory(String name, boolean ha, boolean useDiscovery, int cfType, String connectors, String jndiBindings, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, 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
Exceptionvoid destroyConnectionFactory(String name) throws Exception
ExceptionString[] listRemoteAddresses() throws Exception
ExceptionString[] listRemoteAddresses(String ipAddress) throws Exception
Exceptionboolean closeConnectionsForAddress(String ipAddress) throws Exception
ExceptionString[] listConnectionIDs() throws Exception
ExceptionString listConnectionsAsJSON() throws Exception
ExceptionJMSConnectionInfo.from(String)String[] listSessions(String connectionID) throws Exception
ExceptionString listConsumersAsJSON(String connectionID) throws Exception
ExceptionJMSConsumerInfo.from(String)String listAllConsumersAsJSON() throws Exception
ExceptionJMSConsumerInfo.from(String)String[] listTargetDestinations(String sessionID) throws Exception
ExceptionString getLastSentMessageID(String sessionID, String address) throws Exception
ExceptionString getSessionCreationTime(String sessionID) throws Exception
ExceptionString listSessionsAsJSON(String connectionID) throws Exception
ExceptionString listPreparedTransactionDetailsAsJSON() throws Exception
ExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.