public interface Logging extends EventListener, PropertySupplying
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.
CONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
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.
|
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, stringPropertiesboolean registerCaster(Caster caster)
boolean deregisterCaster(Caster caster)
Thread getLoggerThread(ThreadGroup group)
group - The thread group the logger must run in.