Package org.apache.hadoop.hbase
Class AcidGuaranteesTestTool.AtomicityWriter
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
org.apache.hadoop.hbase.MultithreadedTestUtil.RepeatingTestThread
org.apache.hadoop.hbase.AcidGuaranteesTestTool.AtomicityWriter
- All Implemented Interfaces:
Runnable
- Enclosing class:
- AcidGuaranteesTestTool
public static class AcidGuaranteesTestTool.AtomicityWriter
extends MultithreadedTestUtil.RepeatingTestThread
Thread that does random full-row writes into a table.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescription(package private) org.apache.hadoop.hbase.client.Connection
(package private) byte[]
(package private) AtomicLong
(package private) org.apache.hadoop.hbase.client.Table
(package private) byte[][]
(package private) byte[][]
Fields inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
ctx, stopped
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionAtomicityWriter
(MultithreadedTestUtil.TestContext ctx, byte[][] targetRows, byte[][] targetFamilies, ExecutorService pool) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.RepeatingTestThread
doWork
Methods inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
run, stopTestThread
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
Field Details
-
data
byte[] data -
targetRows
byte[][] targetRows -
targetFamilies
byte[][] targetFamilies -
connection
org.apache.hadoop.hbase.client.Connection connection -
table
org.apache.hadoop.hbase.client.Table table -
numWritten
-
-
Constructor Details
-
AtomicityWriter
public AtomicityWriter(MultithreadedTestUtil.TestContext ctx, byte[][] targetRows, byte[][] targetFamilies, ExecutorService pool) throws IOException - Throws:
IOException
-
-
Method Details
-
doAnAction
- Specified by:
doAnAction
in classMultithreadedTestUtil.RepeatingTestThread
- Throws:
Exception
-
workDone
- Overrides:
workDone
in classMultithreadedTestUtil.RepeatingTestThread
- Throws:
IOException
-