jgroup.core.registry
Interface LookupService

All Superinterfaces:
Layer

public interface LookupService
extends Layer

Service interface for performing lookups from a replicated client group. This service must be used for client groups to ensure that proxies downloaded to client group members are correctly initialized with the important group manager information required to suppress duplicates from the clients at the server-side. That is, the proxy needs access to the TimestampService.

Author:
Hein Meling

Nested Class Summary
 
Nested classes/interfaces inherited from interface jgroup.core.Layer
Layer.FinalizeLayer
 
Method Summary
 java.rmi.Remote lookup(java.lang.String name)
          Returns a proxy for the remote object group associated with the specified name.
 java.lang.Object lookup(java.lang.String name, java.lang.Class clas)
          Returns a proxy for the remote object group associated with the specified name and class in greg.
 
Methods inherited from interface jgroup.core.Layer
addListener
 

Method Detail

lookup

java.rmi.Remote lookup(java.lang.String name)
                       throws java.rmi.RemoteException,
                              JgroupException,
                              java.rmi.NotBoundException,
                              java.rmi.AccessException
Returns a proxy for the remote object group associated with the specified name.

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.
JgroupException - If the dependable registry could not be found.
java.rmi.NotBoundException - If there is no object group with this name in the registry/reggie.
java.rmi.AccessException - If this operation is not permitted.

lookup

java.lang.Object lookup(java.lang.String name,
                        java.lang.Class clas)
                        throws java.io.IOException
Returns a proxy for the remote object group associated with the specified name and class in greg.

Parameters:
name - The name associated with the remote object group.
clas - The class associated with the remote object group.
Returns:
A proxy for the remote object group.
Throws:
java.io.IOException - If an error occured during lookup.


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