Class DefaultCollectorClient

java.lang.Object
com.netcracker.profiler.client.DefaultCollectorClient
All Implemented Interfaces:
com.netcracker.profiler.agent.DumperCollectorClient, AutoCloseable

public class DefaultCollectorClient extends Object implements com.netcracker.profiler.agent.DumperCollectorClient
  • Field Details

  • Constructor Details

    • DefaultCollectorClient

      public DefaultCollectorClient(String host, int port, boolean ssl, String cloudNamespace, String microserviceName, String podName)
  • Method Details

    • reportPodName

      protected void reportPodName()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface com.netcracker.profiler.agent.DumperCollectorClient
      Throws:
      IOException
    • createRollingChunk

      public com.netcracker.profiler.agent.DumperRemoteControlledStream createRollingChunk(String streamName, int requestedRollingSequenceId, boolean resetRequired) throws IOException
      Specified by:
      createRollingChunk in interface com.netcracker.profiler.agent.DumperCollectorClient
      Throws:
      IOException
    • write

      public void write(byte[] bytes, int offset, int length, String streamName) throws IOException
      Specified by:
      write in interface com.netcracker.profiler.agent.DumperCollectorClient
      Throws:
      IOException
    • validateWriteDataAcks

      public boolean validateWriteDataAcks(boolean sync) throws IOException
      Specified by:
      validateWriteDataAcks in interface com.netcracker.profiler.agent.DumperCollectorClient
      Parameters:
      sync - - whether to wait for all the acks
      Returns:
      true if no acks are pending
      Throws:
      IOException
    • requestAckFlush

      public void requestAckFlush(boolean doFlush) throws IOException
      Specified by:
      requestAckFlush in interface com.netcracker.profiler.agent.DumperCollectorClient
      Throws:
      IOException
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface com.netcracker.profiler.agent.DumperCollectorClient
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface com.netcracker.profiler.agent.DumperCollectorClient
      Throws:
      IOException
    • getPodName

      public String getPodName()
      Specified by:
      getPodName in interface com.netcracker.profiler.agent.DumperCollectorClient
    • getVersion

      public long getVersion()