org.jboss.test.jms
Class AbstractAdmin

java.lang.Object
  extended by org.jboss.test.jms.AbstractAdmin
All Implemented Interfaces:
Admin

public class AbstractAdmin
extends java.lang.Object
implements Admin

AbstractAdmin.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
AbstractAdmin()
           
 
Method Summary
 void createConnectionFactory(java.lang.String name)
          Creates a ConnectionFactory and makes it available from JNDI with name name.
 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 deleteConnectionFactory(java.lang.String name)
          Removes the ConnectionFactory of name name from JNDI and deletes it
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAdmin

public AbstractAdmin()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Admin
Returns the name of the JMS Provider.

Specified by:
getName in interface Admin
Returns:
name of the JMS Provider

createInitialContext

public javax.naming.InitialContext createInitialContext()
                                                 throws javax.naming.NamingException
Description copied from interface: Admin
Returns an InitialContext with correct properties from the JMS Provider.

Specified by:
createInitialContext in interface Admin
Returns:
an InitialContext with correct properties from the JMS Provider.
Throws:
javax.naming.NamingException

createConnectionFactory

public void createConnectionFactory(java.lang.String name)
Description copied from interface: Admin
Creates a ConnectionFactory and makes it available from JNDI with name name.

Specified by:
createConnectionFactory in interface Admin
Parameters:
name - JNDI name of the ConnectionFactory

deleteConnectionFactory

public void deleteConnectionFactory(java.lang.String name)
Description copied from interface: Admin
Removes the ConnectionFactory of name name from JNDI and deletes it

Specified by:
deleteConnectionFactory in interface Admin
Parameters:
name - JNDI name of the ConnectionFactory

createQueue

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

Specified by:
createQueue in interface Admin
Parameters:
name - JNDI name of the Queue

deleteQueue

public void deleteQueue(java.lang.String name)
Description copied from interface: Admin
Removes the Queue of name name from JNDI and deletes it

Specified by:
deleteQueue in interface Admin
Parameters:
name - JNDI name of the Queue

createQueueConnectionFactory

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

Specified by:
createQueueConnectionFactory in interface Admin
Parameters:
name - JNDI name of the QueueConnectionFactory

deleteQueueConnectionFactory

public void deleteQueueConnectionFactory(java.lang.String name)
Description copied from interface: Admin
Removes the QueueConnectionFactory of name name from JNDI and deletes it

Specified by:
deleteQueueConnectionFactory in interface Admin
Parameters:
name - JNDI name of the QueueConnectionFactory

createTopic

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

Specified by:
createTopic in interface Admin
Parameters:
name - JNDI name of the Topic

deleteTopic

public void deleteTopic(java.lang.String name)
Description copied from interface: Admin
Removes the Topic of name name from JNDI and deletes it

Specified by:
deleteTopic in interface Admin
Parameters:
name - JNDI name of the Topic

createTopicConnectionFactory

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

Specified by:
createTopicConnectionFactory in interface Admin
Parameters:
name - JNDI name of the TopicConnectionFactory

deleteTopicConnectionFactory

public void deleteTopicConnectionFactory(java.lang.String name)
Description copied from interface: Admin
Removes the TopicConnectionFactory of name name from JNDI and deletes it

Specified by:
deleteTopicConnectionFactory in interface Admin
Parameters:
name - JNDI name of the TopicConnectionFactory


Copyright © 2011 JBoss, A division of Red Hat. All Rights Reserved.