|
||||||||
| 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.Abraham
| Field Summary | |
protected static IdentityDictionary |
DismantleStatistics
|
protected int |
myHash
|
protected FlockInfo |
myInfo
|
protected int |
myToken
|
protected static TokenSource |
TheTokenSource
|
| 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 | |
Abraham()
New Shepherds must be stored to disk. |
|
Abraham(int hash)
This is for shepherds that are becoming from another shepherd. |
|
Abraham(int hash,
FlockInfo info)
This is for ShepherdStubs that use the hash and forgetFlag from the object for which they are stubbing. |
|
Abraham(Rcvr receiver)
|
|
Abraham(ShepFlag ignored,
int hash,
FlockInfo info)
This is the root of the automatically generated constructors for creating Stubs. |
|
| Method Summary | |
int |
actualHashForEqual()
|
void |
becomeStub()
Replace the shepherd in memory with a type compatible stub instance that shares the same hash and flockInfo. |
static void |
cleanupGarbage()
Heaper cleanupGarbage |
int |
contentsHash()
A hash of the contents of this flock |
void |
destroy()
Tell the packer I want to go away. |
void |
destruct()
Called when an object is leaving RAM. |
void |
diskUpdate()
The receiver has changed and so must eventually be rewritten to disk. |
void |
dismantle()
Disconnect me from the universe and throw me off the disk. For GC safety, we keep a strongptr to ourself -- is this still necessary? |
static void |
dismantleStatistics()
|
FlockInfo |
fetchInfo()
Return the object that describes the state of this flock wrt disk. |
static Abraham |
fetchShepherd(int token)
|
void |
flockInfo(FlockInfo info)
Set the object that knows where this flock is on disk. |
void |
forget()
Record on disk that there are no more persistent pointers to the receiver. |
FlockInfo |
getInfo()
Return the object that describes the state of this flock wrt disk. |
Category |
getShepherdStubCategory()
Return the category of stubs used for the receiver. |
static void |
initTimeNonInherited()
|
static boolean |
isConstructed(Heaper obj)
|
static boolean |
isDestructed(Heaper obj)
|
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isKindOf(Category cat)
Optimized for Abraham because xcvrs use it so much. |
boolean |
isPurgeable()
Return false only if the object cannot be flushed to disk. |
boolean |
isShepherd()
This should be replaced with an isKindOf: that first checks to see if you're asking about Abraham, and then otherwise possible faults. |
boolean |
isStub()
Distinguish between stubs and shepherds. |
boolean |
isUnlocked()
All manually generated subclasses are locked. |
static void |
linkTimeNonInherited()
|
void |
newShepherd()
The receiver has just been created. |
void |
remember()
Record that there are now persistent pointers to the receiver. |
void |
restartAbraham()
|
void |
restartAbraham(Rcvr trans)
|
static void |
returnToken(int token)
|
void |
sendSelfTo(Xmtr xmtr)
do nothing |
static void |
staticTimeNonInherited()
|
int |
token()
Return the object that describes the state of this flock wrt disk. |
| 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 int myHash
protected int myToken
protected FlockInfo myInfo
protected static IdentityDictionary DismantleStatistics
protected static TokenSource TheTokenSource
| Constructor Detail |
public Abraham()
public Abraham(ShepFlag ignored,
int hash,
FlockInfo info)
public Abraham(int hash)
public Abraham(int hash,
FlockInfo info)
public Abraham(Rcvr receiver)
| Method Detail |
public void becomeStub()
public void destruct()
destruct in class Heaperpublic void dismantle()
public void diskUpdate()
public void forget()
public void newShepherd()
public void remember()
public void destroy()
destroy in class Heaperpublic int actualHashForEqual()
actualHashForEqual in class Heaperpublic int contentsHash()
public boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic boolean isPurgeable()
public boolean isShepherd()
public boolean isStub()
public boolean isUnlocked()
isUnlocked in class Heaperpublic FlockInfo fetchInfo()
public void flockInfo(FlockInfo info)
public FlockInfo getInfo()
public Category getShepherdStubCategory()
public int token()
public void restartAbraham(Rcvr trans)
public boolean isKindOf(Category cat)
public void restartAbraham()
public void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class Heaperpublic static void dismantleStatistics()
public static void cleanupGarbage()
Heaper
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
public static void staticTimeNonInherited()
public static boolean isConstructed(Heaper obj)
public static boolean isDestructed(Heaper obj)
public static Abraham fetchShepherd(int token)
public static void returnToken(int token)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||