KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jtests > jms > admin > Admin


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 JavaDoc 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>ConnectionFactory</code> and makes it available
55      *from JNDI with name <code>name</code>.
56      *
57      * @since JMS 1.1
58      * @param name JNDI name of the <code>ConnectionFactory</code>
59      */

60     public void createConnectionFactory(String JavaDoc name);
61
62     /**
63      * Creates a <code>QueueConnectionFactory</code> and makes it available
64      *from JNDI with name <code>name</code>.
65      *
66      * @param name JNDI name of the <code>QueueConnectionFactory</code>
67      */

68     public void createQueueConnectionFactory(String JavaDoc name);
69
70     /**
71      * Creates a <code>TopicConnectionFactory</code> and makes it available
72      *from JNDI with name <code>name</code>.
73      *
74      * @param name JNDI name of the <code>TopicConnectionFactory</code>
75      */

76     public void createTopicConnectionFactory(String JavaDoc name);
77  
78     /**
79      * Creates a <code>Queue</code> and makes it available
80      *from JNDI with name <code>name</code>.
81      *
82      * @param name JNDI name of the <code>Queue</code>
83      */

84     public void createQueue(String JavaDoc name);
85
86     /**
87      * Creates a <code>Topic</code> and makes it available
88      *from JNDI with name <code>name</code>.
89      *
90      * @param name JNDI name of the <code>Topic</code>
91      */

92     public void createTopic(String JavaDoc name);
93     
94     /**
95      * Removes the <code>Queue</code> of name <code>name</code> from JNDI and deletes it
96      *
97      * @param name JNDI name of the <code>Queue</code>
98      */

99     public void deleteQueue(String JavaDoc name);
100     
101     /**
102      * Removes the <code>Topic</code> of name <code>name</code> from JNDI and deletes it
103      *
104      * @param name JNDI name of the <code>Topic</code>
105      */

106     public void deleteTopic(String JavaDoc name);
107
108     /**
109      * Removes the <code>ConnectionFactory</code> of name <code>name</code> from JNDI and deletes it
110      *
111      * @since JMS 1.1
112      * @param name JNDI name of the <code>ConnectionFactory</code>
113      */

114     public void deleteConnectionFactory (String JavaDoc name);
115
116     /**
117      * Removes the <code>QueueConnectionFactory</code> of name <code>name</code> from JNDI and deletes it
118      *
119      * @param name JNDI name of the <code>QueueConnectionFactory</code>
120      */

121     public void deleteQueueConnectionFactory (String JavaDoc name);
122
123     /**
124      * Removes the <code>TopicConnectionFactory</code> of name <code>name</code> from JNDI and deletes it
125      *
126      * @param name JNDI name of the <code>TopicConnectionFactory</code>
127      */

128     public void deleteTopicConnectionFactory (String JavaDoc name);
129 }
130
Popular Tags