|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_jms.JmsManagerImpl
public class JmsManagerImpl
JmsManager implementation This singleton class must exist in each JOnAS server that want to use JMS
Christophe Ney: for making easier Enhydra integration
Philippe Durieux
Jeff Mesnil: for JORAM 3.0 integration
Philippe Coq: for JORAM 3.1 (JMS 1.1) integration
Adriana Danes : update with support of JMS resource monitoring
Method Summary | |
---|---|
Queue |
createQueue(String name)
Creation of an administered Object Queue and bind it in the registry |
Topic |
createTopic(String name)
Creation of an administered Object Topic and bind it in the registry |
ConnectionFactory |
getConnectionFactory()
Get the unique ConnectionFactory |
String |
getConnectionFactoryMode(String jndiName)
Get the messaging mode a connection factory belongs to |
int |
getCurrentNumberOfJmsConnectionFactory()
Management method |
int |
getCurrentNumberOfJmsQueueConnectionFactory()
Management method |
int |
getCurrentNumberOfJmsQueueDestination()
Management method |
int |
getCurrentNumberOfJmsTopicConnectionFactory()
Management method |
int |
getCurrentNumberOfJmsTopicDestination()
Management method |
String |
getDefaultConnectionFactoryName()
Management method |
String |
getDefaultQueueConnectionFactoryName()
Management method |
String |
getDefaultTopicConnectionFactoryName()
Management method |
static JmsJmxManagement |
getJmsJmxManagement()
Get the JmsJmxManagement. |
static JmsManager |
getJmsManager()
Get the JmsManager. |
int |
getPendingMessages(String jndiName)
Get number of pending messages on a queue |
int |
getPendingRequests(String jndiName)
Get number of pending requests on a queue |
Queue |
getQueue(String name)
Get Queue (creates it if not exist) |
QueueConnectionFactory |
getQueueConnectionFactory()
Get the unique QueueConnectionFactory |
Enumeration |
getQueuesNames()
Get Queue Names |
int |
getSubscriptions(String jndiName)
Get number of subscriptions on a topic |
Topic |
getTopic(String name)
Get Topic (creates it if not exist) |
TopicConnectionFactory |
getTopicConnectionFactory()
Get the unique TopicConnectionFactory |
Enumeration |
getTopicsNames()
Get Topic Names |
static org.objectweb.transaction.jta.TransactionManager |
getTransactionManager()
return the Transaction Manager |
XAConnectionFactory |
getXAConnectionFactory()
Get Default XAConnectionFactory |
XAQueueConnectionFactory |
getXAQueueConnectionFactory()
Get Default XAQueueConnectionFactory |
XATopicConnectionFactory |
getXATopicConnectionFactory()
Get Default XATopicConnectionFactory |
void |
init(Class cl,
boolean collocated,
String url,
org.objectweb.transaction.jta.TransactionManager trm)
Initialization of the JmsManager |
String |
removeJmsDestination(String jndiName)
Remove a Jms destination |
void |
stop()
Terminate the administering process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JmsManager getJmsManager()
public static JmsJmxManagement getJmsJmxManagement()
public static org.objectweb.transaction.jta.TransactionManager getTransactionManager()
public void init(Class cl, boolean collocated, String url, org.objectweb.transaction.jta.TransactionManager trm) throws Exception
init
in interface JmsManager
cl
- JmsAdministration class .collocated
- true for launching the MOM inside the JOnAS server.url
- connexion that must be used as soon as we don't use
the default value of a3server.xml
Exception
- must be thrown if the MOM is unreachablepublic Queue createQueue(String name) throws Exception
createQueue
in interface JmsManager
Exception
public Topic createTopic(String name) throws Exception
createTopic
in interface JmsManager
Exception
public ConnectionFactory getConnectionFactory()
getConnectionFactory
in interface JmsManager
public TopicConnectionFactory getTopicConnectionFactory()
getTopicConnectionFactory
in interface JmsManager
public QueueConnectionFactory getQueueConnectionFactory()
getQueueConnectionFactory
in interface JmsManager
public XAConnectionFactory getXAConnectionFactory()
getXAConnectionFactory
in interface JmsManager
public XATopicConnectionFactory getXATopicConnectionFactory()
getXATopicConnectionFactory
in interface JmsManager
public XAQueueConnectionFactory getXAQueueConnectionFactory()
getXAQueueConnectionFactory
in interface JmsManager
public Queue getQueue(String name) throws Exception
getQueue
in interface JmsManager
Exception
public Topic getTopic(String name) throws Exception
getTopic
in interface JmsManager
Exception
public Enumeration getTopicsNames()
getTopicsNames
in interface JmsManager
public Enumeration getQueuesNames()
getQueuesNames
in interface JmsManager
public void stop() throws Exception
stop
in interface JmsManager
Exception
public int getCurrentNumberOfJmsConnectionFactory()
JmsJmxManagement
getCurrentNumberOfJmsConnectionFactory
in interface JmsJmxManagement
public int getCurrentNumberOfJmsTopicConnectionFactory()
JmsJmxManagement
getCurrentNumberOfJmsTopicConnectionFactory
in interface JmsJmxManagement
public int getCurrentNumberOfJmsQueueConnectionFactory()
JmsJmxManagement
getCurrentNumberOfJmsQueueConnectionFactory
in interface JmsJmxManagement
public int getCurrentNumberOfJmsTopicDestination()
JmsJmxManagement
getCurrentNumberOfJmsTopicDestination
in interface JmsJmxManagement
public int getCurrentNumberOfJmsQueueDestination()
JmsJmxManagement
getCurrentNumberOfJmsQueueDestination
in interface JmsJmxManagement
public String removeJmsDestination(String jndiName) throws Exception
removeJmsDestination
in interface JmsJmxManagement
jndiName
- jndi name of the destination
Exception
public String getDefaultConnectionFactoryName()
JmsJmxManagement
getDefaultConnectionFactoryName
in interface JmsJmxManagement
public String getDefaultQueueConnectionFactoryName()
JmsJmxManagement
getDefaultQueueConnectionFactoryName
in interface JmsJmxManagement
public String getDefaultTopicConnectionFactoryName()
JmsJmxManagement
getDefaultTopicConnectionFactoryName
in interface JmsJmxManagement
public String getConnectionFactoryMode(String jndiName) throws Exception
getConnectionFactoryMode
in interface JmsJmxManagement
jndiName
- connection factory name
Exception
- failure on calling monitoring operationpublic int getPendingMessages(String jndiName) throws Exception
getPendingMessages
in interface JmsJmxManagement
name
- the queue's jndi name
Exception
- failure on calling monitoring operationpublic int getPendingRequests(String jndiName) throws Exception
getPendingRequests
in interface JmsJmxManagement
jndiName
- queue name
Exception
- failure on calling monitoring operationpublic int getSubscriptions(String jndiName) throws Exception
getSubscriptions
in interface JmsJmxManagement
jndiName
- topic name
Exception
- failure on calling monitoring operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |