public abstract class AutoDiscovery extends CommandMBean implements AutoDiscoveryMBean, NotificationListener
| Constructor and Description |
|---|
AutoDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
discoveredChangedDomain(org.jboss.remoting.network.NetworkNotification networkNotification)
Processes a Network Registry notification that indicates the domain has changed.
|
abstract void |
discoveredNewServers(org.jboss.remoting.network.NetworkNotification networkNotification)
Processes a Network Registry notification that indicates new servers have come online.
|
abstract void |
discoveredRemovedServers(org.jboss.remoting.network.NetworkNotification networkNotification)
Processes a Network Registry notification that indicates servers have gone offline.
|
abstract void |
discoveredUpdatedServers(org.jboss.remoting.network.NetworkNotification networkNotification)
Processes a Network Registry notification that indicates servers have been updated.
|
String |
getNetworkRegistryName()
Returns the JMX
ObjectName of the Network Registry that is used to perform auto-discovery. |
ObjectName |
getNetworkRegistryObjectName()
Returns the Network Registry Name as an
ObjectName. |
void |
handleNotification(Notification notification,
Object handback)
Receives notifications from the Network Registry indicating that servers are either coming on or offline.
|
void |
setNetworkRegistryName(String name)
Sets the name (in String form of a JMX
ObjectName) of the Network Registry that is used to perform
auto-discovery and begins listeningn to it. |
void |
stopService()
Unregisters this object as a notification listener on the Network Registry.
|
getLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister, preRegister, startServicepublic String getNetworkRegistryName()
AutoDiscoveryMBeanObjectName of the Network Registry that is used to perform auto-discovery.getNetworkRegistryName in interface AutoDiscoveryMBeanAutoDiscoveryMBean.getNetworkRegistryName()public void setNetworkRegistryName(String name)
AutoDiscoveryMBeanObjectName) of the Network Registry that is used to perform
auto-discovery and begins listeningn to it. The caller must know what it is doing - this must be the name the
Network Registry is registered as, otherwise, auto-discovery will fail.
Note that if this object is already listening to a Network Registry, it will be unregistered before setting the name.
setNetworkRegistryName in interface AutoDiscoveryMBeanname - name the registered name of the Network Registry MBeanAutoDiscoveryMBean.setNetworkRegistryName(String)public ObjectName getNetworkRegistryObjectName()
ObjectName.AutoDiscoveryMBean.getNetworkRegistryName()public void handleNotification(Notification notification, Object handback)
handleNotification in interface NotificationListenerNotificationListener.handleNotification(javax.management.Notification, java.lang.Object)public void stopService()
stopService in class CommandMBeanpublic abstract void discoveredNewServers(org.jboss.remoting.network.NetworkNotification networkNotification)
networkNotification - the notification that was received from the Network Registrypublic abstract void discoveredRemovedServers(org.jboss.remoting.network.NetworkNotification networkNotification)
networkNotification - the notification that was received from the Network Registrypublic abstract void discoveredUpdatedServers(org.jboss.remoting.network.NetworkNotification networkNotification)
networkNotification - the notification that was received from the Network Registrypublic abstract void discoveredChangedDomain(org.jboss.remoting.network.NetworkNotification networkNotification)
networkNotification - the notification that was received from the Network RegistryCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.