2
* JBoss, Home of Professional Open Source
3
* Copyright 2005, JBoss Inc., and individual contributors as indicated
4
* by the @authors tag. See the copyright.txt in the distribution for a
5
* full listing of individual contributors.
7
* This is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
12
* This software is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this software; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23
package org.jboss.remoting.network;
25
import javax.management.MBeanRegistration;
26
import javax.management.NotificationBroadcaster;
27
import org.jboss.remoting.detection.ServerInvokerMetadata;
28
import org.jboss.remoting.ident.Identity;
31
* NetworkRegistryMBean is a managed bean that keeps track of all the servers on a
32
* JBOSS network, and associates all the valid invokers on each server that are
35
* @author <a href="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
36
* @version $Revision: 566 $
38
public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration
41
* return the servers on the network
45
public NetworkInstance[] getServers();
48
* add a server for a given identity that is available on the network
53
public void addServer(Identity identity, ServerInvokerMetadata invokers[]);
56
* remove a server no longer available on the network
60
public void removeServer(Identity identity);
63
* update the invokers for a given server
68
public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);
71
* returns true if the server with the identity is available
76
public boolean hasServer(Identity identity);
79
* query the network registry for <tt>0..*</tt> of servers based on a
85
public NetworkInstance[] queryServers(NetworkFilter filter);
88
* change the main domain of the local server
92
public void changeDomain(String newDomain);