Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/objectweb/jtests/jms/admin/Admin.java


1   /*
2    * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3    * Copyright (C) 2002 INRIA
4    * Contact: joram-team@objectweb.org
5    * 
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License as published by the Free Software Foundation; either
9    * version 2.1 of the License, or any later version.
10   * 
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Lesser General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this library; if not, write to the Free Software
18   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   * USA
20   * 
21   * Initial developer(s): Jeff Mesnil (jmesnil@inrialpes.fr)
22   * Contributor(s): ______________________________________.
23   */
24  
25  package org.objectweb.jtests.jms.admin;
26  
27  import javax.naming.*;
28  
29  /**
30   * Simple Administration interface.
31   * <br />
32   * JMS Provider has to implement this 
33   * simple interface to be able to use the test suite.
34   */
35  public interface Admin {
36      
37      /**
38       * Returns the name of the JMS Provider.
39       *
40       * @return name of the JMS Provider
41       */
42      public String getName();
43  
44      /** 
45       * Returns an <code>InitialContext</code> with correct properties from
46       * the JMS Provider.
47       *
48       * @return an <code>InitialContext</code> with correct properties from the JMS Provider.
49       */
50      public InitialContext createInitialContext() 
51          throws NamingException;
52      
53      /** 
54       * Creates a <code>QueueConnectionFactory</code> and makes it available 
55       *from JNDI with name <code>name</code>.
56       *
57       * @param name JNDI name of the <code>QueueConnectionFactory</code>
58       */
59      public void createQueueConnectionFactory(String name);
60  
61      /** 
62       * Creates a <code>TopicConnectionFactory</code> and makes it available 
63       *from JNDI with name <code>name</code>.
64       *
65       * @param name JNDI name of the <code>TopicConnectionFactory</code>
66       */
67      public void createTopicConnectionFactory(String name);
68   
69      /** 
70       * Creates a <code>Queue</code> and makes it available 
71       *from JNDI with name <code>name</code>.
72       *
73       * @param name JNDI name of the <code>Queue</code>
74       */
75      public void createQueue(String name);
76  
77      /** 
78       * Creates a <code>Topic</code> and makes it available 
79       *from JNDI with name <code>name</code>.
80       *
81       * @param name JNDI name of the <code>Topic</code>
82       */
83      public void createTopic(String name);
84      
85      /** 
86       * Removes the <code>Queue</code> of name <code>name</code> from JNDI and deletes it
87       *
88       * @param name JNDI name of the <code>Queue</code>
89       */
90      public void deleteQueue(String name);
91      
92      /** 
93       * Removes the <code>Topic</code> of name <code>name</code> from JNDI and deletes it
94       *
95       * @param name JNDI name of the <code>Topic</code>
96       */
97      public void deleteTopic(String name);
98  
99      /** 
100      * Removes the <code>QueueConnectionFactory</code> of name <code>name</code> from JNDI and deletes it
101      *
102      * @param name JNDI name of the <code>Queue</code>
103      */
104     public void deleteQueueConnectionFactory (String name);
105 
106     /** 
107      * Removes the <code>TopicConnectionFactory</code> of name <code>name</code> from JNDI and deletes it
108      *
109      * @param name JNDI name of the <code>Queue</code>
110      */    
111     public void deleteTopicConnectionFactory (String name);
112 }