|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 strategiesMethod Detail |
---|
public boolean hasRolled()
RolloverStrategy
hasRolled
in interface RolloverStrategy
public void reset()
RolloverStrategy
reset
in interface RolloverStrategy
public void setWritePosition(long position)
RolloverStrategy
setWritePosition
in interface RolloverStrategy
position
- 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 |