org.apache.hadoop.hbase.util
Class ManualEnvironmentEdge

java.lang.Object
  extended by org.apache.hadoop.hbase.util.ManualEnvironmentEdge
All Implemented Interfaces:
EnvironmentEdge

public class ManualEnvironmentEdge
extends Object
implements EnvironmentEdge

An environment edge that uses a manually set value. This is useful for testing events that are supposed to happen in the same millisecond.


Field Summary
protected  long value
           
 
Constructor Summary
ManualEnvironmentEdge()
           
 
Method Summary
 long currentTimeMillis()
          Returns the currentTimeMillis.
 void setValue(long newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected long value
Constructor Detail

ManualEnvironmentEdge

public ManualEnvironmentEdge()
Method Detail

setValue

public void setValue(long newValue)

currentTimeMillis

public long currentTimeMillis()
Description copied from interface: EnvironmentEdge
Returns the currentTimeMillis.

Specified by:
currentTimeMillis in interface EnvironmentEdge
Returns:
currentTimeMillis.


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.