Package org.qubership.profiler.client
Class RollingChunkStream
java.lang.Object
java.io.OutputStream
org.qubership.profiler.client.RollingChunkStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,org.qubership.profiler.agent.DumperRemoteControlledStream
public class RollingChunkStream
extends OutputStream
implements org.qubership.profiler.agent.DumperRemoteControlledStream
-
Constructor Summary
ConstructorsConstructorDescriptionRollingChunkStream(int rollingSequenceId, String streamName, long rotationPeriod, long requiredRotationSize, org.qubership.profiler.agent.DumperCollectorClient collectorClient) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RollingChunkStream
public RollingChunkStream(int rollingSequenceId, String streamName, long rotationPeriod, long requiredRotationSize, org.qubership.profiler.agent.DumperCollectorClient collectorClient)
-
-
Method Details
-
getStreamName
- Specified by:
getStreamNamein interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-
getRotationPeriod
public long getRotationPeriod()- Specified by:
getRotationPeriodin interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-
getRequiredRotationSize
public long getRequiredRotationSize()- Specified by:
getRequiredRotationSizein interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-
getRollingSequenceId
public int getRollingSequenceId()- Specified by:
getRollingSequenceIdin interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-
getClient
public org.qubership.profiler.agent.DumperCollectorClient getClient()- Specified by:
getClientin interfaceorg.qubership.profiler.agent.DumperRemoteControlledStream
-