|
||||||||
| 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.snarf.DiskManager
|
+--org.abora.gold.snarf.FakePacker
Most of the disk operations are just no-ops.
| Field Summary | |
protected byte |
myCount
|
protected Turtle |
myTurtle
|
| Fields inherited from class org.abora.gold.snarf.DiskManager |
myFlockInfoTable, myFlockTable, myFluidSpace, SecretEmulsion |
| 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 | |
FakePacker()
|
|
| Method Summary | |
void |
beginConsistent(IntegerVar dirty)
This is called before entering consistent block. |
void |
destroyAbandoned()
|
void |
destroyFlock(FlockInfo info)
Queue destroy of the given flock. |
void |
diskUpdate(FlockInfo info)
The flock identified by token is Dirty!! On some later commit, write it to the disk. |
void |
dismantleFlock(FlockInfo info)
Tehre are no local data-structures. |
void |
dropFlock(int token)
No prob. |
void |
endConsistent(IntegerVar dirty)
This is called after exiting a consistent block. |
Abraham |
fetchCanonical(int hash,
SnarfID snarfID,
int index)
If something is already imaged at that location, then return it. |
void |
forgetFlock(FlockInfo info)
Yeah. |
Turtle |
getInitialFlock()
Return the starting object for the entire backend. |
boolean |
insideCommit()
|
boolean |
isFake()
|
static Heaper |
make()
|
void |
makeReal(FlockInfo info)
Retrieve from the disk the flock at index within the specified snarf. |
int |
nextHashForEqual()
Shepherds use a sequence number for their hash. |
void |
purge()
Flush everything out to disk and remove all purgeable imaged objects from memory. |
void |
purgeClean(boolean noneLocked)
No shepherds are clean, so no-op. |
void |
registerStub(Abraham shep,
SnarfID snarfID,
int index)
Called to register a newly created stub (by the diskSpecialist) in the internal tables. |
void |
rememberFlock(FlockInfo info)
There are now persistent pointers to the shepherd represented by token. |
void |
storeAlmostNewShepherd(Abraham shep)
Do nothing |
void |
storeInitialFlock(Abraham turtle,
XcvrMaker protocol,
Cookbook cookbook)
A turtle just got created!! Remember it as the initial flock. |
void |
storeNewFlock(Abraham shep)
Shep just got created!! On some later commit, assign it to a snarf and write it to the disk. |
void |
storeTurtle(Turtle turtle)
|
| Methods inherited from class org.abora.gold.snarf.DiskManager |
actualHashForEqual, bomb, cleanupGarbage, consistent, consistent, consistent, consistentBlockAt, destruct, emulsion, exitTimeNonInherited, flockInfoTable, flockInfoTable, flockTable, flockTable, fluidSpace, fluidSpace, initializeDisk, insistent, insistent, insistent, linkTimeNonInherited, make, makeConsistent, makeConsistentBegin, makeConsistentEnd, setHashCounter, staticTimeNonInherited |
| 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 Turtle myTurtle
protected byte myCount
| Constructor Detail |
public FakePacker()
| Method Detail |
public void beginConsistent(IntegerVar dirty)
DiskManager
beginConsistent in class DiskManagerpublic void endConsistent(IntegerVar dirty)
DiskManager
endConsistent in class DiskManagerpublic boolean insideCommit()
insideCommit in class DiskManagerpublic void purge()
purge in class DiskManagerpublic void purgeClean(boolean noneLocked)
purgeClean in class DiskManagerpublic void destroyFlock(FlockInfo info)
destroyFlock in class DiskManagerpublic void diskUpdate(FlockInfo info)
diskUpdate in class DiskManagerpublic void dismantleFlock(FlockInfo info)
dismantleFlock in class DiskManagerpublic void dropFlock(int token)
dropFlock in class DiskManagerpublic void forgetFlock(FlockInfo info)
forgetFlock in class DiskManagerpublic Turtle getInitialFlock()
DiskManager
getInitialFlock in class DiskManagerpublic int nextHashForEqual()
nextHashForEqual in class DiskManagerpublic void rememberFlock(FlockInfo info)
rememberFlock in class DiskManagerpublic void storeAlmostNewShepherd(Abraham shep)
storeAlmostNewShepherd in class DiskManager
public void storeInitialFlock(Abraham turtle,
XcvrMaker protocol,
Cookbook cookbook)
DiskManager
storeInitialFlock in class DiskManagerpublic void storeNewFlock(Abraham shep)
storeNewFlock in class DiskManagerpublic void storeTurtle(Turtle turtle)
public Abraham fetchCanonical(int hash,
SnarfID snarfID,
int index)
fetchCanonical in class DiskManagerpublic void makeReal(FlockInfo info)
makeReal in class DiskManager
public void registerStub(Abraham shep,
SnarfID snarfID,
int index)
DiskManager
registerStub in class DiskManagerpublic boolean isFake()
isFake in class DiskManagerpublic void destroyAbandoned()
public static Heaper make()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||