public class VolatileComponentStatusRepository extends java.lang.Object implements ComponentStatusRepository
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_DATA_POINTS |
static java.lang.String |
NUM_DATA_POINTS_PROPERTY |
COMPONENT_DETAIL_DESTINATION_NAME, COMPONENT_DETAIL_GROUP_ID, COMPONENT_DETAIL_ID, COMPONENT_DETAIL_NAME, COMPONENT_DETAIL_SOURCE_NAME, COMPONENT_DETAIL_TYPE, COMPONENT_DETAIL_URI
Constructor and Description |
---|
VolatileComponentStatusRepository()
Default no args constructor for service loading only
|
VolatileComponentStatusRepository(NiFiProperties nifiProperties) |
Modifier and Type | Method and Description |
---|---|
void |
capture(ProcessGroupStatus rootGroupStatus)
Captures the status information provided in the given report
|
void |
capture(ProcessGroupStatus rootGroupStatus,
java.util.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(java.lang.String connectionId,
java.util.Date start,
java.util.Date end,
int preferredDataPoints) |
java.util.Date |
getLastCaptureDate() |
StatusHistory |
getProcessGroupStatusHistory(java.lang.String processGroupId,
java.util.Date start,
java.util.Date end,
int preferredDataPoints) |
StatusHistory |
getProcessorStatusHistory(java.lang.String processorId,
java.util.Date start,
java.util.Date end,
int preferredDataPoints,
boolean includeCounters) |
StatusHistory |
getRemoteProcessGroupStatusHistory(java.lang.String remoteGroupId,
java.util.Date start,
java.util.Date end,
int preferredDataPoints) |
public static final java.lang.String NUM_DATA_POINTS_PROPERTY
public static final int DEFAULT_NUM_DATA_POINTS
public VolatileComponentStatusRepository()
public VolatileComponentStatusRepository(NiFiProperties nifiProperties)
public void capture(ProcessGroupStatus rootGroupStatus)
ComponentStatusRepository
capture
in interface ComponentStatusRepository
rootGroupStatus
- status of root grouppublic void capture(ProcessGroupStatus rootGroupStatus, java.util.Date timestamp)
ComponentStatusRepository
capture
in interface ComponentStatusRepository
rootGroupStatus
- statustimestamp
- timestamp of capturepublic java.util.Date getLastCaptureDate()
getLastCaptureDate
in interface ComponentStatusRepository
public StatusHistory getProcessorStatusHistory(java.lang.String processorId, java.util.Date start, java.util.Date end, int preferredDataPoints, boolean includeCounters)
getProcessorStatusHistory
in interface ComponentStatusRepository
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 periodpublic StatusHistory getConnectionStatusHistory(java.lang.String connectionId, java.util.Date start, java.util.Date end, int preferredDataPoints)
getConnectionStatusHistory
in interface ComponentStatusRepository
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 periodpublic StatusHistory getProcessGroupStatusHistory(java.lang.String processGroupId, java.util.Date start, java.util.Date end, int preferredDataPoints)
getProcessGroupStatusHistory
in interface ComponentStatusRepository
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 periodpublic StatusHistory getRemoteProcessGroupStatusHistory(java.lang.String remoteGroupId, java.util.Date start, java.util.Date end, int preferredDataPoints)
getRemoteProcessGroupStatusHistory
in interface ComponentStatusRepository
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
period