Package org.objectweb.jtests.jms.admin
Interface Admin
public interface Admin
Simple Administration interface.
JMS Provider has to implement this simple interface to be able to use the test suite.
JMS Provider has to implement this simple interface to be able to use the test suite.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreates aConnectionFactoryand makes it available from JNDI with namename.Returns anContextfor the JMS Provider.voidcreateQueue(String name) Creates aQueueand makes it available from JNDI with namename.voidCreates aQueueConnectionFactoryand makes it available from JNDI with namename.voidcreateTopic(String name) Creates aTopicand makes it available from JNDI with namename.voidCreates aTopicConnectionFactoryand makes it available from JNDI with namename.voidRemoves theConnectionFactoryof namenamefrom JNDI and deletes itvoiddeleteQueue(String name) Removes theQueueof namenamefrom JNDI and deletes itvoidRemoves theQueueConnectionFactoryof namenamefrom JNDI and deletes itvoiddeleteTopic(String name) Removes theTopicof namenamefrom JNDI and deletes itvoidRemoves theTopicConnectionFactoryof namenamefrom JNDI and deletes itgetName()Returns the name of the JMS Provider.voidstart()Optional method for processing to be made after the Admin is instantiated and before it is used to create the administrated objectsvoidOptional method to start the server embedded (instead of running an external server)voidstop()Optional method for processing to be made after the administrated objects have been cleaned upvoidOptional method to stop the server embedded (instead of running an external server)
-
Method Details
-
getName
String getName()Returns the name of the JMS Provider.- Returns:
- name of the JMS Provider
-
createContext
Returns anContextfor the JMS Provider.- Returns:
- an
Contextfor the JMS Provider. - Throws:
NamingException
-
createConnectionFactory
Creates aConnectionFactoryand makes it available from JNDI with namename.- Parameters:
name- JNDI name of theConnectionFactory- Since:
- JMS 1.1
-
createQueueConnectionFactory
Creates aQueueConnectionFactoryand makes it available from JNDI with namename.- Parameters:
name- JNDI name of theQueueConnectionFactory
-
createTopicConnectionFactory
Creates aTopicConnectionFactoryand makes it available from JNDI with namename.- Parameters:
name- JNDI name of theTopicConnectionFactory
-
createQueue
Creates aQueueand makes it available from JNDI with namename.- Parameters:
name- JNDI name of theQueue
-
createTopic
Creates aTopicand makes it available from JNDI with namename.- Parameters:
name- JNDI name of theTopic
-
deleteQueue
Removes theQueueof namenamefrom JNDI and deletes it- Parameters:
name- JNDI name of theQueue
-
deleteTopic
Removes theTopicof namenamefrom JNDI and deletes it- Parameters:
name- JNDI name of theTopic
-
deleteConnectionFactory
Removes theConnectionFactoryof namenamefrom JNDI and deletes it- Parameters:
name- JNDI name of theConnectionFactory- Since:
- JMS 1.1
-
deleteQueueConnectionFactory
Removes theQueueConnectionFactoryof namenamefrom JNDI and deletes it- Parameters:
name- JNDI name of theQueueConnectionFactory
-
deleteTopicConnectionFactory
Removes theTopicConnectionFactoryof namenamefrom JNDI and deletes it- Parameters:
name- JNDI name of theTopicConnectionFactory
-
startServer
Optional method to start the server embedded (instead of running an external server)- Throws:
Exception
-
stopServer
Optional method to stop the server embedded (instead of running an external server)- Throws:
Exception
-
start
Optional method for processing to be made after the Admin is instantiated and before it is used to create the administrated objects- Throws:
Exception
-
stop
Optional method for processing to be made after the administrated objects have been cleaned up- Throws:
Exception
-