Package adams.core.io.dirchanged
Class Size
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,DirChangeMonitor,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class Size extends AbstractDirChangeMonitor
Checks whether the file sizes have changed.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<File,Long>m_Sizesthe map for file / size.-
Fields inherited from class adams.core.io.dirchanged.AbstractDirChangeMonitor
m_Dir, m_Initialized, m_LastFiles, m_RegExp
-
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 Size()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckChange(File dir)Performs the actual check whether the dir has changed.protected StringdoInitialize(File dir)Performs the actual initialization of the monitor with the specified dir.protected StringdoUpdate(File dir)Performs the actual updating of the monitor with the specified dir.StringglobalInfo()Returns a string describing the object.protected voidreset()Resets the scheme.-
Methods inherited from class adams.core.io.dirchanged.AbstractDirChangeMonitor
checkContentChanged, checkFile, defineOptions, getMonitoredDir, getQuickInfo, getRegExp, hasChanged, initialize, isInitialized, listFiles, regExpTipText, setRegExp, update
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
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
-
-
-
-
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
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classAbstractDirChangeMonitor
-
doInitialize
protected String doInitialize(File dir)
Performs the actual initialization of the monitor with the specified dir.- Specified by:
doInitializein classAbstractDirChangeMonitor- Parameters:
dir- the dir to initialize with- Returns:
- null if successful, otherwise error message
-
checkChange
protected boolean checkChange(File dir)
Performs the actual check whether the dir has changed.- Specified by:
checkChangein classAbstractDirChangeMonitor- Parameters:
dir- the dir to check- Returns:
- true if changed
-
doUpdate
protected String doUpdate(File dir)
Performs the actual updating of the monitor with the specified dir.- Specified by:
doUpdatein classAbstractDirChangeMonitor- Parameters:
dir- the dir to update with- Returns:
- null if successful, otherwise error message
-
-