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
Modifier and TypeFieldDescriptionprotected final String
protected final String
protected final String
protected final String
protected final String
static final io.prometheus.client.Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionUploadCountingInputStreamMetrics
(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, 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
-
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:
afterRead
in classorg.apache.commons.io.input.CountingInputStream
- Throws:
IOException
-