|
||||||||
| 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.fm.support.Thunk
|
+--org.abora.gold.rcmain.ServerLoop
This is the superclass of all server loops. There is only one instance of this class in
any backend. Its execute method is the central backend processing loop. When an instance
is created, its creation method must register it with this class. At that time, all
listeners that have been created up to this point will be passed to the new server loop
instance. After this time, new listeners will be passed to the serverloop instance as
they register themselves with this class.
| Field Summary | |
protected MuSet |
myActiveChunks
|
protected Category |
myCategory
|
protected static ServerLoop |
MyServerLoopInstance
|
protected Stepper |
myStepper
|
protected boolean |
myTerminateFlag
|
protected static MuSet |
TheChunks
|
| 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 | |
ServerLoop()
|
|
ServerLoop(Rcvr receiver)
|
|
| Method Summary | |
MuSet |
activeChunks()
|
static MuSet |
chunks()
|
static void |
cleanupGarbage()
Heaper cleanupGarbage |
static ServerLoop |
currentServerLoop()
|
void |
deregisterChunk(ServerChunk aChunk)
subclasses should call me too |
void |
execute()
Execute the action defined by this thunk. |
static void |
initTimeNonInherited()
|
static void |
introduceChunk(ServerChunk aChunk)
|
static void |
linkTimeNonInherited()
|
void |
registerChunk(ServerChunk aChunk)
subclass must call this one first |
static void |
registerServerLoop(ServerLoop aLoop)
|
static void |
removeChunk(ServerChunk aChunk)
|
static ServerLoop |
removeServerLoop()
|
void |
restartServerLoop(Rcvr rcvr)
|
void |
scheduleChunks()
Schedule any chunks that have bnecome active. |
static void |
scheduleTermination()
In xpp, smainx.cxx defines this to set a flag requesting server termination after current request. |
void |
sendSelfTo(Xmtr xmtr)
do nothing |
void |
setTerminate(boolean toBoolean)
|
static void |
staticTimeNonInherited()
|
Stepper |
stepper()
|
void |
stepper(Stepper stepper)
|
boolean |
terminate()
|
| Methods inherited from class org.abora.gold.fm.support.Thunk |
actualHashForEqual, isEqual |
| 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 Category myCategory
protected MuSet myActiveChunks
protected boolean myTerminateFlag
protected Stepper myStepper
protected static ServerLoop MyServerLoopInstance
protected static MuSet TheChunks
| Constructor Detail |
public ServerLoop()
public ServerLoop(Rcvr receiver)
| Method Detail |
public MuSet activeChunks()
public void deregisterChunk(ServerChunk aChunk)
public void registerChunk(ServerChunk aChunk)
public void setTerminate(boolean toBoolean)
public Stepper stepper()
public void stepper(Stepper stepper)
public boolean terminate()
public void execute()
Thunk
execute in class Thunkpublic void scheduleChunks()
public void restartServerLoop(Rcvr rcvr)
public void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class Heaperpublic static void cleanupGarbage()
Heaper
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
public static void staticTimeNonInherited()
public static MuSet chunks()
public static ServerLoop currentServerLoop()
public static void introduceChunk(ServerChunk aChunk)
public static void registerServerLoop(ServerLoop aLoop)
public static void removeChunk(ServerChunk aChunk)
public static ServerLoop removeServerLoop()
public static void scheduleTermination()
Heaper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||