|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.remoting.network.NetworkRegistry
NetworkRegistry is a concrete implemenation of the NetworkRegistryMBean interface. The NetworkRegistry will keep a list of all the detected JBoss servers on the network and provide a local facility for querying for different servers.
| Constructor Summary | |
NetworkRegistry()
|
|
| Method Summary | |
void |
addNotificationListener(NotificationListener (src) notificationListener,
NotificationFilter (src) notificationFilter,
java.lang.Object o)
Add a listener to an MBean. |
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 |
static NetworkRegistry (src) |
getInstance()
return the singleton instance |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
NetworkInstance (src) [] |
getServers()
return the servers on the network |
boolean |
hasServer(Identity (src) identity)
returns true if the server with the identity is available |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean aBoolean)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) mBeanServer,
ObjectName (src) objectName)
This method is called by the MBeanServer before registration takes place. |
NetworkInstance (src) [] |
queryServers(NetworkFilter (src) filter)
query the network registry for 0..* of servers based on a filter. |
void |
removeNotificationListener(NotificationListener (src) notificationListener)
Removes a listener from an MBean. |
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkRegistry()
| Method Detail |
public static final NetworkRegistry (src) getInstance()
public void addServer(Identity (src) identity,
InvokerLocator (src) [] invokers)
addServer in interface NetworkRegistryMBean (src) identity - invokers -
public void updateServer(Identity (src) identity,
InvokerLocator (src) [] invokers)
updateServer in interface NetworkRegistryMBean (src) identity - invokers - public NetworkInstance (src) [] getServers()
getServers in interface NetworkRegistryMBean (src) public boolean hasServer(Identity (src) identity)
hasServer in interface NetworkRegistryMBean (src) identity -
public NetworkInstance (src) [] queryServers(NetworkFilter (src) filter)
queryServers in interface NetworkRegistryMBean (src) filter -
public void removeServer(Identity (src) identity)
removeServer in interface NetworkRegistryMBean (src) identity -
public void addNotificationListener(NotificationListener (src) notificationListener,
NotificationFilter (src) notificationFilter,
java.lang.Object o)
throws java.lang.IllegalArgumentException
NotificationBroadcaster (src)
addNotificationListener in interface NotificationBroadcaster (src) notificationListener - implementation of the listener objectnotificationFilter - implementation of the filter object or null
if no filtering is requiredo - A handback object associated with each notification
sent by this notification broadcaster.
java.lang.IllegalArgumentException - if listener is nullpublic MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src)
getNotificationInfo in interface NotificationBroadcaster (src) MBeanNotificationInfo (src)
public void removeNotificationListener(NotificationListener (src) notificationListener)
throws ListenerNotFoundException (src)
NotificationBroadcaster (src)
removeNotificationListener in interface NotificationBroadcaster (src) notificationListener - the listener object to remove
ListenerNotFoundException (src) - if the listener was not foundpublic void postDeregister()
MBeanRegistration (src)
postDeregister in interface MBeanRegistration (src) public void postRegister(java.lang.Boolean aBoolean)
MBeanRegistration (src)
postRegister in interface MBeanRegistration (src) aBoolean - the MBeanServer passes true when the
MBean was registered, false otherwise.
public void preDeregister()
throws java.lang.Exception
MBeanRegistration (src) The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister in interface MBeanRegistration (src) java.lang.Exception
public ObjectName (src) preRegister(MBeanServer (src) mBeanServer,
ObjectName (src) objectName)
throws java.lang.Exception
MBeanRegistration (src) The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister in interface MBeanRegistration (src) java.lang.Exception - for any error, the MBean is not registered.public void changeDomain(java.lang.String newDomain)
changeDomain in interface NetworkRegistryMBean (src) newDomain -
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||