org.abora.gold.snarf
Class TestFlockInfo

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.snarf.FlockLocation
                    |
                    +--org.abora.gold.snarf.FlockInfo
                          |
                          +--org.abora.gold.snarf.TestFlockInfo

public class TestFlockInfo
extends FlockInfo

Used in conjunction with the TestPacker. Keeps a hash of the last contents that were
written to disk.


Field Summary
protected  UInt8Array myOldContents
           
protected  int myOldHash
           
protected  int myPreviousHash
           
 
Fields inherited from class org.abora.gold.snarf.FlockInfo
myFlags, myFlockHash, myOldSize, myToken, 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
TestFlockInfo(Abraham shep, SnarfID snarfID, int index, int flags)
           
TestFlockInfo(Abraham shep, SnarfID snarfID, int index, int flags, int size)
           
 
Method Summary
static FlockInfo forgotten(Abraham shep, SnarfID snarfID, int index)
          index = UInt32Zero assert: 'Should have index 0'.
static Heaper make(Abraham shep, IntegerVar index)
          index = UInt32Zero assert: 'Should have index 0'.
static Heaper make(FlockInfo info, SnarfID snarfID, int index)
          index = UInt32Zero assert: 'Should have index 0'.
static FlockInfo remembered(Abraham shep, SnarfID snarfID, int index)
           
 void setContents(UInt8Array bits)
           
 boolean updateContentsInfo()
          Update the contents hash and other information from the current state of the shepherd.
Return true if the HASH only has changed since the last time.
 
Methods inherited from class org.abora.gold.snarf.FlockInfo
clearContentsDirty, commitFlags, contentsDirty, destroyed, dismantled, fetchShepherd, flags, flockHash, forgottenMask, forgottenStateDirty, forward, forwarded, getInfo, getShepherd, isContentsDirty, isDestroyed, isDirty, isDismantled, isForgotten, isForgottenStateDirty, isForwarded, isNew, isNewMask, markContentsDirty, markDestroyed, markDismantled, markForgotten, markRemembered, markShepNull, oldSize, printOn, registerInfo, removeInfo, setSize, shepNullInPersistent, staticTimeNonInherited, testContentsDirty, testForgotten, token, wasForgotten, wasShepNullInPersistent
 
Methods inherited from class org.abora.gold.snarf.FlockLocation
actualHashForEqual, index, index, isEqual, make, snarfID
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, addMethodAttributeToInOf, addPackage, addPackageCategory, allClientProtocolOn, argumentTypesFor, arrow, blast, blast, BLAST, cachePromiseNameTable, cachePromiseNameTableIn, canYouBecome, cast, cleanPromiseClasses, cleanupGarbage, clientClassesDo, clientFunctionsOn, clientMethodsOn, clientProtocol, clientProtocolDo, clientProtocolOn, clientProtocolOn, collectibleClasses, compare, compileClientSubclasses, compileConstantPromiseMethods, compileCreateFromRcvr, compileEQ, compileGeneratedClassMethod, compileGeneratedMethod, compileHook, compilePromise, compilePromiseDefaultMethods, compilePromiseFluidDeclarations, compilePromiseHandlers, compilePromiseMethods, compileRequestCreateMsgInArguments, compileRequestEvaluateMsgInReturningArguments, compileRPCSpecialistEvaluateMsgForReturningArguments, compileSendSelfTo, compileSendSelfToSendHook, compileStubbleMethods, compileSubclassStubbleMethods, computeMangle, computePreorder, constantTypeValue, convert, convertCopyDeclarations, convertDeferredDeclarations, convertProxyDeclarations, convertSubclassCopyDeclarations, convertSubclassDeferredDeclarations, convertSubclassProxyDeclarations, copyReferencesToType, create, create, create, create, create, create, create, create, create, create, createRequestClassArguments, definesProxyMethods, delete, deref, destroy, destruct, destructor, enum, enumFlags, equals, exportName, fetchAttribute, fetchPackage, fetchSuperCategory, fileOutClientProtocol, findCategory, findSenderAndReceiverMethods, findTailInto, flushPromiseNameTable, foo, freezeClientClasses, freezeClientProtocol, freezeStProtocol, frozenClasses, garbageCollect, garbageCollectFrom, gcOpportunity, gcOpportunity, generatedCategory, generatePromiseNames, getCategory, getOrMakePackage, getSuperCategory, handlerSignaturesFrom, hash, hashForEqual, hasProxyMethods, info_clientClasses, info_clientSideClasses, info_promiseClasses, info_stProtocol, inGC, initializedClasses, initializingClasses, initPackages, initStringHashSBoxes, inspectPieces, instanceSize, IntegerVar, isByProxy, isConstructed, isDestructed, isEqual, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, isUnlocked, linkTimeNonInherited, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, sendSelfTo, serverNameFor, setGC, signal, signals, smalltalkSelector, stClientProtocol, stubbleSelectorTokenReturnsArguments, subclassNonCopyVariables, takeOop, togglePromiseName, togglePromiseOfParse, unimplemented, unmangle, verifyFreeze, wipeStubble
 
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

myOldHash

protected int myOldHash

myPreviousHash

protected int myPreviousHash

myOldContents

protected UInt8Array myOldContents
Constructor Detail

TestFlockInfo

public TestFlockInfo(Abraham shep,
                     SnarfID snarfID,
                     int index,
                     int flags)

TestFlockInfo

public TestFlockInfo(Abraham shep,
                     SnarfID snarfID,
                     int index,
                     int flags,
                     int size)
Method Detail

setContents

public void setContents(UInt8Array bits)

updateContentsInfo

public boolean updateContentsInfo()
Update the contents hash and other information from the current state of the shepherd.
Return true if the HASH only has changed since the last time.


forgotten

public static FlockInfo forgotten(Abraham shep,
                                  SnarfID snarfID,
                                  int index)
index = UInt32Zero assert: 'Should have index 0'.


make

public static Heaper make(Abraham shep,
                          IntegerVar index)
index = UInt32Zero assert: 'Should have index 0'.


make

public static Heaper make(FlockInfo info,
                          SnarfID snarfID,
                          int index)
index = UInt32Zero assert: 'Should have index 0'.


remembered

public static FlockInfo remembered(Abraham shep,
                                   SnarfID snarfID,
                                   int index)


Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.