| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.p2p.multiring.MultiringIdFactory
| Nested Class Summary | |
protected  class | 
MultiringIdFactory.MultiringEntrySet
DESCRIBE THE CLASS  | 
protected  class | 
MultiringIdFactory.MultiringKeySet
DESCRIBE THE CLASS  | 
protected  class | 
MultiringIdFactory.MultiringMapEntry
DESCRIBE THE CLASS  | 
protected  class | 
MultiringIdFactory.MultiringSortedMap
DESCRIBE THE CLASS  | 
| Field Summary | |
protected  IdFactory | 
factory
The underlying IdFactory  | 
protected  Id | 
ringId
The multiring node supporting this endpoint  | 
| Constructor Summary | |
MultiringIdFactory(Id ringId,
                   IdFactory factory)
Constructor  | 
|
| Method Summary | |
 Id | 
buildId(byte[] material)
Builds a protocol-specific Id given the source data.  | 
 Id | 
buildId(int[] material)
Builds a protocol-specific Id given the source data.  | 
 Id | 
buildId(java.lang.String string)
Builds a protocol-specific Id by using the hash of the given string as source data.  | 
 Id.Distance | 
buildIdDistance(byte[] material)
Builds a protocol-specific Id.Distance given the source data.  | 
 Id | 
buildIdFromToString(char[] chars,
                    int offset,
                    int length)
Builds an Id by converting the given toString() output back to an Id.  | 
 Id | 
buildIdFromToString(java.lang.String string)
Builds an Id by converting the given toString() output back to an Id.  | 
 IdRange | 
buildIdRange(Id cw,
             Id ccw)
Creates an IdRange given the CW and CCW ids.  | 
 IdRange | 
buildIdRangeFromPrefix(java.lang.String string)
Builds an IdRange based on a prefix.  | 
 IdSet | 
buildIdSet()
Creates an empty IdSet.  | 
 IdSet | 
buildIdSet(java.util.SortedMap map)
Creates an empty IdSet.  | 
 NodeHandleSet | 
buildNodeHandleSet()
Creates an empty NodeHandleSet.  | 
 Id | 
buildNormalId(byte[] material)
Builds a protocol-specific Id given the source data.  | 
 Id | 
buildNormalId(java.lang.String material)
Builds a protocol-specific Id given the source data.  | 
 Id | 
buildRandomId(java.util.Random rng)
Builds a random protocol-specific Id.  | 
 RingId | 
buildRingId(Id ringId,
            byte[] material)
Builds a ringId by using the provided Id and ringIds.  | 
 RingId | 
buildRingId(Id ringId,
            Id id)
Builds a ringId by using the provided Id and ringIds.  | 
protected static int | 
find(char[] chars,
     char value)
DESCRIBE THE METHOD  | 
 int | 
getIdToStringLength()
Returns the length a Id.toString should be.  | 
 Id | 
getRingId()
Method which returns the underlying Id which represents the local node's ring  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected Id ringId
protected IdFactory factory
| Constructor Detail | 
public MultiringIdFactory(Id ringId,
                          IdFactory factory)
factory - the underlying factory to useringId - DESCRIBE THE PARAMETER| Method Detail | 
public Id getRingId()
public int getIdToStringLength()
getIdToStringLength in interface IdFactory
public RingId buildRingId(Id ringId,
                          byte[] material)
ringId - The id to use as the ringidmaterial - The id material to use
public RingId buildRingId(Id ringId,
                          Id id)
ringId - The id to use as the ringidid - The id to use as the id
public Id buildNormalId(byte[] material)
material - The material to use
public Id buildNormalId(java.lang.String material)
material - The material to use
public Id buildId(byte[] material)
buildId in interface IdFactorymaterial - The material to use
public Id buildId(int[] material)
buildId in interface IdFactorymaterial - The material to use
public Id buildId(java.lang.String string)
buildId in interface IdFactorystring - The string to use as source data
public Id buildRandomId(java.util.Random rng)
buildRandomId in interface IdFactoryrng - A random number generator
public Id buildIdFromToString(java.lang.String string)
buildIdFromToString in interface IdFactorystring - The toString() representation of an Id
public Id buildIdFromToString(char[] chars,
                              int offset,
                              int length)
buildIdFromToString in interface IdFactorychars - The character arrayoffset - The offset to start reading atlength - The length to read
public IdRange buildIdRangeFromPrefix(java.lang.String string)
buildIdRangeFromPrefix in interface IdFactorystring - The toString() representation of an Id
public Id.Distance buildIdDistance(byte[] material)
buildIdDistance in interface IdFactorymaterial - The material to use
public IdRange buildIdRange(Id cw,
                            Id ccw)
buildIdRange in interface IdFactorycw - The clockwise Idccw - The counterclockwise Id
public IdSet buildIdSet()
buildIdSet in interface IdFactorypublic IdSet buildIdSet(java.util.SortedMap map)
buildIdSet in interface IdFactorymap - DESCRIBE THE PARAMETER
public NodeHandleSet buildNodeHandleSet()
buildNodeHandleSet in interface IdFactory
protected static int find(char[] chars,
                          char value)
chars - DESCRIBE THE PARAMETERvalue - DESCRIBE THE PARAMETER
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||