|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.spaces.basic.CoordinateSpace
|
+--org.abora.gold.spaces.unordered.IDSpace
A space of IDs, which can generate globally unique IDs.
Implementation note:
myBackend - the identifier of the Server which generated this space. If NULL, then it was
generated by the current Server (unless mySpaceNumber is -1, in which case it is the
single global IDSpace shared by all Servers.
mySpaceNumber - identifies which space this is. If -1, then it is the global ID space, and
myBackend must be NULL.
| Field Summary | |
protected Sequence |
myBackend
|
protected Counter |
myNewIDCounter
|
protected IntegerVar |
mySpaceNumber
|
| Fields inherited from class org.abora.gold.spaces.basic.CoordinateSpace |
myAscending, myDescending, myEmptyRegion, myFullRegion, myIdentityDsp |
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
IDSpace(Sequence backend,
IntegerVar number,
Counter counter)
|
|
| Method Summary | |
int |
actualHashForEqual()
|
Sequence |
backend()
Essential. |
UInt8Array |
export()
Essential. |
Sequence |
fetchBackend()
|
IDSpace |
fetchIDSpace()
NULL if this is the global IDSpace, self otherwise |
void |
finishCreation()
|
static IDSpace |
global()
Return the global ID space. |
Sequence |
identifier()
A Sequence uniquely identifying this IDSpace, so that FeServer::current ()->oldIDSpace (this->identifier ()) ->isEqual (this) |
static FilterSpace |
iDFilterSpace()
The coordinate space of filters on IDRegions. |
IDRegion |
iDsFromServer(Sequence identifier)
Essential. |
static IDSpace |
importx(PrimIntArray data)
Essential. |
static void |
info()
{UInt8Array CLIENT} export {IDRegion CLIENT} iDsFromServer: identifier {Sequence} {ID CLIENT} newID {IDRegion CLIENT} newIDs: count {IntegerVar} |
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
static Heaper |
make(Rcvr rcvr)
|
static Heaper |
make(Sequence identifier,
IntegerVar number)
|
static Heaper |
make(Sequence identifier,
IntegerVar number,
Counter counter)
|
ID |
newID()
Essential. |
IDRegion |
newIDs(IntegerVar count)
A region containing a finite number of globally unique IDs. |
ID |
oldID(Sequence identifier)
Recreate an ID from its identifier. |
IDRegion |
oldIDs(Sequence backend,
IntegerRegion numbers)
Recreate a region of IDs from information that was stored outside the Server |
static Filter |
openIDFilter()
|
void |
printOn(java.io.PrintWriter oo)
|
void |
sendIDSpaceTo(Xmtr xmtr)
|
void |
sendSelfTo(Xmtr xmtr)
do nothing |
IntegerVar |
spaceNumber()
Essential. |
static IDSpace |
unique()
Essential. |
| Methods inherited from class org.abora.gold.spaces.basic.CoordinateSpace |
ascending, completeMapping, descending, emptyRegion, fetchAscending, fetchDescending, finishCreate, fullRegion, getAscending, getDescending, identityDsp, identityMapping, importMapping, importOrderSpec, importRegion, mapping, mapping, orderSpec, region, verify |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Sequence myBackend
protected IntegerVar mySpaceNumber
protected Counter myNewIDCounter
| Constructor Detail |
public IDSpace(Sequence backend,
IntegerVar number,
Counter counter)
| Method Detail |
public IDRegion iDsFromServer(Sequence identifier)
public ID newID()
public IDRegion newIDs(IntegerVar count)
public Sequence backend()
public Sequence fetchBackend()
public IDSpace fetchIDSpace()
public IDRegion oldIDs(Sequence backend,
IntegerRegion numbers)
public IntegerVar spaceNumber()
public void finishCreation()
public int actualHashForEqual()
actualHashForEqual in class CoordinateSpacepublic boolean isEqual(Heaper other)
Heaper
isEqual in class CoordinateSpacepublic void printOn(java.io.PrintWriter oo)
printOn in class Heaperpublic UInt8Array export()
public Sequence identifier()
public void sendIDSpaceTo(Xmtr xmtr)
public ID oldID(Sequence identifier)
public void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class Heaperpublic static IDSpace global()
public static IDSpace importx(PrimIntArray data)
public static IDSpace unique()
public static Heaper make(Sequence identifier,
IntegerVar number)
public static Heaper make(Sequence identifier,
IntegerVar number,
Counter counter)
public static FilterSpace iDFilterSpace()
public static Filter openIDFilter()
public static Heaper make(Rcvr rcvr)
public static void info()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||