Class OutputSnapshot

java.lang.Object
com.pervasive.datarush.ports.physical.PortSnapshot
com.pervasive.datarush.ports.physical.OutputSnapshot
All Implemented Interfaces:
OutputStatistics, PortStatistics, Serializable

public class OutputSnapshot extends PortSnapshot implements OutputStatistics
A snapshot of run-time statistics for an output port.
See Also:
  • Constructor Details

    • OutputSnapshot

      public OutputSnapshot(OutputStatistics stats)
      Creates a snapshot of output statistics.
      Parameters:
      stats - the live statistics to capture
  • Method Details

    • getMaxBatchCount

      public long getMaxBatchCount()
      Gets the highest number of batches ever held in the dataflow queue. This is only applicable to output ports.
      Specified by:
      getMaxBatchCount in interface OutputStatistics
      Returns:
      the largest observed size of the queue, in batches
    • getMaxTokenCount

      public long getMaxTokenCount()
      Gets the highest number of tokens ever held in the dataflow queue. This is only applicable to output ports.
      Specified by:
      getMaxTokenCount in interface OutputStatistics
      Returns:
      the largest observed size of the queue, in tokens
    • getSnapshot

      public OutputSnapshot getSnapshot()
      Description copied from interface: PortStatistics
      Gets a snapshot of the current statistics.
      Specified by:
      getSnapshot in interface OutputStatistics
      Specified by:
      getSnapshot in interface PortStatistics
      Returns:
      an immutable copy of the statistics