Package org.apache.curator.drivers
Class OperationTrace
java.lang.Object
org.apache.curator.drivers.OperationTrace
Used to trace the metrics of a certain Zookeeper operation.
-
Constructor Summary
ConstructorDescriptionOperationTrace
(String name, TracerDriver driver) OperationTrace
(String name, TracerDriver driver, long sessionId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
long
getName()
getPath()
long
long
int
long
org.apache.zookeeper.data.Stat
getStat()
boolean
setRequestBytesLength
(byte[] data) setRequestBytesLength
(long length) setRequestBytesLength
(String data) setResponseBytesLength
(byte[] data) setResponseBytesLength
(long length) setReturnCode
(int returnCode) setStat
(org.apache.zookeeper.data.Stat stat) setWithWatcher
(boolean withWatcher)
-
Constructor Details
-
OperationTrace
-
OperationTrace
-
-
Method Details
-
setReturnCode
-
setRequestBytesLength
-
setRequestBytesLength
-
setRequestBytesLength
-
setResponseBytesLength
-
setResponseBytesLength
-
setPath
-
setWithWatcher
-
setStat
-
getName
-
getReturnCode
public int getReturnCode() -
getLatencyMs
public long getLatencyMs() -
getRequestBytesLength
public long getRequestBytesLength() -
getResponseBytesLength
public long getResponseBytesLength() -
getSessionId
public long getSessionId() -
getPath
-
isWithWatcher
public boolean isWithWatcher() -
getStat
public org.apache.zookeeper.data.Stat getStat() -
commit
public void commit()
-