Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mpisws.p2p.transport.peerreview.replay.record
Class RecordSM

    java.lang.Object
      java.lang.Thread
          rice.selector.SelectorManager
              org.mpisws.p2p.transport.peerreview.replay.record.RecordSM

All Implemented Interfaces:
  java.lang.Runnable, Destructable, Timer

    public class RecordSM

extends SelectorManager

This is the SelectorManager for PeerReview. The invariant here is that we use a simTime that isn't updated near as frequently as the real clock. This makes the events more discrete for replay.

Author:
  Jeff Hoye

Nested Class Summary

Nested classes/interfaces inherited from class java.lang.Thread
`java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler`

Field Summary

Fields inherited from class rice.selector.SelectorManager
`cancelledKeys, environment, instance, invocations, logger, modifyKeys, running, select, selector, seqCtr, seqLock, TIMEOUT, timerQueue, timeSource, useLoopListeners, wakeupTime`

Fields inherited from class java.lang.Thread
`MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY`

Constructor Summary
`RecordSM(java.lang.String instance, TimeSource realTime, DirectTimeSource simTime, LogManager log)`

Method Summary
`protected void` | `addTask(TimerTask task)`
`protected void` | `doInvocations()` Method which invokes all pending invocations.
`protected void` | `executeDueTasks()` Internal method which finds all due tasks and executes them.

Methods inherited from class rice.selector.SelectorManager
`addLoopObserver, cancel, destroy, doSelections, getEnvironment, getInvocation, getKey, getModifyKey, getNextTaskExecutionTime, getNumInvocations, getSelector, getTimer, invoke, isSelectorThread, modifyKey, notifyLoopListeners, onLoop, register, removeLoopObserver, removeTask, run, schedule, schedule, schedule, scheduleAtFixedRate, selectedKeys, setEnvironment, setLogLevel, 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`

Constructor Detail

### RecordSM

    public RecordSM(java.lang.String instance,
                    TimeSource realTime,
                    DirectTimeSource simTime,
                    LogManager log)

Method Detail

### addTask

    protected void addTask(TimerTask task)

  Overrides:
    `addTask` in class `SelectorManager`

### executeDueTasks

    protected void executeDueTasks()

  Description copied from class: `SelectorManager`
  Internal method which finds all due tasks and executes them.

  Overrides:
    `executeDueTasks` in class `SelectorManager`

### doInvocations

    protected void doInvocations()

  Description copied from class: `SelectorManager`
  Method which invokes all pending invocations. This method should *only* be called by the selector thread.

  Overrides:
    `doInvocations` in class `SelectorManager`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.