Spring for Apache Hadoop

org.springframework.data.hadoop.store.strategy.rollover
Class NoRolloverStrategy

java.lang.Object
  extended by org.springframework.data.hadoop.store.strategy.rollover.AbstractRolloverStrategy
      extended by org.springframework.data.hadoop.store.strategy.rollover.NoRolloverStrategy
All Implemented Interfaces:
org.springframework.core.Ordered, RolloverStrategy

public class NoRolloverStrategy
extends AbstractRolloverStrategy

A RolloverStrategy which simply never does a rollover.

Author:
Janne Valkealahti

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
NoRolloverStrategy()
           
 
Method Summary
 boolean hasRolled()
          Checks if strategy wants to rollover.
 void reset()
          Reset the strategy state.
 
Methods inherited from class org.springframework.data.hadoop.store.strategy.rollover.AbstractRolloverStrategy
getOrder, getPosition, setOrder, setWritePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoRolloverStrategy

public NoRolloverStrategy()
Method Detail

hasRolled

public boolean hasRolled()
Description copied from interface: RolloverStrategy
Checks if strategy wants to rollover.

Returns:
true, if rollover should happen

reset

public void reset()
Description copied from interface: RolloverStrategy
Reset the strategy state.


Spring for Apache Hadoop