Class DownloadCountingInputStreamMetrics
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.CountingInputStream
fr.gouv.vitam.storage.engine.common.metrics.DownloadCountingInputStreamMetrics
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class DownloadCountingInputStreamMetrics
extends org.apache.commons.io.input.CountingInputStream
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
static final io.prometheus.client.Summary
protected final String
protected final String
protected final String
protected final String
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionDownloadCountingInputStreamMetrics
(Integer tenant, String strategy, String offerId, String origin, DataCategory dataCategory, InputStream inputStream) -
Method Summary
Methods inherited from class org.apache.commons.io.input.CountingInputStream
getByteCount, getCount, resetByteCount, resetCount, skip
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset, unwrap
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
DOWNLOAD_BYTES
public static final io.prometheus.client.Summary DOWNLOAD_BYTES -
tenant
-
strategy
-
offerId
-
origin
-
dataCategory
-
-
Constructor Details
-
DownloadCountingInputStreamMetrics
public DownloadCountingInputStreamMetrics(Integer tenant, String strategy, String offerId, String origin, DataCategory dataCategory, InputStream inputStream)
-
-
Method Details
-
onEndOfFileReached
protected void onEndOfFileReached() -
afterRead
- Overrides:
afterRead
in classorg.apache.commons.io.input.CountingInputStream
- Throws:
IOException
-