|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
gps.util.LogServer
public class LogServer
log server handles concurrent log request, and runs in a seperate thread
| Nested Class Summary | |
|---|---|
class |
LogServer.HandlerRecordPair
a pare of handler and record. |
| 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 | |
|---|---|
LogServer()
dummy constructor |
|
| Method Summary | |
|---|---|
static LogServer |
getInstance()
get singleton instance |
void |
halt()
hanlt log server |
void |
log(AsyncFileHandler h,
java.util.logging.LogRecord r)
asynchornous file handler call this function to write log record to the log server. |
void |
run()
run a seperate thread to write each log record into the related file in order of the arrival time. |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogServer()
| Method Detail |
|---|
public static LogServer getInstance()
public void log(AsyncFileHandler h,
java.util.logging.LogRecord r)
h - asynchornous file handlerr - record to be loggedpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void halt()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||