public interface StatusHistoryRepository
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_DETAIL_DESTINATION_NAME |
static String |
COMPONENT_DETAIL_GROUP_ID |
static String |
COMPONENT_DETAIL_ID |
static String |
COMPONENT_DETAIL_NAME |
static String |
COMPONENT_DETAIL_SOURCE_NAME |
static String |
COMPONENT_DETAIL_TYPE |
static String |
COMPONENT_DETAIL_URI |
| Modifier and Type | Method and Description |
|---|---|
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.
|
StatusHistory |
getConnectionStatusHistory(String connectionId,
Date start,
Date end,
int preferredDataPoints) |
GarbageCollectionHistory |
getGarbageCollectionHistory(Date start,
Date end)
Returns the status history of the garbage collection.
|
StatusHistory |
getNodeStatusHistory(Date start,
Date end)
Returns the status history of the actual node.
|
StatusHistory |
getProcessGroupStatusHistory(String processGroupId,
Date start,
Date end,
int preferredDataPoints) |
StatusHistory |
getProcessorStatusHistory(String processorId,
Date start,
Date end,
int preferredDataPoints,
boolean includeCounters) |
StatusHistory |
getRemoteProcessGroupStatusHistory(String remoteGroupId,
Date start,
Date end,
int preferredDataPoints) |
void |
shutdown()
Stops the resources used by the repository.
|
void |
start()
Starts necessary resources needed for the repository.
|
static final String COMPONENT_DETAIL_ID
static final String COMPONENT_DETAIL_GROUP_ID
static final String COMPONENT_DETAIL_NAME
static final String COMPONENT_DETAIL_TYPE
static final String COMPONENT_DETAIL_SOURCE_NAME
static final String COMPONENT_DETAIL_DESTINATION_NAME
static final String COMPONENT_DETAIL_URI
void capture(NodeStatus nodeStatus, ProcessGroupStatus rootGroupStatus, List<GarbageCollectionStatus> garbageCollectionStatus, Date timestamp)
nodeStatus - status of the noderootGroupStatus - status of the root group and it's contenttimestamp - timestamp of capturegarbageCollectionStatus - status of garbage collectionStatusHistory getConnectionStatusHistory(String connectionId, Date start, Date end, int preferredDataPoints)
connectionId - the ID of the Connection for which the Status is
desiredstart - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, 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.StatusHistory that provides the status information
about the Connection with the given ID during the given time periodStatusHistory getProcessGroupStatusHistory(String processGroupId, Date start, Date end, int preferredDataPoints)
processGroupId - of group to get status ofstart - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, 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.StatusHistory that provides the status information
about the Process Group with the given ID during the given time periodStatusHistory getProcessorStatusHistory(String processorId, Date start, Date end, int preferredDataPoints, boolean includeCounters)
processorId - to get status ofstart - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, 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.StatusHistory that provides the status information
about the Processor with the given ID during the given time periodStatusHistory getRemoteProcessGroupStatusHistory(String remoteGroupId, Date start, Date end, int preferredDataPoints)
remoteGroupId - to get history ofstart - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, 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.StatusHistory that provides the status information
about the Remote Process Group with the given ID during the given time
periodStatusHistory getNodeStatusHistory(Date start, Date end)
start - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, the end date should be assumed to be the
current timeStatusHistory that provides the status information
about the NiFi node within the specified time range.GarbageCollectionHistory getGarbageCollectionHistory(Date start, Date end)
start - the earliest date for which status information should be
returned; if null, the start date should be assumed to be
the beginning of timeend - the latest date for which status information should be
returned; if null, the end date should be assumed to be the
current timeGarbageCollectionHistory that provides the status information
about the garbage collection of the given node within the specified time rangevoid start()
void shutdown()
Copyright © 2023 Apache NiFi Project. All rights reserved.