Class RollingChunkStream

java.lang.Object
java.io.OutputStream
com.netcracker.profiler.client.RollingChunkStream
All Implemented Interfaces:
com.netcracker.profiler.agent.DumperRemoteControlledStream, Closeable, Flushable, AutoCloseable

public class RollingChunkStream extends OutputStream implements com.netcracker.profiler.agent.DumperRemoteControlledStream
  • Constructor Details

    • RollingChunkStream

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

    • getStreamName

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

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

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

      public int getRollingSequenceId()
      Specified by:
      getRollingSequenceId in interface com.netcracker.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 com.netcracker.profiler.agent.DumperRemoteControlledStream
    • getClient

      public com.netcracker.profiler.agent.DumperCollectorClient getClient()
      Specified by:
      getClient in interface com.netcracker.profiler.agent.DumperRemoteControlledStream