Class FileTrigger
java.lang.Object
com.arpnetworking.configuration.triggers.FileTrigger
- All Implemented Interfaces:
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)
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluate the trigger.Generate a Steno log compatible representation.toString()
-
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 interfaceTrigger
- Returns:
- True if and only if the trigger has been tripped.
-
toLogValue
Generate a Steno log compatible representation.- Returns:
- Steno log compatible representation.
-
toString
-