KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > server > admin > MessageServerAdmin


1 package com.ubermq.jms.server.admin;
2
3 import com.ubermq.jms.common.routing.*;
4 import java.rmi.*;
5 import java.util.*;
6
7 /**
8  * The administrative interface for an UberMQ Message Server.
9  */

10 public interface MessageServerAdmin extends Remote
11 {
12     /**
13      * Closes the administrative interface and releases all resources.
14      */

15     public void close()
16         throws RemoteException;
17
18     /**
19      * Returns a collection of all connections to the server.
20      * @return a Collection of ConnectionAdmin objects.
21      * @see com.ubermq.jms.server.admin.ConnectionAdmin
22      */

23     public Collection getConnections()
24         throws RemoteException;
25
26     /**
27      * Returns a collection of all persistent consumer proxies, which
28      * is defined as any durable subscription or queue
29      * registered on the server. <P>
30      *
31      * @return a Collection of PersistentConsumerAdmin objects.
32      * @see com.ubermq.jms.server.admin.PersistentConsumerAdmin
33      */

34     public Collection getPersistentConsumers()
35         throws RemoteException;
36
37     /**
38      * Returns an object containing a snapshot of router
39      * statistical information. This includes number of routes,
40      * a full subscription table, uptime, and overall throughput
41      * statistics.
42      */

43     public IRouterStatistics getRouterStatistics()
44         throws RemoteException;
45
46     /**
47      * Returns the name of the server.
48      * @return a description of the server
49      */

50     public String JavaDoc getServerName()
51         throws RemoteException;
52 }
53
Popular Tags