|
||||||||
| 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.CBlockTrackingPacker
| Field Summary | |
protected DiskManager |
myPacker
|
protected CBlockTracker |
myTracker
|
| 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 | |
CBlockTrackingPacker(DiskManager subPacker)
|
|
| Method Summary | |
void |
beginConsistent(IntegerVar dirty)
This is called before entering consistent block. |
boolean |
checkTracker()
|
void |
commitState(boolean flag)
Used by ResetCommit bomb |
void |
consistentBlockAt(java.lang.String fileName,
int lineNo)
This is called after beginConsistent, but before entering a consistent block, for debugging purposes. |
void |
consistentCount()
|
void |
destroyFlock(FlockInfo info)
Queue destroy of the given flock. |
void |
destruct()
Classes should implement this message rather than a destructor. |
void |
diskUpdate(FlockInfo info)
The flock described by info is Dirty!! On the next commit, rewrite it to the disk. |
void |
dismantleFlock(FlockInfo info)
The flock designated by info has completed all dismantling actions; throw it off the disk. |
void |
dropFlock(int token)
The flock identified by token is being removed from memory. |
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)
Remember that there are no more persistent pointers to the shepherd described by info. |
Turtle |
getInitialFlock()
Return the starting object for the entire backend. |
boolean |
insideCommit()
|
boolean |
isFake()
|
static Heaper |
make(DiskManager subPacker)
|
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)
purge all shepherds that are currently clean, not locked, not dirty, and purgeable. |
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 described by info. |
void |
storeAlmostNewShepherd(Abraham shep)
Shep has been created, but is not consistent yet. |
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. |
| Methods inherited from class org.abora.gold.snarf.DiskManager |
actualHashForEqual, bomb, cleanupGarbage, consistent, consistent, consistent, 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 DiskManager myPacker
protected CBlockTracker myTracker
| Constructor Detail |
public CBlockTrackingPacker(DiskManager subPacker)
| Method Detail |
public void beginConsistent(IntegerVar dirty)
DiskManager
beginConsistent in class DiskManager
public void consistentBlockAt(java.lang.String fileName,
int lineNo)
DiskManager
consistentBlockAt in class DiskManagerpublic void endConsistent(IntegerVar dirty)
DiskManager
endConsistent in class DiskManagerpublic boolean insideCommit()
insideCommit in class DiskManagerpublic void purge()
DiskManager
purge in class DiskManagerpublic void purgeClean(boolean noneLocked)
DiskManager
purgeClean in class DiskManagerpublic void destroyFlock(FlockInfo info)
destroyFlock in class DiskManagerpublic void diskUpdate(FlockInfo info)
DiskManager
diskUpdate in class DiskManagerpublic void dismantleFlock(FlockInfo info)
dismantleFlock in class DiskManagerpublic void dropFlock(int token)
DiskManager
dropFlock in class DiskManagerpublic void forgetFlock(FlockInfo info)
DiskManager
forgetFlock in class DiskManagerpublic Turtle getInitialFlock()
DiskManager
getInitialFlock in class DiskManagerpublic int nextHashForEqual()
DiskManager
nextHashForEqual in class DiskManagerpublic void rememberFlock(FlockInfo info)
DiskManager
rememberFlock in class DiskManagerpublic void storeAlmostNewShepherd(Abraham shep)
DiskManager
storeAlmostNewShepherd in class DiskManager
public void storeInitialFlock(Abraham turtle,
XcvrMaker protocol,
Cookbook cookbook)
DiskManager
storeInitialFlock in class DiskManagerpublic void storeNewFlock(Abraham shep)
DiskManager
storeNewFlock in class DiskManager
public Abraham fetchCanonical(int hash,
SnarfID snarfID,
int index)
DiskManager
fetchCanonical in class DiskManagerpublic void makeReal(FlockInfo info)
DiskManager
makeReal in class DiskManager
public void registerStub(Abraham shep,
SnarfID snarfID,
int index)
DiskManager
registerStub in class DiskManagerpublic void consistentCount()
public void destruct()
Heaper
destruct in class DiskManagerpublic boolean isFake()
isFake in class DiskManagerpublic boolean checkTracker()
public void commitState(boolean flag)
public static Heaper make(DiskManager subPacker)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||