Class TimeBasedRotationStrategy
java.lang.Object
org.graylog2.indexer.rotation.strategies.TimeBasedRotationStrategy
- All Implemented Interfaces:
RotationStrategy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeBasedRotationStrategy(Indices indices, ElasticsearchConfiguration elasticsearchConfiguration, IndexRotator indexRotator) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends RotationStrategyConfig>voidreset()Resets internal state.void
-
Field Details
-
NAME
- See Also:
-
OVERRIDE_HINT
- See Also:
-
-
Constructor Details
-
TimeBasedRotationStrategy
@Inject public TimeBasedRotationStrategy(Indices indices, ElasticsearchConfiguration elasticsearchConfiguration, IndexRotator indexRotator)
-
-
Method Details
-
rotate
- Specified by:
rotatein interfaceRotationStrategy
-
configurationClass
- Specified by:
configurationClassin interfaceRotationStrategy
-
defaultConfiguration
- Specified by:
defaultConfigurationin interfaceRotationStrategy
-
reset
public void reset()Resets internal state. After a reset, the rotation strategy will behave like it would after a server restart. I.e. no previous anchor points will be available, so rotation uses the index creation dates as reference points. -
getStrategyName
- Specified by:
getStrategyNamein interfaceRotationStrategy
-