Package org.netxms.client.datacollection
Class ReconciliationStatus
java.lang.Object
org.netxms.client.datacollection.ReconciliationStatus
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 Summary
ConstructorsConstructorDescriptionCreate reconciliation status from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionlongGet estimated time remaining until reconciliation completes, based on the number of pending data points and current drain rate.Get time when reconciliation status was last reported by agent.Get timestamp of the oldest cached data point still pending reconciliation.longGet number of data points still pending reconciliation as last reported by agent.doublegetRate()Get reconciliation drain rate in data points per second (0 if not yet known).booleanisActive()Check if reconciliation is currently in progress (agent still has cached data to send).
-
Constructor Details
-
ReconciliationStatus
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
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
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
-