Class UploadCountingInputStreamMetrics
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.UploadCountingInputStreamMetrics
- All Implemented Interfaces:
Closeable,AutoCloseable
public class UploadCountingInputStreamMetrics
extends org.apache.commons.io.input.CountingInputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringstatic final io.prometheus.client.SummaryFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionUploadCountingInputStreamMetrics(Integer tenant, String strategy, String offerId, String origin, DataCategory dataCategory, int attempt, 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
-
UPLOAD_BYTES
public static final io.prometheus.client.Summary UPLOAD_BYTES -
tenant
-
strategy
-
offerId
-
origin
-
dataCategory
-
-
Constructor Details
-
UploadCountingInputStreamMetrics
public UploadCountingInputStreamMetrics(Integer tenant, String strategy, String offerId, String origin, DataCategory dataCategory, int attempt, InputStream inputStream)
-
-
Method Details
-
onEndOfFileReached
protected void onEndOfFileReached() -
afterRead
- Overrides:
afterReadin classorg.apache.commons.io.input.CountingInputStream- Throws:
IOException
-