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
FieldsModifier and TypeFieldDescriptionprotected final Stringstatic final io.prometheus.client.Summaryprotected final Stringprotected final Stringprotected final Stringprotected final StringFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionDownloadCountingInputStreamMetrics(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, skipMethods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset, unwrapMethods 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:
afterReadin classorg.apache.commons.io.input.CountingInputStream- Throws:
IOException
-