Class AtomicKvStateRequestStats
- java.lang.Object
-
- org.apache.flink.queryablestate.network.stats.AtomicKvStateRequestStats
-
- All Implemented Interfaces:
KvStateRequestStats
public class AtomicKvStateRequestStats extends Object implements KvStateRequestStats
AtomicKvStateRequestStats
implementation.
-
-
Constructor Summary
Constructors Constructor Description AtomicKvStateRequestStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getNumConnections()
long
getNumFailed()
long
getNumRequests()
long
getNumSuccessful()
void
reportActiveConnection()
Reports an active connection.void
reportFailedRequest()
Reports a failure during a request.void
reportInactiveConnection()
Reports an inactive connection.void
reportRequest()
Reports an incoming request.void
reportSuccessfulRequest(long durationTotalMillis)
Reports a successfully handled request.String
toString()
-
-
-
Method Detail
-
reportActiveConnection
public void reportActiveConnection()
Description copied from interface:KvStateRequestStats
Reports an active connection.- Specified by:
reportActiveConnection
in interfaceKvStateRequestStats
-
reportInactiveConnection
public void reportInactiveConnection()
Description copied from interface:KvStateRequestStats
Reports an inactive connection.- Specified by:
reportInactiveConnection
in interfaceKvStateRequestStats
-
reportRequest
public void reportRequest()
Description copied from interface:KvStateRequestStats
Reports an incoming request.- Specified by:
reportRequest
in interfaceKvStateRequestStats
-
reportSuccessfulRequest
public void reportSuccessfulRequest(long durationTotalMillis)
Description copied from interface:KvStateRequestStats
Reports a successfully handled request.- Specified by:
reportSuccessfulRequest
in interfaceKvStateRequestStats
- Parameters:
durationTotalMillis
- Duration of the request (in milliseconds).
-
reportFailedRequest
public void reportFailedRequest()
Description copied from interface:KvStateRequestStats
Reports a failure during a request.- Specified by:
reportFailedRequest
in interfaceKvStateRequestStats
-
getNumConnections
public long getNumConnections()
-
getNumRequests
public long getNumRequests()
-
getNumSuccessful
public long getNumSuccessful()
-
getNumFailed
public long getNumFailed()
-
-