|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.sandev.TaskHeap.ExternalSync.PollingThread
public class PollingThread
A polling thread to periodically check for ExternalPlans that need their time estimations updated.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected static int |
MAXPAGESIZE
The maximum query size used for paged query retrieval. |
protected ExternalSyncNode |
node
Back reference to our parent ExternalSyncNode. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
PollingThread(ExternalSyncNode node)
Ctor sets the required back reference to the node. |
|
| Method Summary | |
|---|---|
protected void |
clearCache()
Clear the cache, dump the current memory stats and email them to support. |
protected void |
doPeriodicTasks()
Do our periodic checking tasks. |
protected void |
error(java.lang.String text)
Dump out the given error text to the log. |
protected void |
info(java.lang.String text)
Dump out the given informational text to the log. |
protected boolean |
isUpToDate(ExternalPlan ep)
Return true if this plan has been checked recently enough, false otherwise. |
protected java.lang.String |
planstr(ExternalPlan ep)
Return a shorthand summary string of this external plan. |
void |
run()
Control loop for work to be done. |
protected void |
updateExternalPlans()
Fetch the external plans and update any that need it. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int MAXPAGESIZE
protected ExternalSyncNode node
| Constructor Detail |
|---|
public PollingThread(ExternalSyncNode node)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
protected void doPeriodicTasks()
throws org.sandev.basics.structs.SandException
org.sandev.basics.structs.SandExceptionprotected void clearCache()
protected void updateExternalPlans()
throws org.sandev.basics.structs.SandException
org.sandev.basics.structs.SandExceptionprotected boolean isUpToDate(ExternalPlan ep)
protected java.lang.String planstr(ExternalPlan ep)
protected void info(java.lang.String text)
protected void error(java.lang.String text)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||