jgroup.relacs.gmi
Class JeriRegistryEntry

java.lang.Object
  extended by jgroup.relacs.gmi.JeriRegistryEntry
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, DependableRegistry.RegistryEntry

public class JeriRegistryEntry
extends java.lang.Object
implements DependableRegistry.RegistryEntry

The registry entry type required by the JeriEGMI layer.

Author:
Tor Arve Stangeland, Hein Meling
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE
           
 
Constructor Summary
JeriRegistryEntry()
          Create empty entry, for externalization
 
Method Summary
 java.lang.reflect.InvocationHandler createInvocationHandler(java.lang.String serviceName, java.util.Iterator entries)
          Returns an invocation handler of the given RegistryEntry type, for the given serviceName.
 MemberId getMember()
          Returns the member.
 java.lang.String getService()
          Returns the service.
 java.lang.String getType()
          Returns the entry type.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

JeriRegistryEntry

public JeriRegistryEntry()
Create empty entry, for externalization

Method Detail

getMember

public MemberId getMember()
Returns the member.


getService

public java.lang.String getService()
Returns the service.


getType

public java.lang.String getType()
Description copied from interface: DependableRegistry.RegistryEntry
Returns the entry type. An DependableRegistry implementation must check the returned value to see if it can handle it.

Specified by:
getType in interface DependableRegistry.RegistryEntry
Returns:
a java.lang.String representing the entry type.

createInvocationHandler

public java.lang.reflect.InvocationHandler createInvocationHandler(java.lang.String serviceName,
                                                                   java.util.Iterator entries)
                                                            throws java.rmi.RemoteException
Description copied from interface: DependableRegistry.RegistryEntry
Returns an invocation handler of the given RegistryEntry type, for the given serviceName. The handler will include all entries enumerated from the provided iterator.

Specified by:
createInvocationHandler in interface DependableRegistry.RegistryEntry
Throws:
java.rmi.RemoteException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


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