|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
gps.util.AsyncFileHandler
public class AsyncFileHandler
Asynchronous file handler, asynchronously handles log record. The purpose of this class is to intercept publish and close. Log records are published to a log server. The regular publish and close become AsynchPublish and AsynchClose.
| Constructor Summary | |
|---|---|
AsyncFileHandler()
constructor, simply call super class |
|
AsyncFileHandler(java.lang.String pattern)
constructor, simply call super class |
|
AsyncFileHandler(java.lang.String pattern,
boolean append)
constructor, simply call super class |
|
AsyncFileHandler(java.lang.String pattern,
int limit,
int count)
constructor, simply call super class |
|
AsyncFileHandler(java.lang.String pattern,
int limit,
int count,
boolean append)
constructor, simply call super class |
|
| Method Summary | |
|---|---|
void |
close()
Asynchronous close. |
boolean |
isClosed()
Asynchronous isClose. |
void |
publish(java.util.logging.LogRecord record)
Asynchronous publish. |
void |
syncClose()
call regular close |
void |
syncPublish(java.util.logging.LogRecord record)
call regular publish |
| Methods inherited from class java.util.logging.StreamHandler |
|---|
flush, isLoggable, setEncoding |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncFileHandler()
throws java.io.IOException,
java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public AsyncFileHandler(java.lang.String pattern)
throws java.io.IOException,
java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public AsyncFileHandler(java.lang.String pattern,
boolean append)
throws java.io.IOException,
java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public AsyncFileHandler(java.lang.String pattern,
int limit,
int count)
throws java.io.IOException,
java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public AsyncFileHandler(java.lang.String pattern,
int limit,
int count,
boolean append)
throws java.io.IOException,
java.lang.SecurityException
java.io.IOException
java.lang.SecurityException| Method Detail |
|---|
public void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.FileHandlerrecord - description of the log event. A null record is
silently ignored and is not publishedpublic void syncPublish(java.util.logging.LogRecord record)
record - logrecord to be published
public void close()
throws java.lang.SecurityException
close in class java.util.logging.FileHandlerjava.lang.SecurityException
public void syncClose()
throws java.lang.SecurityException
java.lang.SecurityExceptionpublic boolean isClosed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||