Package org.qubership.profiler.io
Class RemoteAndLocalOutputStream
java.lang.Object
java.io.OutputStream
org.qubership.profiler.io.RemoteAndLocalOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
this one writes to both remote stream and local file
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteAndLocalOutputStream(org.qubership.profiler.agent.DumperCollectorClient client, String streamName, int requestedRollingSequenceId, boolean localEnabled, boolean resetRequired) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
RemoteAndLocalOutputStream
public RemoteAndLocalOutputStream(org.qubership.profiler.agent.DumperCollectorClient client, String streamName, int requestedRollingSequenceId, boolean localEnabled, boolean resetRequired) throws IOException - Throws:
IOException
-
-
Method Details
-
setLocal
-
writePhrase
- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getRotationPeriod
public long getRotationPeriod() -
getRequiredRotationSize
public long getRequiredRotationSize() -
getRollingSequenceId
public int getRollingSequenceId()
-