|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Logging
The interface denoting logging capabilities. Any logger should run as an
independent thread therefore it extends the Runnable interface.
It also acts as an event listener and consequentally extends the
EventListener marker interface. To provide some capabilities
to assign properties to a logger, this interface extends the
PropertySupplying interface. Note that concrete implementations
should provide a constructor that uses a Properties object as a
single argument.
Loggers are used in the main STELLA control unit, the
MasterMind. Herein they are constructed and started as
individual threads. All Caster objects found in
MasterMind are registered to the Logger with
registerCaster(stella.Caster). Derigstering from a Caster is done with
deregisterCaster(stella.Caster).
No further care is taken of any logger, it must be
able to conduct its functionality entirely independent.
Note that loggers that implement the ExitCleaning or
CancelRunnable interface are orderly shut down in the master
mind on system exit.
| Field Summary |
|---|
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Method Summary | |
|---|---|
boolean |
deregisterCaster(Caster caster)
Removes the logger from the listener list of the stated caster. |
Thread |
getLoggerThread(ThreadGroup group)
Returns the thread the logger wants to run in. |
boolean |
registerCaster(Caster caster)
Test if the logger wants to register himself as a event listener to the specified caster. |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Method Detail |
|---|
boolean registerCaster(Caster caster)
boolean deregisterCaster(Caster caster)
Thread getLoggerThread(ThreadGroup group)
group - The thread group the logger must run in.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||