|
||||||||
| 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.proman.PromiseManager
| Field Summary | |
protected static PtrArray |
AllRequests
|
protected boolean |
amInsideRequest
|
protected static PtrArray |
LoginRequests
|
protected IntegerVar |
myAcks
|
protected PrimPtrTable |
myActuals
|
protected DetectorEvent |
myDetectorEvents
|
protected ExceptionRecord |
myError
|
protected PtrArray |
myHandlers
|
protected IntegerVar |
myNextClientPromise
|
protected IntegerVar |
myNextServerPromise
|
protected Portal |
myPortal
|
protected XnReadStream |
myReadStream
|
protected PrimIndexTable |
myRefCounts
|
protected ByteShuffler |
myShuffler
|
protected XnWriteStream |
myWriteStream
|
protected static Array |
OverrideArray
|
protected static Dictionary |
OverrideMap
|
protected static PtrArray |
PromiseClasses
|
| 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 | |
PromiseManager(Portal portal,
java.lang.String clientID,
ByteShuffler shuffler)
|
|
| Method Summary | |
static int |
ackResponse()
|
int |
actualHashForEqual()
|
void |
actualWaive(IntegerVar prnum)
Release the promise argument. |
IntegerVar |
clientPromiseNumber()
|
static void |
delayCast(PromiseManager pm)
|
void |
destruct()
Classes should implement this message rather than a destructor. |
static int |
doneResponse()
|
static void |
equals(PromiseManager pm)
|
static int |
errorResponse()
|
static int |
excusedResponse()
|
static void |
export0(PromiseManager pm)
The zero argument version of PrimArray export. |
static void |
export1(PromiseManager pm)
The one argument version of PrimArray export. |
static void |
export2(PromiseManager pm)
The two argument version of PrimArray export. |
boolean |
fetchBooleanVar()
Optimize promise arguments that are expected to point at IntValues. |
Category |
fetchCategory()
|
Heaper |
fetchHeaper(Category cat)
|
int |
fetchInt32()
|
IntegerVar |
fetchIntegerVar()
Optimize promise arguments that are expected to point at IntValues. |
Heaper |
fetchNonNullHeaper(Category cat)
|
static void |
fillClassTable(PtrArray table)
|
static void |
fillDetector(PromiseManager pm)
Create the comm detector and add it. |
static int |
filledResponse()
|
static void |
fillRangeDetector(PromiseManager pm)
Create the comm detector and add it. |
static void |
fillRequestTable(PtrArray table)
Requests for class Promise |
static void |
fillRequestTable1(PtrArray table)
|
static void |
fillRequestTable2(PtrArray table)
|
static void |
fillRequestTable3(PtrArray table)
|
static void |
fillRequestTable4(PtrArray table)
|
static void |
fillRequestTable5(PtrArray table)
|
void |
flushAcks()
If any acks have accumulated, flush them. |
void |
force()
|
static void |
force(PromiseManager pm)
|
static void |
forceIt(PromiseManager pm)
|
static int |
grabbedResponse()
|
void |
handleRequest()
|
static int |
humberResponse()
|
static int |
humbersResponse()
|
static int |
IEEEResponse()
|
static int |
IEEEsResponse()
|
static void |
initTimeNonInherited()
|
static int |
intsResponse()
|
static void |
linkTimeNonInherited()
|
static Heaper |
make(Portal portal)
|
static void |
makeFloat(PromiseManager pm)
|
static void |
makeFloatArray(PromiseManager pm)
|
static void |
makeHumber(PromiseManager pm)
|
static void |
makeHumberArray(PromiseManager pm)
|
static void |
makeIntArray(PromiseManager pm)
|
static void |
makePtrArray(PromiseManager pm)
If any of the promises is an error, then pm won't return the PtrArray. |
static PtrArray |
makeRequestTable()
PromiseManager makeRequestTable. |
static void |
mapOverride(java.lang.Object sel,
java.lang.Object classx,
java.lang.Object argCount)
The table of classes and their selectors overridden by special handlers. |
boolean |
noErrors()
Return true if no errors have occurred in the current transaction. |
static void |
noRequest(PromiseManager pm)
For illegal requests. |
static void |
notLoggedInRequest(PromiseManager pm)
For illegal requests. |
static int |
problemNumber(java.lang.String prob)
The number that gets sent over the wire for the given problem name |
static void |
problems()
A ProblemList for all X++ BLASTs |
static int |
problemSource(java.lang.String file,
int line)
The number that gets sent over the wire for the given problem file/line number |
static void |
promiseHash(PromiseManager pm)
|
static int |
promisesResponse()
|
void |
queueDetectorEvent(DetectorEvent event)
Queue up the detector event. |
static int |
rangeFilledResponse()
|
XnReadStream |
readStream()
|
IntegerVar |
receiveIntegerVar()
A new representation that requires less shifting (eventually). |
int |
receiveRequestNumber()
Receive a request number. |
static int |
releasedResponse()
|
void |
respondBooleanVar(boolean val)
|
void |
respondError()
|
void |
respondHeaper(Heaper result)
|
void |
respondIntegerVar(IntegerVar val)
|
void |
respondProblem(Problem problem)
|
void |
respondVoid()
|
static int |
revisedResponse()
|
static void |
revisionDetector(PromiseManager pm)
Create the comm detector and add it. |
void |
sendHumbers(IntegerVarArray array,
int count,
int start)
Send a bunch of IntegerVars to the client. |
void |
sendIEEE32(float f)
|
void |
sendIEEE64(double f)
|
void |
sendIEEEs(PrimFloatArray array,
int count,
int start)
Send a bunch of fixed precision integers to the client. |
void |
sendIntegerVar(IntegerVar num)
Send a Dean style humber. |
void |
sendInts(PrimIntArray array,
int count,
int start)
Send a bunch of fixed precision integers to the client. |
void |
sendPromise(Heaper heaper)
Register heaper with the next Server promise number and increment it. |
void |
sendPromises(PtrArray array,
int count,
int start)
Register heaper with the next Server promise number and increment it. |
void |
sendResponse(int num)
Use a representation optimized for small positive numbers. |
IntegerVar |
serverPromiseNumber()
|
static void |
setCurrentAuthor(PromiseManager pm)
The one argument version of PrimArray export. |
static void |
setCurrentKeyMaster(PromiseManager pm)
Set the fluid. |
static void |
setInitialEditClub(PromiseManager pm)
Set the fluid. |
static void |
setInitialOwner(PromiseManager pm)
Set the fluid. |
static void |
setInitialReadClub(PromiseManager pm)
Set the fluid. |
static void |
setInitialSponsor(PromiseManager pm)
Set the fluid. |
static void |
shutdown(PromiseManager pm)
|
static void |
statusDetector(PromiseManager pm)
Create the comm detector and add it. |
static int |
terminatedResponse()
|
static void |
testKindOf(PromiseManager pm)
|
static void |
waitForConsequences(PromiseManager pm)
Create the comm detector and add it. |
static void |
waitForWrite(PromiseManager pm)
Create the comm detector and add it. |
void |
waive()
Release the promise argument. |
static void |
waive(PromiseManager pm)
|
static void |
waiveEm(PromiseManager pm)
|
static void |
waiveIt(PromiseManager pm)
|
void |
waiveMany()
Release a range of promise argument, given a start and a count. |
| 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 Portal myPortal
protected XnReadStream myReadStream
protected XnWriteStream myWriteStream
protected PrimPtrTable myActuals
protected PrimIndexTable myRefCounts
protected DetectorEvent myDetectorEvents
protected IntegerVar myNextClientPromise
protected IntegerVar myNextServerPromise
protected PtrArray myHandlers
protected IntegerVar myAcks
protected ExceptionRecord myError
protected boolean amInsideRequest
protected ByteShuffler myShuffler
protected static PtrArray AllRequests
protected static PtrArray LoginRequests
protected static Array OverrideArray
protected static Dictionary OverrideMap
protected static PtrArray PromiseClasses
| Constructor Detail |
public PromiseManager(Portal portal,
java.lang.String clientID,
ByteShuffler shuffler)
| Method Detail |
public void force()
public void handleRequest()
public boolean noErrors()
public void queueDetectorEvent(DetectorEvent event)
public void waive()
public void waiveMany()
public boolean fetchBooleanVar()
public Category fetchCategory()
public Heaper fetchHeaper(Category cat)
public int fetchInt32()
public IntegerVar fetchIntegerVar()
public Heaper fetchNonNullHeaper(Category cat)
public IntegerVar receiveIntegerVar()
public void respondBooleanVar(boolean val)
public void respondHeaper(Heaper result)
public void respondIntegerVar(IntegerVar val)
public void respondVoid()
public void sendIEEE32(float f)
public void sendIEEE64(double f)
public void sendIntegerVar(IntegerVar num)
public void sendPromise(Heaper heaper)
public void sendResponse(int num)
public void sendHumbers(IntegerVarArray array,
int count,
int start)
public void sendIEEEs(PrimFloatArray array,
int count,
int start)
public void sendInts(PrimIntArray array,
int count,
int start)
public void sendPromises(PtrArray array,
int count,
int start)
public void actualWaive(IntegerVar prnum)
public IntegerVar clientPromiseNumber()
public void flushAcks()
public XnReadStream readStream()
public int receiveRequestNumber()
public void respondError()
public void respondProblem(Problem problem)
public IntegerVar serverPromiseNumber()
public void destruct()
Heaper
destruct in class Heaperpublic int actualHashForEqual()
actualHashForEqual in class Heaperpublic static void problems()
Heaper
public static int ackResponse()
public static int doneResponse()
public static int errorResponse()
public static int excusedResponse()
public static int filledResponse()
public static int grabbedResponse()
public static int humberResponse()
public static int humbersResponse()
public static int IEEEResponse()
public static int IEEEsResponse()
public static int intsResponse()
public static int problemNumber(java.lang.String prob)
public static int problemSource(java.lang.String file,
int line)
public static int promisesResponse()
public static int rangeFilledResponse()
public static int releasedResponse()
public static int revisedResponse()
public static int terminatedResponse()
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
public static Heaper make(Portal portal)
public static void fillDetector(PromiseManager pm)
public static void fillRangeDetector(PromiseManager pm)
public static void revisionDetector(PromiseManager pm)
public static void statusDetector(PromiseManager pm)
public static void waitForConsequences(PromiseManager pm)
public static void waitForWrite(PromiseManager pm)
public static void delayCast(PromiseManager pm)
public static void equals(PromiseManager pm)
public static void export0(PromiseManager pm)
public static void export1(PromiseManager pm)
public static void export2(PromiseManager pm)
public static void forceIt(PromiseManager pm)
public static PtrArray makeRequestTable()
public static void noRequest(PromiseManager pm)
public static void notLoggedInRequest(PromiseManager pm)
public static void promiseHash(PromiseManager pm)
public static void setCurrentAuthor(PromiseManager pm)
public static void setCurrentKeyMaster(PromiseManager pm)
public static void setInitialEditClub(PromiseManager pm)
public static void setInitialOwner(PromiseManager pm)
public static void setInitialReadClub(PromiseManager pm)
public static void setInitialSponsor(PromiseManager pm)
public static void shutdown(PromiseManager pm)
public static void testKindOf(PromiseManager pm)
public static void waiveEm(PromiseManager pm)
public static void waiveIt(PromiseManager pm)
public static void makeFloat(PromiseManager pm)
public static void makeFloatArray(PromiseManager pm)
public static void makeHumber(PromiseManager pm)
public static void makeHumberArray(PromiseManager pm)
public static void makeIntArray(PromiseManager pm)
public static void makePtrArray(PromiseManager pm)
public static void mapOverride(java.lang.Object sel,
java.lang.Object classx,
java.lang.Object argCount)
public static void force(PromiseManager pm)
public static void waive(PromiseManager pm)
public static void fillClassTable(PtrArray table)
public static void fillRequestTable1(PtrArray table)
public static void fillRequestTable2(PtrArray table)
public static void fillRequestTable3(PtrArray table)
public static void fillRequestTable4(PtrArray table)
public static void fillRequestTable5(PtrArray table)
public static void fillRequestTable(PtrArray table)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||