Class CompositeJobRetainedStrategy
- java.lang.Object
-
- org.apache.flink.runtime.webmonitor.history.retaining.CompositeJobRetainedStrategy
-
- All Implemented Interfaces:
JobRetainedStrategy
public class CompositeJobRetainedStrategy extends Object implements JobRetainedStrategy
The retained strategy.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobRetainedStrategycreateFrom(org.apache.flink.configuration.ReadableConfig config)booleanshouldRetain(org.apache.flink.core.fs.FileStatus file, int fileOrderedIndex)Judge whether the file should be retained.
-
-
-
Method Detail
-
createFrom
public static JobRetainedStrategy createFrom(org.apache.flink.configuration.ReadableConfig config)
-
shouldRetain
public boolean shouldRetain(org.apache.flink.core.fs.FileStatus file, int fileOrderedIndex)Description copied from interface:JobRetainedStrategyJudge whether the file should be retained.- Specified by:
shouldRetainin interfaceJobRetainedStrategy- Parameters:
file- the target file to judge.fileOrderedIndex- the specified order index position of the target file,- Returns:
- The result that indicates whether the file should be retained.
-
-