org.jboss.remoting.network
Interface NetworkRegistryMBean

All Superinterfaces:
MBeanRegistration (src) , NotificationBroadcaster (src)
All Known Implementing Classes:
NetworkRegistry (src)

public interface NetworkRegistryMBean
extends NotificationBroadcaster (src) , MBeanRegistration (src)

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.


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

Method Detail

getServers

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

Returns:

addServer

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

Parameters:
identity -
invokers -

removeServer

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

Parameters:
identity -

updateServer

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

Parameters:
identity -
invokers -

hasServer

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

Parameters:
identity -
Returns:

queryServers

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

Parameters:
filter -
Returns:

changeDomain

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

Parameters:
newDomain -