Class ReconciliationStatus

java.lang.Object
org.netxms.client.datacollection.ReconciliationStatus

public class ReconciliationStatus extends Object
Status of agent data reconciliation (offline data collection catch-up) for a node. Reflects how much locally cached data is still pending delivery to the server, how fast it is being delivered, and the estimated completion time.
  • Constructor Details

    • ReconciliationStatus

      public ReconciliationStatus(NXCPMessage msg)
      Create reconciliation status from NXCP message.
      Parameters:
      msg - NXCP message
  • Method Details

    • isActive

      public boolean isActive()
      Check if reconciliation is currently in progress (agent still has cached data to send).
      Returns:
      true if reconciliation is active
    • getPendingDataPoints

      public long getPendingDataPoints()
      Get number of data points still pending reconciliation as last reported by agent.
      Returns:
      number of pending data points
    • getOldestDataTimestamp

      public Date getOldestDataTimestamp()
      Get timestamp of the oldest cached data point still pending reconciliation.
      Returns:
      timestamp of oldest pending data point, or null if not available
    • getRate

      public double getRate()
      Get reconciliation drain rate in data points per second (0 if not yet known).
      Returns:
      reconciliation rate in data points per second
    • getLastReport

      public Date getLastReport()
      Get time when reconciliation status was last reported by agent.
      Returns:
      time of last status report, or null if not available
    • getEstimatedSecondsRemaining

      public long getEstimatedSecondsRemaining()
      Get estimated time remaining until reconciliation completes, based on the number of pending data points and current drain rate.
      Returns:
      estimated remaining time in seconds, or -1 if it cannot be calculated