jgroup.relacs.gm
Class GregRegistryLayer

java.lang.Object
  extended by jgroup.relacs.gm.GregRegistryLayer
All Implemented Interfaces:
java.util.EventListener, jgroup.core.Layer, GregRegistryService, net.jini.lookup.ServiceIDListener

public class GregRegistryLayer
extends java.lang.Object
implements GregRegistryService, net.jini.lookup.ServiceIDListener

This layer is used to make the joining process into greg transparent, when creating an application.

Since:
Jgroup 2.2
Author:
Rohnny Moland

Nested Class Summary
 
Nested classes/interfaces inherited from interface jgroup.core.Layer
jgroup.core.Layer.FinalizeLayer
 
Method Summary
 void addListener(java.lang.Object listener)
           
static GregRegistryLayer getLayer(jgroup.core.ExternalGMIService egmis)
           
 void join(java.lang.String serviceName, java.lang.String[] groups)
          Joins the given server to the object group associated with the specfied name, into greg.
 void serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLayer

public static GregRegistryLayer getLayer(jgroup.core.ExternalGMIService egmis)

addListener

public void addListener(java.lang.Object listener)
Specified by:
addListener in interface jgroup.core.Layer

join

public void join(java.lang.String serviceName,
                 java.lang.String[] groups)
Description copied from interface: GregRegistryService
Joins the given server to the object group associated with the specfied name, into greg.

Specified by:
join in interface GregRegistryService
Parameters:
serviceName - The name associated with the object group
groups - The lookup groups to register with the service proxy

serviceIDNotify

public void serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
Specified by:
serviceIDNotify in interface net.jini.lookup.ServiceIDListener


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