org.objectweb.jtests.jms.admin
Interface Admin

All Known Implementing Classes:
JBossMQAdmin (src)

public interface Admin

Simple Administration interface.
JMS Provider has to implement this simple interface to be able to use the test suite.


Method Summary
 javax.naming.InitialContext createInitialContext()
          Returns an InitialContext with correct properties from the JMS Provider.
 void createQueue(java.lang.String name)
          Creates a Queue and makes it available from JNDI with name name.
 void createQueueConnectionFactory(java.lang.String name)
          Creates a QueueConnectionFactory and makes it available from JNDI with name name.
 void createTopic(java.lang.String name)
          Creates a Topic and makes it available from JNDI with name name.
 void createTopicConnectionFactory(java.lang.String name)
          Creates a TopicConnectionFactory and makes it available from JNDI with name name.
 void deleteQueue(java.lang.String name)
          Removes the Queue of name name from JNDI and deletes it
 void deleteQueueConnectionFactory(java.lang.String name)
          Removes the QueueConnectionFactory of name name from JNDI and deletes it
 void deleteTopic(java.lang.String name)
          Removes the Topic of name name from JNDI and deletes it
 void deleteTopicConnectionFactory(java.lang.String name)
          Removes the TopicConnectionFactory of name name from JNDI and deletes it
 java.lang.String getName()
          Returns the name of the JMS Provider.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the JMS Provider.

Returns:
name of the JMS Provider

createInitialContext

public javax.naming.InitialContext createInitialContext()
                                                 throws javax.naming.NamingException
Returns an InitialContext with correct properties from the JMS Provider.

Returns:
an InitialContext with correct properties from the JMS Provider.
Throws:
javax.naming.NamingException

createQueueConnectionFactory

public void createQueueConnectionFactory(java.lang.String name)
Creates a QueueConnectionFactory and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the QueueConnectionFactory

createTopicConnectionFactory

public void createTopicConnectionFactory(java.lang.String name)
Creates a TopicConnectionFactory and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the TopicConnectionFactory

createQueue

public void createQueue(java.lang.String name)
Creates a Queue and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the Queue

createTopic

public void createTopic(java.lang.String name)
Creates a Topic and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the Topic

deleteQueue

public void deleteQueue(java.lang.String name)
Removes the Queue of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Queue

deleteTopic

public void deleteTopic(java.lang.String name)
Removes the Topic of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Topic

deleteQueueConnectionFactory

public void deleteQueueConnectionFactory(java.lang.String name)
Removes the QueueConnectionFactory of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Queue

deleteTopicConnectionFactory

public void deleteTopicConnectionFactory(java.lang.String name)
Removes the TopicConnectionFactory of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Queue