|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.server.CommandMBean
org.rhq.enterprise.communications.command.server.discovery.AutoDiscovery
public abstract class AutoDiscovery
Provides a mechanism to integrate with JBoss/Remoting's Network Registry in order to detect new servers coming on and offline.
| Constructor Summary | |
|---|---|
AutoDiscovery()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.rhq.enterprise.communications.command.server.CommandMBean |
|---|
getLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister, preRegister, startService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoDiscovery()
| Method Detail |
|---|
public 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 Registry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||