@Override public void close() throws IOException { final long startTime = System.nanoTime(); outputStream.close(); writeMetrics.incWriteTime(System.nanoTime() - startTime); } }
@Override public void write(byte[] b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(byte[] b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(byte[] b, int off, int len) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b, off, len); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(int b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(byte[] b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(byte[] b, int off, int len) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b, off, len); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void close() throws IOException { final long startTime = System.nanoTime(); outputStream.close(); writeMetrics.incWriteTime(System.nanoTime() - startTime); } }
@Override public void flush() throws IOException { final long startTime = System.nanoTime(); outputStream.flush(); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void flush() throws IOException { final long startTime = System.nanoTime(); outputStream.flush(); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void close() throws IOException { final long startTime = System.nanoTime(); outputStream.close(); writeMetrics.incWriteTime(System.nanoTime() - startTime); } }
@Override public void write(int b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(byte[] b, int off, int len) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b, off, len); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void flush() throws IOException { final long startTime = System.nanoTime(); outputStream.flush(); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
@Override public void write(int b) throws IOException { final long startTime = System.nanoTime(); outputStream.write(b); writeMetrics.incWriteTime(System.nanoTime() - startTime); }
} finally { Closeables.close(out, threwException); writeMetrics.incWriteTime(System.nanoTime() - writeStartTime);
} finally { Closeables.close(out, threwException); writeMetrics.incWriteTime(System.nanoTime() - writeStartTime);
} finally { Closeables.close(out, threwException); writeMetrics.incWriteTime(System.nanoTime() - writeStartTime);
writeMetrics.incWriteTime(System.nanoTime() - openStartTime);
writeMetrics.incWriteTime(System.nanoTime() - openStartTime);