|
||||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.messaging.jms.server.JMSServerManager |
---|
JMSServerManager.ListType |
Constructor Summary | |
---|---|
JMSServerManagerImpl()
|
Method Summary | |
---|---|
boolean |
createConnectionFactory(java.lang.String name,
java.lang.String clientID,
int dupsOKBatchSize,
int consumerWindowSize,
int consumerMaxRate,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean defaultSendNonPersistentMessagesBlocking,
boolean defaultSendPersistentMessagesBlocking,
java.util.List<java.lang.String> jndiBindings)
Creates a connection factory |
boolean |
createConnectionFactory(java.lang.String name,
java.lang.String clientID,
int dupsOKBatchSize,
int consumerWindowSize,
int consumerMaxRate,
int producerWindowSize,
int producerMaxRate,
boolean blockOnAcknowledge,
boolean defaultSendNonPersistentMessagesBlocking,
boolean defaultSendPersistentMessagesBlocking,
java.lang.String jndiBinding)
Creates a connection factory |
boolean |
createQueue(java.lang.String queueName,
java.lang.String jndiBinding)
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 |
int |
getMessageCountForQueue(java.lang.String queue)
returns how many messages a queue is currently holding |
boolean |
isStarted()
Has the Server been started. |
java.util.List<SubscriptionInfo> |
listSubscriptions(java.lang.String topicName)
lists all the subscriptions for a specific topic |
void |
removeAllMessagesForQueue(java.lang.String queueName)
removes all messages from a particular queue |
void |
removeAllMessagesForTopic(java.lang.String topicName)
removes all the messages from a topic |
void |
setInitialContext(javax.naming.InitialContext initialContext)
|
void |
setMessagingServerManagement(MessagingServerManagement messagingServerManagement)
|
void |
start()
lifecycle method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSServerManagerImpl()
Method Detail |
---|
public void setMessagingServerManagement(MessagingServerManagement messagingServerManagement)
public void start() throws java.lang.Exception
java.lang.Exception
- expublic boolean isStarted()
JMSServerManager
isStarted
in interface JMSServerManager
public boolean createQueue(java.lang.String queueName, java.lang.String jndiBinding) 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 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 boolean createConnectionFactory(java.lang.String name, java.lang.String clientID, int dupsOKBatchSize, int consumerWindowSize, int consumerMaxRate, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean defaultSendNonPersistentMessagesBlocking, boolean defaultSendPersistentMessagesBlocking, java.lang.String jndiBinding) throws java.lang.Exception
JMSServerManager
createConnectionFactory
in interface JMSServerManager
name
- the name of this connection factoryclientID
- the client iddupsOKBatchSize
- the bath sizeconsumerWindowSize
- The consumer window sizeconsumerMaxRate
- the Consumer max rateproducerWindowSize
- the producer window sizeproducerMaxRate
- the producer max ratejndiBinding
- the binding name for JNDI
java.lang.Exception
- if a problem occurred creating the connection factorypublic boolean createConnectionFactory(java.lang.String name, java.lang.String clientID, int dupsOKBatchSize, int consumerWindowSize, int consumerMaxRate, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean defaultSendNonPersistentMessagesBlocking, boolean defaultSendPersistentMessagesBlocking, java.util.List<java.lang.String> jndiBindings) throws java.lang.Exception
JMSServerManager
createConnectionFactory
in interface JMSServerManager
name
- the name of this connection factoryclientID
- the client iddupsOKBatchSize
- the bath sizeconsumerWindowSize
- The consumer window sizeconsumerMaxRate
- the Consumer max rateproducerWindowSize
- the producer window sizeproducerMaxRate
- the producer max ratejndiBindings
- the binding names for JNDI
java.lang.Exception
- if a problem occurred creating the connection factorypublic 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 void removeAllMessagesForQueue(java.lang.String queueName) throws java.lang.Exception
JMSServerManager
removeAllMessagesForQueue
in interface JMSServerManager
queueName
- the name of the queue
java.lang.Exception
- if a problem occurredpublic void removeAllMessagesForTopic(java.lang.String topicName) throws java.lang.Exception
JMSServerManager
removeAllMessagesForTopic
in interface JMSServerManager
topicName
- the name of the topic
java.lang.Exception
- if a problem occurredpublic int getMessageCountForQueue(java.lang.String queue) throws java.lang.Exception
JMSServerManager
getMessageCountForQueue
in interface JMSServerManager
queue
- the name of the queue
java.lang.Exception
- if a problem occurredpublic java.util.List<SubscriptionInfo> listSubscriptions(java.lang.String topicName) throws java.lang.Exception
JMSServerManager
listSubscriptions
in interface JMSServerManager
topicName
- the name of the topic
java.lang.Exception
- if a problem occurredpublic void setInitialContext(javax.naming.InitialContext initialContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |