flux.file
Interface FileStableTrigger

All Known Subinterfaces:
FileExistTrigger, FileModifiedTrigger

public interface FileStableTrigger

Abstract interface that defines a measure of stability that must exist before a file trigger can fire.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 java.lang.String getStablePeriod()
          Returns the period during which a candidate file for triggering must not be modified before the trigger will fire.
 void setStablePeriod(java.lang.String timeExpression)
          Sets the period during which a candidate file for triggering must not be modified before the trigger will fire.
 

Method Detail

getStablePeriod

java.lang.String getStablePeriod()
Returns the period during which a candidate file for triggering must not be modified before the trigger will fire. Prevents the trigger from firing before a file is finished being copied into place. Defaults to "+0s", meaning that there is no stable period by default.

Returns:
The period during which a candidate file for triggering must not be modified before the trigger will fire.

setStablePeriod

void setStablePeriod(java.lang.String timeExpression)
                     throws EngineException
Sets the period during which a candidate file for triggering must not be modified before the trigger will fire. Prevents the trigger from firing before a file is finished being copied into place. Defaults to "+0s", meaning that there is no stable period by default.

Parameters:
timeExpression - The period during which a candidate file for triggering must not be modified before the trigger will fire.
Throws:
EngineException - If the Time Expression is invalid or not a positive value.


© 2014 Flux Corporation. All rights reserved.