Skip to content

Commit

Permalink
NIFI-14176 Add runstate information to C2 FlowInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Jan 20, 2025
1 parent 5cd52bb commit ab8a3c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class ProcessorStatus implements Serializable {
private long processingNanos;
private int activeThreadCount;
private int terminatedThreadCount;
private String runState;

@Schema(description = "The id of the processor")
public String getId() {
Expand Down Expand Up @@ -145,4 +146,11 @@ public int getTerminatedThreadCount() {
public void setTerminatedThreadCount(int terminatedThreadCount) {
this.terminatedThreadCount = terminatedThreadCount;
}

@Schema(description = "The state of the processor")
public String getRunState() { return runState; }

public void setRunState(String runState) {
this.runState = runState;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ private ProcessorStatus convertProcessorStatus(org.apache.nifi.controller.status
result.setProcessingNanos(processorStatus.getProcessingNanos());
result.setActiveThreadCount(processorStatus.getActiveThreadCount());
result.setTerminatedThreadCount(processorStatus.getTerminatedThreadCount());
result.setRunState(processorStatus.getRunStatus().name());
return result;
}
}

0 comments on commit ab8a3c5

Please sign in to comment.