Package org.apache.hadoop.hbase.client
Class OnlineLogRecord
java.lang.Object
org.apache.hadoop.hbase.client.LogEntry
org.apache.hadoop.hbase.client.OnlineLogRecord
Slow/Large Log payload for hbase-client, to be used by Admin API get_slow_responses and
get_large_responses
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final String
private final String
private final long
private static final org.apache.hbase.thirdparty.com.google.gson.Gson
private final String
private final int
private final int
private final int
private final String
private final int
private final int
private final String
private final long
private final String
private final long
private final String
-
Constructor Summary
ConstructorDescriptionOnlineLogRecord
(long startTime, int processingTime, int queueTime, long responseSize, long blockBytesScanned, long fsReadTime, String clientAddress, String serverClass, String methodName, String callDetails, String param, String regionName, String userName, int multiGetsCount, int multiMutationsCount, int multiServiceCalls, Scan scan, Map<String, byte[]> requestAttributes, Map<String, byte[]> connectionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Return the amount of block bytes scanned to retrieve the response cells.long
int
int
int
getParam()
int
int
long
getScan()
If "hbase.slowlog.scan.payload.enabled" is enabled then this value may be present and should represent the Scan that produced the givenOnlineLogRecord
long
int
hashCode()
Based on response sent by server, provide pretty printed Json representation in stringtoString()
-
Field Details
-
GSON
-
startTime
-
processingTime
-
queueTime
-
responseSize
-
blockBytesScanned
-
fsReadTime
-
clientAddress
-
serverClass
-
methodName
-
callDetails
-
param
-
regionName
-
userName
-
multiGetsCount
-
multiMutationsCount
-
multiServiceCalls
-
scan
-
requestAttributes
-
connectionAttributes
-
-
Constructor Details
-
OnlineLogRecord
OnlineLogRecord(long startTime, int processingTime, int queueTime, long responseSize, long blockBytesScanned, long fsReadTime, String clientAddress, String serverClass, String methodName, String callDetails, String param, String regionName, String userName, int multiGetsCount, int multiMutationsCount, int multiServiceCalls, Scan scan, Map<String, byte[]> requestAttributes, Map<String, byte[]> connectionAttributes)
-
-
Method Details
-
getStartTime
-
getProcessingTime
-
getQueueTime
-
getResponseSize
-
getBlockBytesScanned
Return the amount of block bytes scanned to retrieve the response cells. -
getFsReadTime
-
getClientAddress
-
getServerClass
-
getMethodName
-
getCallDetails
-
getParam
-
getRegionName
-
getUserName
-
getMultiGetsCount
-
getMultiMutationsCount
-
getMultiServiceCalls
-
getScan
If "hbase.slowlog.scan.payload.enabled" is enabled then this value may be present and should represent the Scan that produced the givenOnlineLogRecord
-
getRequestAttributes
-
getConnectionAttributes
-
equals
-
hashCode
-
toJsonPrettyPrint
Description copied from class:LogEntry
Based on response sent by server, provide pretty printed Json representation in string- Specified by:
toJsonPrettyPrint
in classLogEntry
- Returns:
- Pretty printed Json representation
-
toString
-