public class ThreadStatus extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getCfName()
The name of the Column Family that the thread is currently
involved with.
|
String |
getDbName()
The name of the DB instance that the thread is currently
involved with.
|
long |
getOperationElapsedTime()
Get the elapsed time of the current thread operation in microseconds.
|
static String |
getOperationName(OperationType operationType)
Get the name of an operation given its type.
|
long[] |
getOperationProperties()
Get the list of properties that describe some details about the current
operation.
|
static String |
getOperationPropertyName(OperationType operationType,
int i)
Obtain the name of the "i"th operation property of the
specified operation.
|
OperationStage |
getOperationStage()
Get the current stage where the thread is involved in the current
operation.
|
static String |
getOperationStageName(OperationStage operationStage)
Obtain a human-readable string describing the specified operation stage.
|
OperationType |
getOperationType()
Get the operation (high-level action) that the current thread is involved
with.
|
static String |
getStateName(StateType stateType)
Obtain the name of a state given its type.
|
StateType |
getStateType()
Get the state (lower-level action) that the current thread is involved
with.
|
long |
getThreadId()
Get the unique ID of the thread.
|
ThreadType |
getThreadType()
Get the type of the thread.
|
static String |
getThreadTypeName(ThreadType threadType)
Get the name of the thread type.
|
static Map<String,Long> |
interpretOperationProperties(OperationType operationType,
long[] operationProperties)
Translate the "i"th property of the specified operation given
a property value.
|
static String |
microsToString(long operationElapsedTime) |
public long getThreadId()
public ThreadType getThreadType()
public String getDbName()
public String getCfName()
public OperationType getOperationType()
public long getOperationElapsedTime()
public OperationStage getOperationStage()
public long[] getOperationProperties()
public StateType getStateType()
public static String getThreadTypeName(ThreadType threadType)
threadType - the thread typepublic static String getOperationName(OperationType operationType)
operationType - the type of operation.public static String microsToString(long operationElapsedTime)
public static String getOperationStageName(OperationStage operationStage)
operationStage - the stage of the operation.public static String getOperationPropertyName(OperationType operationType, int i)
operationType - the operation type.i - the index of the operation property.public static Map<String,Long> interpretOperationProperties(OperationType operationType, long[] operationProperties)
operationType - the operation type.operationProperties - the operation properties.Copyright © 2021. All rights reserved.