@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
public S3ObjectInputStream( InputStream in, HttpRequestBase httpRequest, boolean collectMetrics) { super(collectMetrics ? new MetricFilterInputStream(S3ServiceMetric.S3DownloadThroughput, in) : in); this.httpRequest = httpRequest; }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Deprecated public S3ObjectInputStream( InputStream in, HttpRequestBase httpRequest, boolean collectMetrics) { super(collectMetrics ? new MetricFilterInputStream(S3ServiceMetric.S3_DOWLOAD_THROUGHPUT, in) : in); this.httpRequest = httpRequest; }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Deprecated public S3ObjectInputStream( InputStream in, HttpRequestBase httpRequest, boolean collectMetrics) { super(collectMetrics ? new MetricFilterInputStream(S3ServiceMetric.S3_DOWLOAD_THROUGHPUT, in) : in); this.httpRequest = httpRequest; }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
public S3ObjectInputStream( InputStream in, HttpRequestBase httpRequest, boolean collectMetrics) { super(collectMetrics ? new MetricFilterInputStream(S3ServiceMetric.S3DownloadThroughput, in) : in); this.httpRequest = httpRequest; }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public void close() throws IOException { helper.reportMetrics(); in.close(); abortIfNeeded(); }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte[] b, int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }
@Override public int read(byte b[], int off, int len) throws IOException { abortIfNeeded(); long startNano = helper.startTiming(); int bytesRead = in.read(b, off, len); if (bytesRead > 0) { helper.increment(bytesRead, startNano); } return bytesRead; }