Package ucar.unidata.util
Class PollingInfo
java.lang.Object
ucar.unidata.util.PollingInfo
- All Implemented Interfaces:
Cloneable
Class PollingInfo Holds the state that controls the FilePoller
- Version:
- $Revision: 1.24 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intpolling modestatic final intpolling modestatic final intpolling modestatic final intpolling modestatic final String[]polling modestatic final int[]polling mode -
Constructor Summary
ConstructorsConstructorDescriptionConstructorPollingInfo(boolean isActive) ConstructorPollingInfo(long interval, boolean isActive) ConstructorPollingInfo(String filePath, long interval, String filePattern, boolean isActive) ConstructorPollingInfo(String filePath, long interval, String filePattern, boolean isActive, boolean isHiddenOk) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean_more_void_more_cloneMe()Clone meboolean_more_boolean_more__more_longGet the DateRange property._more_getFile()Get the filePath property.intGet the FileCount property._more_getFileCountWidget(int[] values) _more_Get the FilePaths property._more_Get the filePattern property.getFiles()_more_booleanGet the ForFiles property._more_longGet the interval property._more_booleanGet the isActive property.booleanGet the isHiddenOk property.intgetMode()Get the Mode property.getName()Get the Name property._more__more_voidgetPropertyComponents(List comps, boolean includeName, boolean includeFileCount) _more_boolean_more_booleanhasFiles()_more_booleanhasName()_more_boolean_more_static void_more_voidsetDateRange(long value) Set the DateRange property.void_more_voidsetFileCount(int value) Set the FileCount property.voidsetFilePath(String newValue) Set the filePath property.voidsetFilePaths(List value) Set the FilePaths property.voidsetFilePattern(String newValue) Set the filePattern property.voidsetForFiles(boolean value) Set the ForFiles property.voidsetInterval(long newValue) Set the interval property.voidsetIsActive(boolean newValue) Set the isActive property.voidsetIsHiddenOk(boolean newValue) Set the isHiddenOk property.voidsetMode(int value) Set the Mode property.voidSet the Name property.toString()Get a String representation of this object
-
Field Details
-
MODE_NONEWFILES
public static final int MODE_NONEWFILESpolling mode- See Also:
-
MODE_COUNT
public static final int MODE_COUNTpolling mode- See Also:
-
MODE_RELDATERANGE
public static final int MODE_RELDATERANGEpolling mode- See Also:
-
MODE_ABSDATERANGE
public static final int MODE_ABSDATERANGEpolling mode- See Also:
-
MODES
public static final int[] MODESpolling mode -
MODELABELS
polling mode
-
-
Constructor Details
-
PollingInfo
public PollingInfo()Constructor -
PollingInfo
public PollingInfo(boolean isActive) Constructor- Parameters:
isActive- The isActive parameter
-
PollingInfo
public PollingInfo(long interval, boolean isActive) Constructor- Parameters:
interval- The interval parameterisActive- The isActive parameter
-
PollingInfo
Constructor- Parameters:
filePath- The filePath parameterinterval- The interval parameterfilePattern- The filePattern parameterisActive- The isActive parameter
-
PollingInfo
public PollingInfo(String filePath, long interval, String filePattern, boolean isActive, boolean isHiddenOk) Constructor- Parameters:
filePath- The filePath parameterinterval- The interval parameterfilePattern- The filePattern parameterisActive- The isActive parameterisHiddenOk- poll on hidden files as well
-
-
Method Details
-
cloneMe
Clone me- Returns:
- Cloned version of this
-
setDontLookForNewFiles
public void setDontLookForNewFiles()_more_ -
doILookForNewFiles
public boolean doILookForNewFiles()_more_- Returns:
- _more_
-
getPropertyComponents
_more_- Parameters:
comps- _more_includeName- _more_includeFileCount- _more_
-
checkPattern
public void checkPattern()_more_ -
getHiddenWidget
_more_- Returns:
- _more_
-
getActiveWidget
_more_- Returns:
- _more_
-
getPatternWidget
_more_- Returns:
- _more_
-
getIntervalWidget
_more_- Returns:
- _more_
-
getFilePathWidget
_more_- Returns:
- _more_
-
getNameWidget
_more_- Returns:
- _more_
-
getDateRangeWidget
_more_- Returns:
- _more_
-
getFileCountWidget
_more_- Returns:
- _more_
-
getFileCountWidget
_more_- Parameters:
values- _more_- Returns:
- _more_
-
isADirectory
public boolean isADirectory()_more_- Returns:
- _more_
-
hasFiles
public boolean hasFiles()_more_- Returns:
- _more_
-
applyProperties
public boolean applyProperties()_more_- Returns:
- _more_
-
getFiles
_more_- Returns:
- _more_
-
getInterval
public long getInterval()Get the interval property.- Returns:
- The interval property.
-
setInterval
public void setInterval(long newValue) Set the interval property.- Parameters:
newValue- The new vaue for the interval property.
-
getFile
Get the filePath property.- Returns:
- The filePath property.
-
setFilePath
Set the filePath property.- Parameters:
newValue- The new vaue for the filePath property. deprecated Use setFilePaths
-
getFilePattern
Get the filePattern property.- Returns:
- The filePattern property.
-
hasName
public boolean hasName()_more_- Returns:
- _more_
-
hasFilePattern
public boolean hasFilePattern()_more_- Returns:
- _more_
-
setFilePattern
Set the filePattern property.- Parameters:
newValue- The new vaue for the filePattern property.
-
getIsActive
public boolean getIsActive()Get the isActive property.- Returns:
- The isActive property.
-
setIsActive
public void setIsActive(boolean newValue) Set the isActive property.- Parameters:
newValue- The new vaue for the isActive property.
-
getIsHiddenOk
public boolean getIsHiddenOk()Get the isHiddenOk property.- Returns:
- The isHiddenOk property.
-
setIsHiddenOk
public void setIsHiddenOk(boolean newValue) Set the isHiddenOk property.- Parameters:
newValue- The new vaue for the isHiddenOk property.
-
toString
Get a String representation of this object -
equals
_more_ -
setForFiles
public void setForFiles(boolean value) Set the ForFiles property.- Parameters:
value- The new value for ForFiles
-
getForFiles
public boolean getForFiles()Get the ForFiles property.- Returns:
- The ForFiles
-
setMode
public void setMode(int value) Set the Mode property.- Parameters:
value- The new value for Mode
-
getMode
public int getMode()Get the Mode property.- Returns:
- The Mode
-
setFileCount
public void setFileCount(int value) Set the FileCount property.- Parameters:
value- The new value for FileCount
-
getFileCount
public int getFileCount()Get the FileCount property.- Returns:
- The FileCount
-
setDateRange
public void setDateRange(long value) Set the DateRange property.- Parameters:
value- The new value for DateRange
-
getDateRange
public long getDateRange()Get the DateRange property.- Returns:
- The DateRange
-
main
_more_- Parameters:
args- _more_
-
setName
Set the Name property.- Parameters:
value- The new value for Name
-
getName
Get the Name property.- Returns:
- The Name
-
setFilePaths
Set the FilePaths property.- Parameters:
value- The new value for FilePaths
-
getFilePaths
Get the FilePaths property.- Returns:
- The FilePaths
-