@InterfaceAudience.Private public final class ResponseReceivedMetricUpdater extends com.microsoft.azure.storage.StorageEvent<com.microsoft.azure.storage.ResponseReceivedEvent>
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Modifier and Type | Method and Description |
|---|---|
void |
eventOccurred(com.microsoft.azure.storage.ResponseReceivedEvent eventArg)
Handle the response-received event from Azure SDK.
|
static void |
hook(com.microsoft.azure.storage.OperationContext operationContext,
AzureFileSystemInstrumentation instrumentation,
BandwidthGaugeUpdater blockUploadGaugeUpdater)
Hooks a new listener to the given operationContext that will update the
metrics for the WASB file system appropriately in response to
ResponseReceived events.
|
public static void hook(com.microsoft.azure.storage.OperationContext operationContext,
AzureFileSystemInstrumentation instrumentation,
BandwidthGaugeUpdater blockUploadGaugeUpdater)
operationContext - The operationContext to hook.instrumentation - The metrics source to update.blockUploadGaugeUpdater - The blockUploadGaugeUpdater to use.public void eventOccurred(com.microsoft.azure.storage.ResponseReceivedEvent eventArg)
eventOccurred in class com.microsoft.azure.storage.StorageEvent<com.microsoft.azure.storage.ResponseReceivedEvent>Copyright © 2018 CERN. All Rights Reserved.