Package org.apache.nifi.reporting
Class AbstractEventAccess
java.lang.Object
org.apache.nifi.reporting.AbstractEventAccess
- All Implemented Interfaces:
EventAccess
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FlowFileEventRepositoryprivate final FlowManagerprivate static final org.slf4j.Loggerprivate final ProcessSchedulerprivate final StatusAnalyticsEngine -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEventAccess(ProcessScheduler processScheduler, StatusAnalyticsEngine analyticsEngine, FlowManager flowManager, FlowFileEventRepository flowFileEventRepository) -
Method Summary
Modifier and TypeMethodDescriptionprivate RemoteProcessGroupStatuscreateRemoteGroupStatus(RemoteProcessGroup remoteGroup, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized) protected RepositoryStatusReportReturns the status of all components in the controller.getGroupStatus(String groupId) Returns the status of all components in the specified group.getGroupStatus(String groupId, RepositoryStatusReport statusReport) Returns the status for the components in the specified group with the specified report.(package private) ProcessGroupStatusgetGroupStatus(ProcessGroup group, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized, int recursiveStatusDepth, int currentDepth, boolean includeConnectionDetails) Returns the status for the components in the specified group with the specified report.protected ProcessorStatusgetProcessorStatus(FlowFileEvent flowFileEvent, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) private ProcessorStatusgetProcessorStatus(RepositoryStatusReport report, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) getProvenanceEvents(long firstEventId, int maxRecords) longReturns the total number of bytes read by this instance (at the root process group level, i.e.longReturns the total number of bytes received by this instance (at the root process group level) since the instance startedlongReturns the total number of bytes sent by this instance (at the root process group level) since the instance startedlongReturns the total number of bytes written by this instance (at the root process group level, i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.reporting.EventAccess
getContentRepositoryStorageUsage, getFlowChanges, getFlowFileRepositoryStorageUsage, getProvenanceRepository, getProvenanceRepositoryStorageUsage
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
processScheduler
-
statusAnalyticsEngine
-
flowManager
-
flowFileEventRepository
-
-
Constructor Details
-
AbstractEventAccess
public AbstractEventAccess(ProcessScheduler processScheduler, StatusAnalyticsEngine analyticsEngine, FlowManager flowManager, FlowFileEventRepository flowFileEventRepository)
-
-
Method Details
-
getGroupStatus
Returns the status of all components in the specified group. This request is not in the context of a user so the results will be unfiltered.- Specified by:
getGroupStatusin interfaceEventAccess- Parameters:
groupId- group id- Returns:
- the component status
-
getGroupStatus
Returns the status for the components in the specified group with the specified report. This request is not in the context of a user so the results will be unfiltered.- Parameters:
groupId- group idstatusReport- report- Returns:
- the component status
-
generateRepositoryStatusReport
-
getGroupStatus
ProcessGroupStatus getGroupStatus(ProcessGroup group, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized, int recursiveStatusDepth, int currentDepth, boolean includeConnectionDetails) Returns the status for the components in the specified group with the specified report. The results will be filtered by executing the specified predicate.- Parameters:
group- group idstatusReport- reportisAuthorized- is authorized checkrecursiveStatusDepth- the number of levels deep we should recurse and still include the the processors' statuses, the groups' statuses, etc. in the returned ProcessGroupStatuscurrentDepth- the current number of levels deep that we have recursedincludeConnectionDetails- whether or not to include the details of the connections that may be expensive to calculate and/or require locks be obtained- Returns:
- the component status
-
createRemoteGroupStatus
private RemoteProcessGroupStatus createRemoteGroupStatus(RemoteProcessGroup remoteGroup, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized) -
getProcessorStatus
private ProcessorStatus getProcessorStatus(RepositoryStatusReport report, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) -
getProcessorStatus
protected ProcessorStatus getProcessorStatus(FlowFileEvent flowFileEvent, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) -
getControllerStatus
Returns the status of all components in the controller. This request is not in the context of a user so the results will be unfiltered.- Specified by:
getControllerStatusin interfaceEventAccess- Returns:
- the component status
-
getProvenanceEvents
public List<ProvenanceEventRecord> getProvenanceEvents(long firstEventId, int maxRecords) throws IOException - Specified by:
getProvenanceEventsin interfaceEventAccess- Throws:
IOException
-
getTotalBytesRead
public long getTotalBytesRead()Returns the total number of bytes read by this instance (at the root process group level, i.e. all events) since the instance started- Specified by:
getTotalBytesReadin interfaceEventAccess- Returns:
- the total number of bytes read by this instance
-
getTotalBytesWritten
public long getTotalBytesWritten()Returns the total number of bytes written by this instance (at the root process group level, i.e. all events) since the instance started- Specified by:
getTotalBytesWrittenin interfaceEventAccess- Returns:
- the total number of bytes written by this instance
-
getTotalBytesSent
public long getTotalBytesSent()Returns the total number of bytes sent by this instance (at the root process group level) since the instance started- Specified by:
getTotalBytesSentin interfaceEventAccess- Returns:
- the total number of bytes sent by this instance
-
getTotalBytesReceived
public long getTotalBytesReceived()Returns the total number of bytes received by this instance (at the root process group level) since the instance started- Specified by:
getTotalBytesReceivedin interfaceEventAccess- Returns:
- the total number of bytes received by this instance
-