org.jboss.remoting.network
Interface NetworkRegistryMBean

All Superinterfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster
All Known Implementing Classes:
NetworkRegistry

public interface NetworkRegistryMBean
extends javax.management.NotificationBroadcaster, javax.management.MBeanRegistration

NetworkRegistryMBean is a managed bean that keeps track of all the servers on a JBOSS network, and associates all the valid invokers on each server that are available.

Version:
$Revision: 1.4 $
Author:
Jeff Haynie

Method Summary
 void addServer(Identity identity, InvokerLocator[] invokers)
          add a server for a given identity that is available on the network
 void changeDomain(String newDomain)
          change the main domain of the local server
 NetworkInstance[] getServers()
          return the servers on the network
 boolean hasServer(Identity identity)
          returns true if the server with the identity is available
 NetworkInstance[] queryServers(NetworkFilter filter)
          query the network registry for 0..* of servers based on a filter
 void removeServer(Identity identity)
          remove a server no longer available on the network
 void updateServer(Identity identity, InvokerLocator[] invokers)
          update the invokers for a given server
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 

Method Detail

getServers

public NetworkInstance[] getServers()
return the servers on the network

Returns:

addServer

public void addServer(Identity identity,
                      InvokerLocator[] invokers)
add a server for a given identity that is available on the network

Parameters:
identity -
invokers -

removeServer

public void removeServer(Identity identity)
remove a server no longer available on the network

Parameters:
identity -

updateServer

public void updateServer(Identity identity,
                         InvokerLocator[] invokers)
update the invokers for a given server

Parameters:
identity -
invokers -

hasServer

public boolean hasServer(Identity identity)
returns true if the server with the identity is available

Parameters:
identity -
Returns:

queryServers

public NetworkInstance[] queryServers(NetworkFilter filter)
query the network registry for 0..* of servers based on a filter

Parameters:
filter -
Returns:

changeDomain

public void changeDomain(String newDomain)
change the main domain of the local server

Parameters:
newDomain -


Copyright © 2004 JBoss Inc. All Rights Reserved.