Package adams.core.logging.updater
Class MultiUpdater
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.core.logging.updater.MultiUpdater
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,LoggingLevelUpdater,OptionHandler,SizeOfHandler,Serializable
public class MultiUpdater extends AbstractOptionHandler implements LoggingLevelUpdater
Applies the specified updaters one by one.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LoggingLevelUpdater[]m_Updatersthe base updaters to apply.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MultiUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanUpdateLoggingLevel(Object obj)Checks whether the logging level can be updated.voiddefineOptions()Adds options to the internal list of options.LoggingLevelUpdater[]getUpdaters()Returns the base updaters to apply one by one.StringglobalInfo()Returns a string describing the object.voidsetUpdaters(LoggingLevelUpdater[] value)Sets the base updaters to apply one by one.booleanupdateLoggingLevel(Object obj)Updates the logging level.StringupdatersTipText()Returns the tip text for this property.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Updaters
protected LoggingLevelUpdater[] m_Updaters
the base updaters to apply.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setUpdaters
public void setUpdaters(LoggingLevelUpdater[] value)
Sets the base updaters to apply one by one.- Parameters:
value- the base updaters
-
getUpdaters
public LoggingLevelUpdater[] getUpdaters()
Returns the base updaters to apply one by one.- Returns:
- the base updaters
-
updatersTipText
public String updatersTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
canUpdateLoggingLevel
public boolean canUpdateLoggingLevel(Object obj)
Checks whether the logging level can be updated.- Specified by:
canUpdateLoggingLevelin interfaceLoggingLevelUpdater- Parameters:
obj- the object to check- Returns:
- true if can be updated
-
updateLoggingLevel
public boolean updateLoggingLevel(Object obj)
Updates the logging level.- Specified by:
updateLoggingLevelin interfaceLoggingLevelUpdater- Parameters:
obj- the object to update- Returns:
- true if level was updated
-
-