Package jetbrains.buildServer.metrics
Class ServerLoadMetricsAwareOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- jetbrains.buildServer.metrics.ServerLoadMetricsAwareOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ServerLoadMetricsAwareOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description ServerLoadMetricsAwareOutputStream(OutputStream delegate, Counter metric)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Constructor Detail
-
ServerLoadMetricsAwareOutputStream
public ServerLoadMetricsAwareOutputStream(@NotNull OutputStream delegate, @NotNull Counter metric)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(@NotNull byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(@NotNull byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-