|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.jms.server.impl.JMSServerManagerImpl
public class JMSServerManagerImpl
A Deployer used to create and add to JNDI queues, topics and connection factories. Typically this would only be used in an app server env.
Constructor Summary | |
---|---|
JMSServerManagerImpl(MessagingServer server)
|
|
JMSServerManagerImpl(MessagingServer server,
java.lang.String configFileName)
|
Method Summary | |
---|---|
void |
activated()
|
boolean |
closeConnectionsForAddress(java.lang.String ipAddress)
|
void |
createConnectionFactory(java.lang.String name,
java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs,
java.lang.String clientID,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs,
java.lang.String clientID,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
int maxConnections,
int minLargeMessageSize,
int consumerWindowSize,
int consumerMaxRate,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnPersistentSend,
boolean blockOnNonPersistentSend,
boolean autoGroup,
boolean preAcknowledge,
java.lang.String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
int reconnectAttempts,
boolean failoverOnServerShutdown,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
java.lang.String discoveryAddress,
int discoveryPort,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
java.lang.String discoveryAddress,
int discoveryPort,
java.lang.String clientID,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
java.lang.String discoveryAddress,
int discoveryPort,
java.lang.String clientID,
long discoveryRefreshTimeout,
long clientFailureCheckPeriod,
long connectionTTL,
long callTimeout,
int maxConnections,
int minLargeMessageSize,
int consumerWindowSize,
int consumerMaxRate,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean blockOnPersistentSend,
boolean blockOnNonPersistentSend,
boolean autoGroup,
boolean preAcknowledge,
java.lang.String loadBalancingPolicyClassName,
int transactionBatchSize,
int dupsOKBatchSize,
long initialWaitTimeout,
boolean useGlobalPools,
int scheduledThreadPoolMaxSize,
int threadPoolMaxSize,
long retryInterval,
double retryIntervalMultiplier,
int reconnectAttempts,
boolean failoverOnServerShutdown,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
TransportConfiguration liveTC,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
TransportConfiguration liveTC,
java.lang.String clientID,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
TransportConfiguration liveTC,
TransportConfiguration backupTC,
java.util.List<java.lang.String> jndiBindings)
|
void |
createConnectionFactory(java.lang.String name,
TransportConfiguration liveTC,
TransportConfiguration backupTC,
java.lang.String clientID,
java.util.List<java.lang.String> jndiBindings)
|
boolean |
createQueue(java.lang.String queueName,
java.lang.String jndiBinding,
java.lang.String selectorString,
boolean durable)
Creates a JMS Queue. |
boolean |
createTopic(java.lang.String topicName,
java.lang.String jndiBinding)
Creates a JMS Topic |
boolean |
destroyConnectionFactory(java.lang.String name)
destroys a connection factory. |
boolean |
destroyQueue(java.lang.String name)
destroys a queue and removes it from JNDI |
boolean |
destroyTopic(java.lang.String name)
destroys a topic and removes it from JNDI |
java.lang.String |
getVersion()
|
boolean |
isStarted()
Has the Server been started. |
java.lang.String[] |
listConnectionIDs()
|
java.lang.String[] |
listRemoteAddresses()
|
java.lang.String[] |
listRemoteAddresses(java.lang.String ipAddress)
|
java.lang.String[] |
listSessions(java.lang.String connectionID)
|
void |
setContext(javax.naming.Context context)
|
void |
start()
|
void |
stop()
|
boolean |
undeployDestination(java.lang.String name)
Remove the destination from JNDI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSServerManagerImpl(MessagingServer server) throws java.lang.Exception
java.lang.Exception
public JMSServerManagerImpl(MessagingServer server, java.lang.String configFileName) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void activated()
activated
in interface ActivateCallback
public void start() throws java.lang.Exception
start
in interface MessagingComponent
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface MessagingComponent
java.lang.Exception
public boolean isStarted()
JMSServerManager
isStarted
in interface MessagingComponent
isStarted
in interface JMSServerManager
public void setContext(javax.naming.Context context)
setContext
in interface JMSServerManager
public java.lang.String getVersion()
getVersion
in interface JMSServerManager
public boolean createQueue(java.lang.String queueName, java.lang.String jndiBinding, java.lang.String selectorString, boolean durable) throws java.lang.Exception
JMSServerManager
createQueue
in interface JMSServerManager
queueName
- The name of the queue to createjndiBinding
- the name of the binding for JNDI
java.lang.Exception
- if problems were encountered creating the queue.public boolean createTopic(java.lang.String topicName, java.lang.String jndiBinding) throws java.lang.Exception
JMSServerManager
createTopic
in interface JMSServerManager
topicName
- the name of the topicjndiBinding
- the name of the binding for JNDI
java.lang.Exception
- if a problem occurred creating the topicpublic boolean undeployDestination(java.lang.String name) throws java.lang.Exception
JMSServerManager
undeployDestination
in interface JMSServerManager
name
- the name of the destination to remove from JNDI
java.lang.Exception
- if a problem occurred removing the destinationpublic boolean destroyQueue(java.lang.String name) throws java.lang.Exception
JMSServerManager
destroyQueue
in interface JMSServerManager
name
- the name of the queue to destroy
java.lang.Exception
- if a problem occurred destroying the queuepublic boolean destroyTopic(java.lang.String name) throws java.lang.Exception
JMSServerManager
destroyTopic
in interface JMSServerManager
name
- the name of the topic to destroy
java.lang.Exception
- if a problem occurred destroying the topicpublic void createConnectionFactory(java.lang.String name, java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs, java.lang.String clientID, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, java.util.List<Pair<TransportConfiguration,TransportConfiguration>> connectorConfigs, java.lang.String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, int maxConnections, int minLargeMessageSize, int consumerWindowSize, int consumerMaxRate, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnPersistentSend, boolean blockOnNonPersistentSend, boolean autoGroup, boolean preAcknowledge, java.lang.String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, int reconnectAttempts, boolean failoverOnServerShutdown, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, java.lang.String discoveryAddress, int discoveryPort, java.lang.String clientID, long discoveryRefreshTimeout, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, int maxConnections, int minLargeMessageSize, int consumerWindowSize, int consumerMaxRate, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnPersistentSend, boolean blockOnNonPersistentSend, boolean autoGroup, boolean preAcknowledge, java.lang.String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, long initialWaitTimeout, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, int reconnectAttempts, boolean failoverOnServerShutdown, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, java.lang.String discoveryAddress, int discoveryPort, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, java.lang.String discoveryAddress, int discoveryPort, java.lang.String clientID, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, TransportConfiguration liveTC, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, TransportConfiguration liveTC, java.lang.String clientID, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, TransportConfiguration liveTC, TransportConfiguration backupTC, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public void createConnectionFactory(java.lang.String name, TransportConfiguration liveTC, TransportConfiguration backupTC, java.lang.String clientID, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
createConnectionFactory
in interface JMSServerManager
java.lang.Exception
public boolean destroyConnectionFactory(java.lang.String name) throws java.lang.Exception
JMSServerManager
destroyConnectionFactory
in interface JMSServerManager
name
- the name of the connection factory to destroy
java.lang.Exception
- if a problem occurred destroying the connection factorypublic java.lang.String[] listRemoteAddresses() throws java.lang.Exception
listRemoteAddresses
in interface JMSServerManager
java.lang.Exception
public java.lang.String[] listRemoteAddresses(java.lang.String ipAddress) throws java.lang.Exception
listRemoteAddresses
in interface JMSServerManager
java.lang.Exception
public boolean closeConnectionsForAddress(java.lang.String ipAddress) throws java.lang.Exception
closeConnectionsForAddress
in interface JMSServerManager
java.lang.Exception
public java.lang.String[] listConnectionIDs() throws java.lang.Exception
listConnectionIDs
in interface JMSServerManager
java.lang.Exception
public java.lang.String[] listSessions(java.lang.String connectionID) throws java.lang.Exception
listSessions
in interface JMSServerManager
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |