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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final Stringprivate final Stringprivate final longprivate static final org.apache.hbase.thirdparty.com.google.gson.Gsonprivate final Stringprivate final intprivate final intprivate final intprivate final Stringprivate final intprivate final intprivate final Stringprivate final longprivate final Stringprivate final longprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionOnlineLogRecord(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 TypeMethodDescriptionbooleanlongReturn the amount of block bytes scanned to retrieve the response cells.longintintintgetParam()intintlonggetScan()If "hbase.slowlog.scan.payload.enabled" is enabled then this value may be present and should represent the Scan that produced the givenOnlineLogRecordlonginthashCode()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:LogEntryBased on response sent by server, provide pretty printed Json representation in string- Specified by:
toJsonPrettyPrintin classLogEntry- Returns:
- Pretty printed Json representation
-
toString
-