Package org.apache.nifi.util
Class MockEventAccess
java.lang.Object
org.apache.nifi.util.MockEventAccess
- All Implemented Interfaces:
EventAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate ProcessGroupStatus
private final Map
<String, ProcessGroupStatus> private final List
<ProvenanceEventRecord> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFlowChange
(Action action) void
getFlowChanges
(int firstActionId, int maxActions) getGroupStatus
(String groupId) getProvenanceEvents
(long firstEventId, int maxRecords) long
long
long
long
void
setProcessGroupStatus
(String groupId, ProcessGroupStatus status) void
-
Field Details
-
processGroupStatus
-
provenanceRecords
-
flowChanges
-
processGroupStatusMap
-
-
Constructor Details
-
MockEventAccess
public MockEventAccess()
-
-
Method Details
-
setProcessGroupStatus
-
setProcessGroupStatus
-
getControllerStatus
- Specified by:
getControllerStatus
in interfaceEventAccess
-
getGroupStatus
- Specified by:
getGroupStatus
in interfaceEventAccess
-
getProvenanceEvents
public List<ProvenanceEventRecord> getProvenanceEvents(long firstEventId, int maxRecords) throws IOException - Specified by:
getProvenanceEvents
in interfaceEventAccess
- Throws:
IOException
-
addProvenanceEvent
-
getProvenanceRepository
- Specified by:
getProvenanceRepository
in interfaceEventAccess
-
getFlowChanges
- Specified by:
getFlowChanges
in interfaceEventAccess
-
addFlowChange
-
getTotalBytesRead
public long getTotalBytesRead()- Specified by:
getTotalBytesRead
in interfaceEventAccess
-
getTotalBytesWritten
public long getTotalBytesWritten()- Specified by:
getTotalBytesWritten
in interfaceEventAccess
-
getTotalBytesSent
public long getTotalBytesSent()- Specified by:
getTotalBytesSent
in interfaceEventAccess
-
getTotalBytesReceived
public long getTotalBytesReceived()- Specified by:
getTotalBytesReceived
in interfaceEventAccess
-
getProvenanceRepositoryStorageUsage
- Specified by:
getProvenanceRepositoryStorageUsage
in interfaceEventAccess
-
getContentRepositoryStorageUsage
- Specified by:
getContentRepositoryStorageUsage
in interfaceEventAccess
-
getFlowFileRepositoryStorageUsage
- Specified by:
getFlowFileRepositoryStorageUsage
in interfaceEventAccess
-