Interface StatusHistoryRepository
public interface StatusHistoryRepository
A repository for storing and retrieving node and components' historical status
information
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcapture(NodeStatus nodeStatus, ProcessGroupStatus rootGroupStatus, List<GarbageCollectionStatus> garbageCollectionStatus, Date timestamp) Captures the status information provided in the given report, providing a timestamp that indicates the time at which the status report was generated.getConnectionStatusHistory(String connectionId, Date start, Date end, int preferredDataPoints) getGarbageCollectionHistory(Date start, Date end) Returns the status history of the garbage collection.getNodeStatusHistory(Date start, Date end) Returns the status history of the actual node.getProcessGroupStatusHistory(String processGroupId, Date start, Date end, int preferredDataPoints) getProcessorStatusHistory(String processorId, Date start, Date end, int preferredDataPoints, boolean includeCounters) getRemoteProcessGroupStatusHistory(String remoteGroupId, Date start, Date end, int preferredDataPoints) voidshutdown()Stops the resources used by the repository.voidstart()Starts necessary resources needed for the repository.
-
Field Details
-
COMPONENT_DETAIL_ID
- See Also:
-
COMPONENT_DETAIL_GROUP_ID
- See Also:
-
COMPONENT_DETAIL_NAME
- See Also:
-
COMPONENT_DETAIL_TYPE
- See Also:
-
COMPONENT_DETAIL_SOURCE_NAME
- See Also:
-
COMPONENT_DETAIL_DESTINATION_NAME
- See Also:
-
COMPONENT_DETAIL_URI
- See Also:
-
-
Method Details
-
capture
void capture(NodeStatus nodeStatus, ProcessGroupStatus rootGroupStatus, List<GarbageCollectionStatus> garbageCollectionStatus, Date timestamp) Captures the status information provided in the given report, providing a timestamp that indicates the time at which the status report was generated. This can be used to replay historical values.- Parameters:
nodeStatus- status of the noderootGroupStatus- status of the root group and it's contentgarbageCollectionStatus- status of garbage collectiontimestamp- timestamp of capture
-
getConnectionStatusHistory
StatusHistory getConnectionStatusHistory(String connectionId, Date start, Date end, int preferredDataPoints) - Parameters:
connectionId- the ID of the Connection for which the Status is desiredstart- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current timepreferredDataPoints- the preferred number of data points to return. If the date range is large, the total number of data points could be far too many to process. Therefore, this parameter allows the requestor to indicate how many samples to return.- Returns:
- a
StatusHistorythat provides the status information about the Connection with the given ID during the given time period
-
getProcessGroupStatusHistory
StatusHistory getProcessGroupStatusHistory(String processGroupId, Date start, Date end, int preferredDataPoints) - Parameters:
processGroupId- of group to get status ofstart- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current timepreferredDataPoints- the preferred number of data points to return. If the date range is large, the total number of data points could be far too many to process. Therefore, this parameter allows the requestor to indicate how many samples to return.- Returns:
- a
StatusHistorythat provides the status information about the Process Group with the given ID during the given time period
-
getProcessorStatusHistory
StatusHistory getProcessorStatusHistory(String processorId, Date start, Date end, int preferredDataPoints, boolean includeCounters) - Parameters:
processorId- to get status ofstart- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current timepreferredDataPoints- the preferred number of data points to return. If the date range is large, the total number of data points could be far too many to process. Therefore, this parameter allows the requestor to indicate how many samples to return.includeCounters- specifies whether or not metrics from Processor counters should be included in the StatusHistory.- Returns:
- a
StatusHistorythat provides the status information about the Processor with the given ID during the given time period
-
getRemoteProcessGroupStatusHistory
StatusHistory getRemoteProcessGroupStatusHistory(String remoteGroupId, Date start, Date end, int preferredDataPoints) - Parameters:
remoteGroupId- to get history ofstart- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current timepreferredDataPoints- the preferred number of data points to return. If the date range is large, the total number of data points could be far too many to process. Therefore, this parameter allows the requestor to indicate how many samples to return.- Returns:
- a
StatusHistorythat provides the status information about the Remote Process Group with the given ID during the given time period
-
getNodeStatusHistory
Returns the status history of the actual node.- Parameters:
start- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current time- Returns:
- a
StatusHistorythat provides the status information about the NiFi node within the specified time range.
-
getGarbageCollectionHistory
Returns the status history of the garbage collection.- Parameters:
start- the earliest date for which status information should be returned; ifnull, the start date should be assumed to be the beginning of timeend- the latest date for which status information should be returned; ifnull, the end date should be assumed to be the current time- Returns:
- a
GarbageCollectionHistorythat provides the status information about the garbage collection of the given node within the specified time range
-
start
void start()Starts necessary resources needed for the repository. -
shutdown
void shutdown()Stops the resources used by the repository.
-