org.rhq.enterprise.server.core.comm
Class ServerAutoDiscoveryListener

java.lang.Object
  extended by org.rhq.enterprise.server.core.comm.ServerAutoDiscoveryListener
All Implemented Interfaces:
AutoDiscoveryListener

public class ServerAutoDiscoveryListener
extends Object
implements AutoDiscoveryListener

Listens for new agents coming on and going offline.

Author:
John Mazzitelli

Constructor Summary
ServerAutoDiscoveryListener(KnownAgents agents)
          Constructor for ServerAutoDiscoveryListener.
 
Method Summary
 void serverOffline(org.jboss.remoting.InvokerLocator locator)
          This removes the given locator URL from the list of known agents.
 void serverOnline(org.jboss.remoting.InvokerLocator locator)
          This adds the new agent's locator URL to the list of known agents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAutoDiscoveryListener

public ServerAutoDiscoveryListener(KnownAgents agents)
Constructor for ServerAutoDiscoveryListener.

Parameters:
agents - the list that will contain all known agents' remote endpoints
Method Detail

serverOnline

public void serverOnline(org.jboss.remoting.InvokerLocator locator)
This adds the new agent's locator URL to the list of known agents.

Specified by:
serverOnline in interface AutoDiscoveryListener
See Also:
AutoDiscoveryListener.serverOnline(InvokerLocator)

serverOffline

public void serverOffline(org.jboss.remoting.InvokerLocator locator)
This removes the given locator URL from the list of known agents.

Specified by:
serverOffline in interface AutoDiscoveryListener
See Also:
AutoDiscoveryListener.serverOffline(InvokerLocator)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.