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 Details

    • RollingChunkStream

      public RollingChunkStream(int rollingSequenceId, String streamName, long rotationPeriod, long requiredRotationSize, org.qubership.profiler.agent.DumperCollectorClient collectorClient)
  • Method Details

    • getStreamName

      public String getStreamName()
      Specified by:
      getStreamName in interface org.qubership.profiler.agent.DumperRemoteControlledStream
    • getRotationPeriod

      public long getRotationPeriod()
      Specified by:
      getRotationPeriod in interface org.qubership.profiler.agent.DumperRemoteControlledStream
    • getRequiredRotationSize

      public long getRequiredRotationSize()
      Specified by:
      getRequiredRotationSize in interface org.qubership.profiler.agent.DumperRemoteControlledStream
    • getRollingSequenceId

      public int getRollingSequenceId()
      Specified by:
      getRollingSequenceId in interface org.qubership.profiler.agent.DumperRemoteControlledStream
    • write

      public void write(byte[] bytes, int offset, int length) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(int word) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(byte[] bytes) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface org.qubership.profiler.agent.DumperRemoteControlledStream
    • getClient

      public org.qubership.profiler.agent.DumperCollectorClient getClient()
      Specified by:
      getClient in interface org.qubership.profiler.agent.DumperRemoteControlledStream