Class FileTrigger

java.lang.Object
com.arpnetworking.configuration.triggers.FileTrigger
All Implemented Interfaces:
Trigger

public final class FileTrigger extends Object implements Trigger
Trigger implementation based on a file's modified date and its hash. If the file is created or removed the evaluation will return true.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Method Details

    • evaluateAndReset

      public boolean evaluateAndReset()
      Description copied from interface: Trigger
      Evaluate the trigger. True indicates the trigger has been tripped. Evaluating the trigger will reset its state and the trigger will not return true again until it is tripped again.
      Specified by:
      evaluateAndReset in interface Trigger
      Returns:
      True if and only if the trigger has been tripped.
    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Returns:
      Steno log compatible representation.
    • toString

      public String toString()
      Overrides:
      toString in class Object