public final class AbfsPerfInfo extends Object implements AutoCloseable
AbfsPerfInfo holds information on ADLS Gen 2 API performance observed by AbfsClient. Every
Abfs request keeps adding its information (success/failure, latency etc) to its AbfsPerfInfo's object
as and when it becomes available. When the request is over, the performance information is recorded while
the AutoCloseable AbfsPerfInfo object is "closed".| Constructor and Description |
|---|
AbfsPerfInfo(AbfsPerfTracker abfsPerfTracker,
String callerName,
String calleeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AbfsPerfInfo |
finishTracking() |
long |
getAggregateCount() |
Instant |
getAggregateStart() |
String |
getCalleeName() |
String |
getCallerName() |
AbfsPerfLoggable |
getResult() |
boolean |
getSuccess() |
Instant |
getTrackingEnd() |
Instant |
getTrackingStart() |
AbfsPerfInfo |
registerAggregates(Instant aggregateStart,
long aggregateCount) |
AbfsPerfInfo |
registerCallee(String calleeName) |
AbfsPerfInfo |
registerResult(AbfsPerfLoggable res) |
AbfsPerfInfo |
registerSuccess(boolean success) |
public AbfsPerfInfo(AbfsPerfTracker abfsPerfTracker, String callerName, String calleeName)
public AbfsPerfInfo registerSuccess(boolean success)
public AbfsPerfInfo registerResult(AbfsPerfLoggable res)
public AbfsPerfInfo registerAggregates(Instant aggregateStart, long aggregateCount)
public AbfsPerfInfo finishTracking()
public AbfsPerfInfo registerCallee(String calleeName)
public void close()
close in interface AutoCloseablepublic String getCallerName()
public String getCalleeName()
public Instant getTrackingStart()
public Instant getTrackingEnd()
public boolean getSuccess()
public Instant getAggregateStart()
public long getAggregateCount()
public AbfsPerfLoggable getResult()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.