|
||||||||
| 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.FlockLocation
|
+--org.abora.gold.snarf.FlockInfo
Contains all the information the packer needs to know about the flock on disk (except
forwarder stuff). The packer knows about forwarders by having several FlockInfo objects
for the same flock. We should consider having a separate class for forward information
that does not contain the flags and the oldSize.
myOldSize - this is the size of the flock on disk as of the last commit. If this is zero,
it is uninitialized. This is used to refitting without bringing in the snarf for this
flock.
myFlags - keeps track of whether the receive is a new flock (isn''t on disk yet), is
forgotten, is in the process is fchanging its forggten state (isChanging), and is Update
(contents have changed).
| Field Summary | |
protected int |
myFlags
|
protected byte |
myFlockHash
|
protected int |
myOldSize
|
protected int |
myToken
|
protected static PrimPtrTable |
TheFlockCategoryTable
|
| Fields inherited from class org.abora.gold.snarf.FlockLocation |
myIndex, mySnarfID |
| 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 | |
FlockInfo(Abraham shep,
SnarfID snarfID,
int index,
int flags,
int size)
|
|
| Method Summary | |
void |
clearContentsDirty()
Reset my contentsDirty flag. |
void |
commitFlags()
A write to the disk has happened. |
static int |
contentsDirty()
|
static int |
destroyed()
|
static int |
dismantled()
|
Abraham |
fetchShepherd()
|
int |
flags()
|
byte |
flockHash()
|
static FlockInfo |
forgotten(Abraham shep,
SnarfID snarfID,
int index)
|
static int |
forgottenMask()
|
static int |
forgottenStateDirty()
|
void |
forward(int index)
As a freshly forwarded flock, I'll be treated as new for a while. |
static int |
forwarded()
|
static FlockInfo |
getInfo(int index)
|
Abraham |
getShepherd()
|
boolean |
isContentsDirty()
Return true if my shepherd has changed and informed the SnarfPacker. |
boolean |
isDestroyed()
Return true if our shepherd has received destroy |
boolean |
isDirty()
Return true if anything about my flock is changing (including if the flock is new). |
boolean |
isDismantled()
Return true if our shepherd has been dismantled |
boolean |
isForgotten()
Return true if my Shepherd's new state is it should be forgotten. |
boolean |
isForgottenStateDirty()
Return true if the shepherd I describe is changing between being forgotten and being remembered. |
boolean |
isForwarded()
Return true if my shepherd has been forwarded. |
boolean |
isNew()
Return true if the associated flock is new. |
static int |
isNewMask()
|
static Heaper |
make(Abraham shep,
IntegerVar index)
Make a ShepherdLocation for a new shepherd. |
static Heaper |
make(FlockInfo info,
SnarfID snarfID,
int index)
Make a flockInfo to a new location for the same shepherd. |
boolean |
markContentsDirty()
Set my contentsDirty flag. |
void |
markDestroyed()
Set my shepNull flag. |
void |
markDismantled()
Set my Dismantled flag. |
boolean |
markForgotten()
Set my Forgotten flag. |
boolean |
markRemembered()
Clear my Forgotten flag. |
void |
markShepNull()
Set my shepNull flag. |
int |
oldSize()
|
void |
printOn(java.io.PrintWriter oo)
|
void |
registerInfo()
Register this info as the best known informatino about the flock. |
static FlockInfo |
remembered(Abraham shep,
SnarfID snarfID,
int index)
|
static void |
removeInfo(int token)
|
void |
setSize(int size)
|
static int |
shepNullInPersistent()
|
static void |
staticTimeNonInherited()
|
static boolean |
testContentsDirty(FlockInfo info)
|
static boolean |
testForgotten(FlockInfo info)
|
int |
token()
|
boolean |
wasForgotten()
Return true if my shepherd was forgotten after the last commit. |
boolean |
wasShepNullInPersistent()
Return true if our shepherd pointer was NULL in makePersistent |
| Methods inherited from class org.abora.gold.snarf.FlockLocation |
actualHashForEqual, index, index, isEqual, make, snarfID |
| 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 byte myFlockHash
protected int myToken
protected int myFlags
protected int myOldSize
protected static PrimPtrTable TheFlockCategoryTable
| Constructor Detail |
public FlockInfo(Abraham shep,
SnarfID snarfID,
int index,
int flags,
int size)
| Method Detail |
public boolean isContentsDirty()
public boolean isDestroyed()
public boolean isDirty()
public boolean isDismantled()
public boolean isForgotten()
public boolean isForgottenStateDirty()
public boolean isForwarded()
public boolean isNew()
public boolean wasForgotten()
public boolean wasShepNullInPersistent()
public void clearContentsDirty()
public void commitFlags()
public int flags()
public byte flockHash()
public void forward(int index)
public boolean markContentsDirty()
public void markDestroyed()
public void markDismantled()
public boolean markForgotten()
public boolean markRemembered()
public void markShepNull()
public int oldSize()
public void setSize(int size)
public Abraham fetchShepherd()
public Abraham getShepherd()
public void registerInfo()
public int token()
public void printOn(java.io.PrintWriter oo)
printOn in class FlockLocation
public static FlockInfo forgotten(Abraham shep,
SnarfID snarfID,
int index)
public static Heaper make(Abraham shep,
IntegerVar index)
public static Heaper make(FlockInfo info,
SnarfID snarfID,
int index)
public static FlockInfo remembered(Abraham shep,
SnarfID snarfID,
int index)
public static boolean testContentsDirty(FlockInfo info)
public static boolean testForgotten(FlockInfo info)
public static int contentsDirty()
public static int destroyed()
public static int dismantled()
public static int forgottenMask()
public static int forgottenStateDirty()
public static int forwarded()
public static int isNewMask()
public static int shepNullInPersistent()
public static void staticTimeNonInherited()
public static FlockInfo getInfo(int index)
public static void removeInfo(int token)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||