Class PollingInfo

java.lang.Object
ucar.unidata.util.PollingInfo
All Implemented Interfaces:
Cloneable

public class PollingInfo extends Object implements Cloneable
Class PollingInfo Holds the state that controls the FilePoller
Version:
$Revision: 1.24 $
Author:
IDV Development Team
  • Field Details

    • MODE_NONEWFILES

      public static final int MODE_NONEWFILES
      polling mode
      See Also:
    • MODE_COUNT

      public static final int MODE_COUNT
      polling mode
      See Also:
    • MODE_RELDATERANGE

      public static final int MODE_RELDATERANGE
      polling mode
      See Also:
    • MODE_ABSDATERANGE

      public static final int MODE_ABSDATERANGE
      polling mode
      See Also:
    • MODES

      public static final int[] MODES
      polling mode
    • MODELABELS

      public static final String[] 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 parameter
      isActive - The isActive parameter
    • PollingInfo

      public PollingInfo(String filePath, long interval, String filePattern, boolean isActive)
      Constructor
      Parameters:
      filePath - The filePath parameter
      interval - The interval parameter
      filePattern - The filePattern parameter
      isActive - The isActive parameter
    • PollingInfo

      public PollingInfo(String filePath, long interval, String filePattern, boolean isActive, boolean isHiddenOk)
      Constructor
      Parameters:
      filePath - The filePath parameter
      interval - The interval parameter
      filePattern - The filePattern parameter
      isActive - The isActive parameter
      isHiddenOk - poll on hidden files as well
  • Method Details

    • cloneMe

      public PollingInfo cloneMe()
      Clone me
      Returns:
      Cloned version of this
    • setDontLookForNewFiles

      public void setDontLookForNewFiles()
      _more_
    • doILookForNewFiles

      public boolean doILookForNewFiles()
      _more_
      Returns:
      _more_
    • getPropertyComponents

      public void getPropertyComponents(List comps, boolean includeName, boolean includeFileCount)
      _more_
      Parameters:
      comps - _more_
      includeName - _more_
      includeFileCount - _more_
    • checkPattern

      public void checkPattern()
      _more_
    • getHiddenWidget

      public JCheckBox getHiddenWidget()
      _more_
      Returns:
      _more_
    • getActiveWidget

      public JCheckBox getActiveWidget()
      _more_
      Returns:
      _more_
    • getPatternWidget

      public JTextField getPatternWidget()
      _more_
      Returns:
      _more_
    • getIntervalWidget

      public JTextField getIntervalWidget()
      _more_
      Returns:
      _more_
    • getFilePathWidget

      public JTextField getFilePathWidget()
      _more_
      Returns:
      _more_
    • getNameWidget

      public JTextField getNameWidget()
      _more_
      Returns:
      _more_
    • getDateRangeWidget

      public JTextField getDateRangeWidget()
      _more_
      Returns:
      _more_
    • getFileCountWidget

      public JComboBox getFileCountWidget()
      _more_
      Returns:
      _more_
    • getFileCountWidget

      public JComboBox getFileCountWidget(int[] values)
      _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

      public List 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

      public String getFile()
      Get the filePath property.
      Returns:
      The filePath property.
    • setFilePath

      public void setFilePath(String newValue)
      Set the filePath property.
      Parameters:
      newValue - The new vaue for the filePath property. deprecated Use setFilePaths
    • getFilePattern

      public String getFilePattern()
      Get the filePattern property.
      Returns:
      The filePattern property.
    • hasName

      public boolean hasName()
      _more_
      Returns:
      _more_
    • hasFilePattern

      public boolean hasFilePattern()
      _more_
      Returns:
      _more_
    • setFilePattern

      public void setFilePattern(String newValue)
      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

      public String toString()
      Get a String representation of this object
      Overrides:
      toString in class Object
      Returns:
      a string representation
    • equals

      public boolean equals(Object object)
      _more_
      Overrides:
      equals in class Object
      Parameters:
      object - _more_
      Returns:
      _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

      public static void main(String[] args)
      _more_
      Parameters:
      args - _more_
    • setName

      public void setName(String value)
      Set the Name property.
      Parameters:
      value - The new value for Name
    • getName

      public String getName()
      Get the Name property.
      Returns:
      The Name
    • setFilePaths

      public void setFilePaths(List value)
      Set the FilePaths property.
      Parameters:
      value - The new value for FilePaths
    • getFilePaths

      public List getFilePaths()
      Get the FilePaths property.
      Returns:
      The FilePaths