KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > network > NetworkRegistryMBean


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.remoting.network;
10
11 import javax.management.MBeanRegistration JavaDoc;
12 import javax.management.NotificationBroadcaster JavaDoc;
13 import org.jboss.remoting.detection.ServerInvokerMetadata;
14 import org.jboss.remoting.ident.Identity;
15
16 /**
17  * NetworkRegistryMBean is a managed bean that keeps track of all the servers on a
18  * JBOSS network, and associates all the valid invokers on each server that are
19  * available.
20  *
21  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
22  * @version $Revision: 1.3 $
23  */

24 public interface NetworkRegistryMBean extends NotificationBroadcaster JavaDoc, MBeanRegistration JavaDoc
25 {
26    /**
27     * return the servers on the network
28     *
29     * @return
30     */

31    public NetworkInstance[] getServers();
32
33    /**
34     * add a server for a given identity that is available on the network
35     *
36     * @param identity
37     * @param invokers
38     */

39    public void addServer(Identity identity, ServerInvokerMetadata invokers[]);
40
41    /**
42     * remove a server no longer available on the network
43     *
44     * @param identity
45     */

46    public void removeServer(Identity identity);
47
48    /**
49     * update the invokers for a given server
50     *
51     * @param identity
52     * @param invokers
53     */

54    public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);
55
56    /**
57     * returns true if the server with the identity is available
58     *
59     * @param identity
60     * @return
61     */

62    public boolean hasServer(Identity identity);
63
64    /**
65     * query the network registry for <tt>0..*</tt> of servers based on a
66     * filter
67     *
68     * @param filter
69     * @return
70     */

71    public NetworkInstance[] queryServers(NetworkFilter filter);
72
73    /**
74     * change the main domain of the local server
75     *
76     * @param newDomain
77     */

78    public void changeDomain(String JavaDoc newDomain);
79 }
80
Popular Tags