Package adams.db

Class LogEntryConditions

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, PreGetOptionslistHook, SizeOfHandler, Serializable

    public class LogEntryConditions
    extends AbstractLimitedConditions
    Conditions for retrieving log entries.

    Valid options are:

    -D <int> (property: debugLevel)
        The greater the number the more additional info the scheme may output to
        the console (0 = off).
        default: 0
        minimum: 0
     
    -limit <int> (property: limit)
        The maximum number of records to retrieve.
        default: 10000
        minimum: -1
     
    -host <adams.core.base.BaseRegExp> (property: host)
        The host name to use in the search (regular expression).
        default:
     
    -ip <adams.core.base.BaseRegExp> (property: IP)
        The IP address to use in the search (regular expression).
        default:
     
    -type <adams.core.base.BaseRegExp> (property: type)
        The log entry type to use in the search (regular expression).
        default:
     
    -status <adams.core.base.BaseRegExp> (property: status)
        The log entry status to use in the search (regular expression).
        default:
     
    -source <adams.core.base.BaseRegExp> (property: source)
        The log entry type to use in the search (regular expression).
        default:
     
    -generation-start <adams.core.base.BaseDateTime> (property: generationStartDate)
        The start date for the log entry generation.
        default: -INF
     
    -generation-end <adams.core.base.BaseDateTime> (property: generationEndDate)
        The end date for the log entry generation.
        default: +INF
     
    -latest (property: latest)
        Returns only the latest entries, i.e., works backwards from the generation
        end date.
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Host

        protected BaseRegExp m_Host
        the host name (regexp).
      • m_IP

        protected BaseRegExp m_IP
        the IP address (regexp).
      • m_Type

        protected BaseRegExp m_Type
        the type of the log entries (regexp).
      • m_Status

        protected BaseRegExp m_Status
        the status of the log entries (regexp).
      • m_Source

        protected BaseRegExp m_Source
        the source of the log entries (regexp).
      • m_GenerationStartDate

        protected BaseDateTime m_GenerationStartDate
        the start date of the log entries.
      • m_GenerationEndDate

        protected BaseDateTime m_GenerationEndDate
        the end date of the log entries.
      • m_Latest

        protected boolean m_Latest
        whether to return the latest entries.
    • Constructor Detail

      • LogEntryConditions

        public LogEntryConditions()
    • Method Detail

      • setHost

        public void setHost​(BaseRegExp value)
        Sets the host name to use in the search.
        Parameters:
        value - the host name
      • getHost

        public BaseRegExp getHost()
        Returns the host name to use in the search.
        Returns:
        the host name
      • hostTipText

        public String hostTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setIP

        public void setIP​(BaseRegExp value)
        Sets the IP address to use in the search.
        Parameters:
        value - the IP address
      • getIP

        public BaseRegExp getIP()
        Returns the IP address to use in the search.
        Returns:
        the IP address
      • IPTipText

        public String IPTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setType

        public void setType​(BaseRegExp value)
        Sets the type to use in the search.
        Parameters:
        value - the type
      • getType

        public BaseRegExp getType()
        Returns the type used in the search.
        Returns:
        the type
      • typeTipText

        public String typeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setStatus

        public void setStatus​(BaseRegExp value)
        Sets the status to use in the search.
        Parameters:
        value - the status
      • getStatus

        public BaseRegExp getStatus()
        Returns the status used in the search.
        Returns:
        the status
      • statusTipText

        public String statusTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSource

        public void setSource​(BaseRegExp value)
        Sets the source to use in the search.
        Parameters:
        value - the source
      • getSource

        public BaseRegExp getSource()
        Returns the source used in the search.
        Returns:
        the source
      • sourceTipText

        public String sourceTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setGenerationStartDate

        public void setGenerationStartDate​(BaseDateTime value)
        Sets the generation start date.
        Parameters:
        value - the start date
      • getGenerationStartDate

        public BaseDateTime getGenerationStartDate()
        Returns the generation start date.
        Returns:
        the start date
      • generationStartDateTipText

        public String generationStartDateTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setGenerationEndDate

        public void setGenerationEndDate​(BaseDateTime value)
        Sets the generation end date.
        Parameters:
        value - the end date
      • getGenerationEndDate

        public BaseDateTime getGenerationEndDate()
        Returns the generation end date.
        Returns:
        the end date
      • generationEndDateTipText

        public String generationEndDateTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLatest

        public void setLatest​(boolean value)
        Sets whether to return the latest (most recent) entries only.
        Parameters:
        value - true if the latest entries are to be returned
      • getLatest

        public boolean getLatest()
        Returns whether to return only the latest (most recent) entries only.
        Returns:
        true if the latest entries are returned
      • latestTipText

        public String latestTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.