|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread rice.selector.SelectorManager rice.selector.ProfileSelector
public class ProfileSelector
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
java.lang.String |
lastTaskClass
|
long |
lastTaskHash
|
java.lang.String |
lastTaskToString
|
java.lang.String |
lastTaskType
|
static boolean |
recordStats
|
static boolean |
useHeartbeat
|
Fields inherited from class rice.selector.SelectorManager |
---|
cancelledKeys, instance, invocations, logger, modifyKeys, running, select, selector, TIMEOUT, timerQueue, timeSource, useLoopListeners, wakeupTime |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ProfileSelector(java.lang.String instance,
TimeSource timeSource,
LogManager log)
|
Method Summary | |
---|---|
void |
addStat(java.lang.String s,
long time)
|
protected void |
doInvocations()
Method which invokes all pending invocations. |
protected void |
doInvocations2()
|
protected void |
doSelections()
|
void |
invoke(java.lang.Runnable d)
This method schedules a runnable task to be done by the selector thread during the next select() call. |
protected void |
onLoop()
This method is to be implemented by a subclass to do some task each loop. |
void |
printStats()
|
Methods inherited from class rice.selector.SelectorManager |
---|
addLoopObserver, cancel, destroy, executeDueTasks, getInvocation, getKey, getModifyKey, getNextTaskExecutionTime, getNumInvocations, getSelector, getTimer, isSelectorThread, modifyKey, notifyLoopListeners, register, removeLoopObserver, run, schedule, schedule, schedule, scheduleAtFixedRate, selectedKeys, setEnvironment, setSelect, useLoopListeners, wakeup |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, 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 |
---|
public static boolean useHeartbeat
public static boolean recordStats
public java.lang.String lastTaskType
public java.lang.String lastTaskClass
public java.lang.String lastTaskToString
public long lastTaskHash
Constructor Detail |
---|
public ProfileSelector(java.lang.String instance, TimeSource timeSource, LogManager log)
Method Detail |
---|
protected void onLoop()
SelectorManager
onLoop
in class SelectorManager
public void invoke(java.lang.Runnable d)
SelectorManager
invoke
in class SelectorManager
d
- The runnable task to invokepublic void addStat(java.lang.String s, long time)
public void printStats()
protected void doSelections() throws java.io.IOException
doSelections
in class SelectorManager
java.io.IOException
protected void doInvocations()
doInvocations
in class SelectorManager
protected void doInvocations2()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |