public class MockEventAccess extends Object implements EventAccess
Modifier and Type | Field and Description |
---|---|
private List<Action> |
flowChanges |
private ProcessGroupStatus |
processGroupStatus |
private Map<String,ProcessGroupStatus> |
processGroupStatusMap |
private List<ProvenanceEventRecord> |
provenanceRecords |
Constructor and Description |
---|
MockEventAccess() |
Modifier and Type | Method and Description |
---|---|
void |
addFlowChange(Action action) |
void |
addProvenanceEvent(ProvenanceEventRecord record) |
ProcessGroupStatus |
getControllerStatus() |
List<Action> |
getFlowChanges(int firstActionId,
int maxActions) |
ProcessGroupStatus |
getGroupStatus(String groupId) |
List<ProvenanceEventRecord> |
getProvenanceEvents(long firstEventId,
int maxRecords) |
ProvenanceEventRepository |
getProvenanceRepository() |
long |
getTotalBytesRead() |
long |
getTotalBytesReceived() |
long |
getTotalBytesSent() |
long |
getTotalBytesWritten() |
void |
setProcessGroupStatus(ProcessGroupStatus status) |
void |
setProcessGroupStatus(String groupId,
ProcessGroupStatus status) |
private ProcessGroupStatus processGroupStatus
private final List<ProvenanceEventRecord> provenanceRecords
private final Map<String,ProcessGroupStatus> processGroupStatusMap
public void setProcessGroupStatus(ProcessGroupStatus status)
public void setProcessGroupStatus(String groupId, ProcessGroupStatus status)
public ProcessGroupStatus getControllerStatus()
getControllerStatus
in interface EventAccess
public ProcessGroupStatus getGroupStatus(String groupId)
getGroupStatus
in interface EventAccess
public List<ProvenanceEventRecord> getProvenanceEvents(long firstEventId, int maxRecords) throws IOException
getProvenanceEvents
in interface EventAccess
IOException
public void addProvenanceEvent(ProvenanceEventRecord record)
public ProvenanceEventRepository getProvenanceRepository()
getProvenanceRepository
in interface EventAccess
public List<Action> getFlowChanges(int firstActionId, int maxActions)
getFlowChanges
in interface EventAccess
public void addFlowChange(Action action)
public long getTotalBytesRead()
getTotalBytesRead
in interface EventAccess
public long getTotalBytesWritten()
getTotalBytesWritten
in interface EventAccess
public long getTotalBytesSent()
getTotalBytesSent
in interface EventAccess
public long getTotalBytesReceived()
getTotalBytesReceived
in interface EventAccess
Copyright © 2023 Apache NiFi Project. All rights reserved.