|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.store.strategy.rollover.ChainedRolloverStrategy
public class ChainedRolloverStrategy
RolloverStrategy which is simply chaining other strategies.
| Constructor Summary | |
|---|---|
ChainedRolloverStrategy()
Instantiates a new chained rollover strategy. |
|
ChainedRolloverStrategy(java.util.List<? extends RolloverStrategy> strategies)
Instantiates a new chained rollover strategy. |
|
| Method Summary | |
|---|---|
java.util.List<? extends RolloverStrategy> |
getStrategies()
Gets the strategies. |
boolean |
hasRolled()
Checks if strategy wants to rollover. |
void |
register(RolloverStrategy strategy)
Register a new strategy. |
void |
reset()
Reset the strategy state. |
void |
setStrategies(java.util.List<? extends RolloverStrategy> strategies)
Sets the list of strategies. |
void |
setWritePosition(long position)
Sets the write position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedRolloverStrategy()
public ChainedRolloverStrategy(java.util.List<? extends RolloverStrategy> strategies)
strategies - the strategies| Method Detail |
|---|
public boolean hasRolled()
RolloverStrategy
hasRolled in interface RolloverStrategypublic void reset()
RolloverStrategy
reset in interface RolloverStrategypublic void setWritePosition(long position)
RolloverStrategy
setWritePosition in interface RolloverStrategyposition - the new write positionpublic void setStrategies(java.util.List<? extends RolloverStrategy> strategies)
strategies - the new strategiespublic void register(RolloverStrategy strategy)
strategy - the strategypublic java.util.List<? extends RolloverStrategy> getStrategies()
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||