Class AbstractEventAccess

java.lang.Object
org.apache.nifi.reporting.AbstractEventAccess
All Implemented Interfaces:
EventAccess

public abstract class AbstractEventAccess extends Object implements EventAccess
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • AUTHORIZATION_APPROVED

      private static final Predicate<Authorizable> AUTHORIZATION_APPROVED
    • AUTHORIZATION_DENIED

      private static final Predicate<Authorizable> AUTHORIZATION_DENIED
    • processScheduler

      private final ProcessScheduler processScheduler
    • statusAnalyticsEngine

      private final org.apache.nifi.controller.status.analytics.StatusAnalyticsEngine statusAnalyticsEngine
    • flowManager

      private final FlowManager flowManager
    • flowFileEventRepository

      private final FlowFileEventRepository flowFileEventRepository
  • Constructor Details

  • Method Details

    • getGroupStatus

      public org.apache.nifi.controller.status.ProcessGroupStatus getGroupStatus(String groupId)
      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:
      getGroupStatus in interface EventAccess
      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 id
      statusReport - report
      Returns:
      the component status
    • generateRepositoryStatusReport

      protected RepositoryStatusReport 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 id
      statusReport - report
      checkAuthorization - is authorized check
      recursiveStatusDepth - the number of levels deep we should recurse and still include the the processors' statuses, the groups' statuses, etc. in the returned ProcessGroupStatus
      currentDepth - the current number of levels deep that we have recursed
      includeConnectionDetails - 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:
      getControllerStatus in interface EventAccess
      Returns:
      the component status
    • getProvenanceEvents

      public List<ProvenanceEventRecord> getProvenanceEvents(long firstEventId, int maxRecords) throws IOException
      Specified by:
      getProvenanceEvents in interface EventAccess
      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:
      getTotalBytesRead in interface EventAccess
      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:
      getTotalBytesWritten in interface EventAccess
      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:
      getTotalBytesSent in interface EventAccess
      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:
      getTotalBytesReceived in interface EventAccess
      Returns:
      the total number of bytes received by this instance