Package org.apache.nifi.reporting
Class AbstractEventAccess
java.lang.Object
org.apache.nifi.reporting.AbstractEventAccess
- All Implemented Interfaces:
EventAccess
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Predicate<Authorizable> private static final Predicate<Authorizable> private final FlowFileEventRepositoryprivate final FlowManagerprivate static final org.slf4j.Loggerprivate final ProcessSchedulerprivate final org.apache.nifi.controller.status.analytics.StatusAnalyticsEngine -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEventAccess(ProcessScheduler processScheduler, org.apache.nifi.controller.status.analytics.StatusAnalyticsEngine analyticsEngine, FlowManager flowManager, FlowFileEventRepository flowFileEventRepository) -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.nifi.controller.status.RemoteProcessGroupStatuscreateRemoteGroupStatus(RemoteProcessGroup remoteGroup, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized) protected RepositoryStatusReportorg.apache.nifi.controller.status.ProcessGroupStatusReturns the status of all components in the controller.org.apache.nifi.controller.status.ProcessGroupStatusgetGroupStatus(String groupId) Returns the status of all components in the specified group.org.apache.nifi.controller.status.ProcessGroupStatusgetGroupStatus(String groupId, RepositoryStatusReport statusReport) Returns the status for the components in the specified group with the specified report.(package private) org.apache.nifi.controller.status.ProcessGroupStatusgetGroupStatus(ProcessGroup group, RepositoryStatusReport statusReport, Predicate<Authorizable> checkAuthorization, int recursiveStatusDepth, int currentDepth, boolean includeConnectionDetails) Returns the status for the components in the specified group with the specified report.protected org.apache.nifi.controller.status.ProcessorStatusgetProcessorStatus(FlowFileEvent flowFileEvent, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) private org.apache.nifi.controller.status.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 -
AUTHORIZATION_APPROVED
-
AUTHORIZATION_DENIED
-
processScheduler
-
statusAnalyticsEngine
private final org.apache.nifi.controller.status.analytics.StatusAnalyticsEngine statusAnalyticsEngine -
flowManager
-
flowFileEventRepository
-
-
Constructor Details
-
AbstractEventAccess
public AbstractEventAccess(ProcessScheduler processScheduler, org.apache.nifi.controller.status.analytics.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
public org.apache.nifi.controller.status.ProcessGroupStatus getGroupStatus(String groupId, RepositoryStatusReport statusReport) 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
org.apache.nifi.controller.status.ProcessGroupStatus getGroupStatus(ProcessGroup group, RepositoryStatusReport statusReport, Predicate<Authorizable> checkAuthorization, 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- reportcheckAuthorization- 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 org.apache.nifi.controller.status.RemoteProcessGroupStatus createRemoteGroupStatus(RemoteProcessGroup remoteGroup, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized) -
getProcessorStatus
private org.apache.nifi.controller.status.ProcessorStatus getProcessorStatus(RepositoryStatusReport report, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) -
getProcessorStatus
protected org.apache.nifi.controller.status.ProcessorStatus getProcessorStatus(FlowFileEvent flowFileEvent, ProcessorNode procNode, Predicate<Authorizable> isAuthorized) -
getControllerStatus
public org.apache.nifi.controller.status.ProcessGroupStatus 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
-