|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread netcom.log.FileReaderThread
Title: FileReaderThread This is a Thread used by the Logger to process LogSession requests from the GUI It has the ability to go into the file and make a resulting packet of information and LogEntries in the form of a LogMessage Copyright: Copyright (c) 2002 Company NETCOM
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
FileReaderThread(LoggerInterface the_interface)
Constructor method |
Method Summary | |
void |
addToQueue(LogMessage lm)
this method is called when the parent thread (Logger) hears that a LogMessage wants the file to be read for info to be sent back in the form of a LogMessage it adds a LogMessage so that to the queue so that it can wait to be processed |
void |
beginAgain()
public method called to allow the FileReaderThread to continue processing |
void |
finalize()
public method that makes the die_flag of this thread equal to true, and brings the thread out of its infinite loop to terminate it |
LogMessage |
getReturnMessage()
returns the LogMessage that has just been made by processing to the Logger class |
void |
halt()
public method that evokes the flag in the FileReaderThread to stop processing until all entries waiting to be written to file are processed first. |
void |
run()
run method inherent to threads keeps on running till die_flag is activated.. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileReaderThread(LoggerInterface the_interface)
the_interface
- takes an interface that implements LoggerInterface so that info about the parent can be accessedMethod Detail |
public void run()
public void addToQueue(LogMessage lm) throws Overflow
lm
- this is a LogMessage that holds the relevant information to process the GUI's request
Overflow
public LogMessage getReturnMessage()
public void halt()
public void beginAgain()
public void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |