jgroup.core.registry
Interface LookupRegistry

All Superinterfaces:
ExternalGMIListener, java.rmi.Remote
All Known Subinterfaces:
DependableRegistry
All Known Implementing Classes:
RegistryImpl

public interface LookupRegistry
extends ExternalGMIListener

Interface used by clients to lookup proxy in registry.

Author:
Rohnny Moland

Method Summary
 java.lang.String[] list()
          Returns an array containing the remote object group names registered in the registry.
 java.rmi.Remote lookup(java.lang.String name)
          Returns a proxy for the remote object group associated with the specified name in the registry.
 

Method Detail

lookup

java.rmi.Remote lookup(java.lang.String name)
                       throws java.rmi.RemoteException,
                              java.rmi.NotBoundException,
                              java.rmi.AccessException
Returns a proxy for the remote object group associated with the specified name in the registry. When LeaseLayer is used, it checks to see if any servers have expired leasetimes.

Parameters:
name - the name associated with the remote object group
Returns:
a proxy for the remote object group
Throws:
java.rmi.RemoteException - If remote operation failed.
java.rmi.NotBoundException - if there is no object group with this name in the registry.
java.rmi.AccessException - If this operation is not permitted.

list

java.lang.String[] list()
                        throws java.rmi.RemoteException,
                               java.rmi.AccessException
Returns an array containing the remote object group names registered in the registry. When LeaseLayer is used, it checks to see if any servers have expired leasetimes.

Throws:
java.rmi.RemoteException - If remote operation failed.
java.rmi.AccessException - If this operation is not permitted.


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.