org.apache.hadoop.hdfs
Class DFSUtil.ErrorSimulator
java.lang.Object
org.apache.hadoop.hdfs.DFSUtil.ErrorSimulator
- Enclosing class:
- DFSUtil
@InterfaceAudience.Private
public static class DFSUtil.ErrorSimulator
- extends Object
Utility class to facilitate junit test error simulation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DFSUtil.ErrorSimulator
public DFSUtil.ErrorSimulator()
initializeErrorSimulationEvent
public static void initializeErrorSimulationEvent(int numberOfEvents)
getErrorSimulation
public static boolean getErrorSimulation(int index)
setErrorSimulation
public static void setErrorSimulation(int index)
clearErrorSimulation
public static void clearErrorSimulation(int index)
Copyright © 2009 The Apache Software Foundation