KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > scalagent > joram > osgi > server > service > JoramAdmin


1 package com.scalagent.joram.osgi.server.service;
2
3 import java.io.Reader JavaDoc;
4 import java.util.List JavaDoc;
5
6 import org.objectweb.joram.client.jms.ConnectionFactory;
7 import org.objectweb.joram.client.jms.Queue;
8 import org.objectweb.joram.client.jms.Topic;
9
10 /**
11  * Interface of the OSGI service that enables to ..
12  */

13 public interface JoramAdmin {
14   /**
15    *
16    */

17   public ConnectionFactory getLocalConnectionFactory() throws Exception JavaDoc;
18
19   /**
20    *
21    */

22   public void setRootUserName(String JavaDoc root);
23
24   /**
25    *
26    */

27   public void setRootPassword(String JavaDoc password);
28
29   /**
30    *
31    */

32   public boolean executeAdminXML(Reader JavaDoc reader) throws Exception JavaDoc;
33
34   /**
35    * Creates or retrieves a user on the underlying JORAM server.
36    *
37    * @exception Exception If the creation fails.
38    */

39   public void createUser(String JavaDoc name, String JavaDoc password) throws Exception JavaDoc;
40
41   /**
42    * Creates or retrieves a queue destination on the underlying JORAM server,
43    * (re)binds the corresponding <code>Queue</code> instance.
44    *
45    * @param name The name of the queue.
46    *
47    * @exception Exception If the creation fails.
48    */

49   public Queue createQueue(String JavaDoc name) throws Exception JavaDoc;
50
51   /**
52    * Creates or retrieves a topic destination on the underlying JORAM server,
53    * (re)binds the corresponding <code>Topic</code> instance.
54    *
55    * @exception Exception If the creation fails.
56    */

57   public Topic createTopic(String JavaDoc name) throws Exception JavaDoc;
58
59   /**
60    * Returns the list of all destinations that exist on the server.
61    */

62   public List JavaDoc getDestinations() throws Exception JavaDoc;
63
64   /**
65    * Returns the list of all users that exist on the server.
66    */

67   public List JavaDoc getUsers() throws Exception JavaDoc;
68 }
69
Popular Tags