public abstract class AbstractEventAccess extends Object implements EventAccess
| Modifier and Type | Field and Description |
|---|---|
private FlowFileEventRepository |
flowFileEventRepository |
private FlowManager |
flowManager |
private static org.slf4j.Logger |
logger |
private ProcessScheduler |
processScheduler |
private StatusAnalyticsEngine |
statusAnalyticsEngine |
| Constructor and Description |
|---|
AbstractEventAccess(ProcessScheduler processScheduler,
StatusAnalyticsEngine analyticsEngine,
FlowManager flowManager,
FlowFileEventRepository flowFileEventRepository) |
| Modifier and Type | Method and Description |
|---|---|
private RemoteProcessGroupStatus |
createRemoteGroupStatus(RemoteProcessGroup remoteGroup,
RepositoryStatusReport statusReport,
Predicate<Authorizable> isAuthorized) |
protected RepositoryStatusReport |
generateRepositoryStatusReport() |
ProcessGroupStatus |
getControllerStatus()
Returns the status of all components in the controller.
|
(package private) ProcessGroupStatus |
getGroupStatus(ProcessGroup group,
RepositoryStatusReport statusReport,
Predicate<Authorizable> isAuthorized,
int recursiveStatusDepth,
int currentDepth)
Returns the status for the components in the specified group with the
specified report.
|
ProcessGroupStatus |
getGroupStatus(String groupId)
Returns the status of all components in the specified group.
|
ProcessGroupStatus |
getGroupStatus(String groupId,
RepositoryStatusReport statusReport)
Returns the status for the components in the specified group with the
specified report.
|
protected ProcessorStatus |
getProcessorStatus(FlowFileEvent flowFileEvent,
ProcessorNode procNode,
Predicate<Authorizable> isAuthorized) |
private ProcessorStatus |
getProcessorStatus(RepositoryStatusReport report,
ProcessorNode procNode,
Predicate<Authorizable> isAuthorized) |
List<ProvenanceEventRecord> |
getProvenanceEvents(long firstEventId,
int maxRecords) |
long |
getTotalBytesRead()
Returns the total number of bytes read by this instance (at the root process group level, i.e.
|
long |
getTotalBytesReceived()
Returns the total number of bytes received by this instance (at the root process group level) since the instance started
|
long |
getTotalBytesSent()
Returns the total number of bytes sent by this instance (at the root process group level) since the instance started
|
long |
getTotalBytesWritten()
Returns the total number of bytes written by this instance (at the root process group level, i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFlowChanges, getProvenanceRepositoryprivate static final org.slf4j.Logger logger
private final ProcessScheduler processScheduler
private final StatusAnalyticsEngine statusAnalyticsEngine
private final FlowManager flowManager
private final FlowFileEventRepository flowFileEventRepository
public AbstractEventAccess(ProcessScheduler processScheduler, StatusAnalyticsEngine analyticsEngine, FlowManager flowManager, FlowFileEventRepository flowFileEventRepository)
public ProcessGroupStatus getGroupStatus(String groupId)
getGroupStatus in interface EventAccessgroupId - group idpublic ProcessGroupStatus getGroupStatus(String groupId, RepositoryStatusReport statusReport)
groupId - group idstatusReport - reportprotected RepositoryStatusReport generateRepositoryStatusReport()
ProcessGroupStatus getGroupStatus(ProcessGroup group, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized, int recursiveStatusDepth, int currentDepth)
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 recursedprivate RemoteProcessGroupStatus createRemoteGroupStatus(RemoteProcessGroup remoteGroup, RepositoryStatusReport statusReport, Predicate<Authorizable> isAuthorized)
private ProcessorStatus getProcessorStatus(RepositoryStatusReport report, ProcessorNode procNode, Predicate<Authorizable> isAuthorized)
protected ProcessorStatus getProcessorStatus(FlowFileEvent flowFileEvent, ProcessorNode procNode, Predicate<Authorizable> isAuthorized)
public ProcessGroupStatus getControllerStatus()
getControllerStatus in interface EventAccesspublic List<ProvenanceEventRecord> getProvenanceEvents(long firstEventId, int maxRecords) throws IOException
getProvenanceEvents in interface EventAccessIOExceptionpublic long getTotalBytesRead()
getTotalBytesRead in interface EventAccesspublic long getTotalBytesWritten()
getTotalBytesWritten in interface EventAccesspublic long getTotalBytesSent()
getTotalBytesSent in interface EventAccesspublic long getTotalBytesReceived()
getTotalBytesReceived in interface EventAccessCopyright © 2021 Apache NiFi Project. All rights reserved.