org.oddjob.jmx
Class RemoteRegistryCrawler

java.lang.Object
  extended by org.oddjob.jmx.RemoteRegistryCrawler

public class RemoteRegistryCrawler
extends Object


Constructor Summary
RemoteRegistryCrawler(BeanDirectory registry)
           
 
Method Summary
 Address addressFor(Object component)
           
 Object objectForAddress(Address address)
          Find the object from the possible addresses that could identify it.
 BeanDirectory registryForServer(ServerId serverId)
          Helper function to convert a path for a different server into the path to that servers client from this registery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRegistryCrawler

public RemoteRegistryCrawler(BeanDirectory registry)
Method Detail

registryForServer

public BeanDirectory registryForServer(ServerId serverId)
Helper function to convert a path for a different server into the path to that servers client from this registery.

Parameters:
selected - The current path being built up in this recursive call.
serverId - The server id for this current path.
Returns:
The path relative to the other server or null if the other server is not accessible.

objectForAddress

public Object objectForAddress(Address address)
                        throws ArooaPropertyException
Find the object from the possible addresses that could identify it. If there are several paths to the object (which can happen if the original object is accessible via several servers), the object with the shortest path is returned.

Parameters:
addresses - The possible addresses of the component.
Returns:
The component or null if none of the addresses are accessible.
Throws:
ArooaPropertyException

addressFor

public Address addressFor(Object component)