edu.cmu.cs.able.probebus.test
Class FakeLatencyProbe

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--edu.cmu.cs.able.probebus.test.FakeLatencyProbe
All Implemented Interfaces:
java.lang.Runnable

public class FakeLatencyProbe
extends java.lang.Thread


Field Summary
protected  IProbeEventFactory eventFactory
           
static java.lang.String FAKE_PROBE_CONFIGURATION_NAME
           
static java.lang.String FAKE_SYSTEM_ID
           
protected  IProbeEvent latencyEvent
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FakeLatencyProbe(IProbeEventFactory ef)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 void sendLatencyEvents(int delay)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

eventFactory

protected IProbeEventFactory eventFactory

latencyEvent

protected IProbeEvent latencyEvent

FAKE_PROBE_CONFIGURATION_NAME

public static final java.lang.String FAKE_PROBE_CONFIGURATION_NAME

FAKE_SYSTEM_ID

public static final java.lang.String FAKE_SYSTEM_ID
Constructor Detail

FakeLatencyProbe

public FakeLatencyProbe(IProbeEventFactory ef)
Method Detail

sendLatencyEvents

public void sendLatencyEvents(int delay)
Parameters:
delay - is the number of milliseconds between events

run

public void run()
Overrides:
run in class java.lang.Thread

main

public static void main(java.lang.String[] args)