|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.log4jfugue.SimpleDataGetter
org.log4jfugue.FileDataGetter
public class FileDataGetter
Gets data to process from an existing file. Uses a LogDelay class to read log4j timestamp information in the file so as to pace the reading of the file to match how it was created.
| 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 java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
FileDataGetter()
|
|
| Method Summary | |
|---|---|
void |
run()
The main data gathering loop, this reads data from the data file as it is available. |
void |
setFileDelaySpeed(float speed)
Not yet implemented, this method will allow control of the speed of the file playback, allowing for example playing back at double the recorded speed |
void |
setFileName(java.lang.String fileName)
Injected by Spring DI this sets the name of file to get the log data from |
void |
setLogDelay(org.log4jfugue.LogDelay logDelay)
|
void |
swappedIndex()
The player has swapped index, see if we're read more than 1 second worth of data and if so wait to let the player catch up |
| Methods inherited from class org.log4jfugue.SimpleDataGetter |
|---|
setReader, setWriter |
| 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 |
| Constructor Detail |
|---|
public FileDataGetter()
| Method Detail |
|---|
public void setFileName(java.lang.String fileName)
fileName - public void setFileDelaySpeed(float speed)
public void setLogDelay(org.log4jfugue.LogDelay logDelay)
public void swappedIndex()
swappedIndex in class SimpleDataGetterpublic void run()
run in interface java.lang.Runnablerun in class SimpleDataGetter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||