|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
org.esa.beam.util.logging.CacheHandler
public class CacheHandler
This class is a special message handle that caches all logging messages in memory for later use. It is needed in most beam alpplications, when the logging starts before the user defined logging files are selected.
| Constructor Summary | |
|---|---|
CacheHandler()
Constructs the object with default parameter. |
|
| Method Summary | |
|---|---|
void |
close()
Close the Handler and free all associated resources. |
void |
flush()
Removes all records from the vector. |
void |
publish(LogRecord record)
Publish a LogRecord. |
void |
transferRecords(Handler target)
Transfers all logging records chached to the handler passed in. |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheHandler()
| Method Detail |
|---|
public void publish(LogRecord record)
publish in class Handlerrecord - description of the logging eventpublic void flush()
flush in class Handler
public void close()
throws SecurityException
close in class HandlerSecurityException - if a security manager exists and if the caller does not have
LoggingPermission("control").public void transferRecords(Handler target)
target - the target handler to publish the cache content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||