mirror of https://github.com/apache/nifi.git
NIFI-4615
- processor status is set to the ProcessorStatusDTO object - This closes #2276
This commit is contained in:
parent
2da72f1524
commit
c89d793364
|
@ -362,6 +362,8 @@ public class StatusMerger {
|
||||||
|
|
||||||
merge(target.getAggregateSnapshot(), targetReadablePermission, toMerge.getAggregateSnapshot(), toMergeReadablePermission);
|
merge(target.getAggregateSnapshot(), targetReadablePermission, toMerge.getAggregateSnapshot(), toMergeReadablePermission);
|
||||||
|
|
||||||
|
target.setRunStatus(target.getAggregateSnapshot().getRunStatus());
|
||||||
|
|
||||||
if (target.getNodeSnapshots() != null) {
|
if (target.getNodeSnapshots() != null) {
|
||||||
final NodeProcessorStatusSnapshotDTO nodeSnapshot = new NodeProcessorStatusSnapshotDTO();
|
final NodeProcessorStatusSnapshotDTO nodeSnapshot = new NodeProcessorStatusSnapshotDTO();
|
||||||
nodeSnapshot.setStatusSnapshot(toMerge.getAggregateSnapshot());
|
nodeSnapshot.setStatusSnapshot(toMerge.getAggregateSnapshot());
|
||||||
|
|
|
@ -1083,6 +1083,7 @@ public final class DtoFactory {
|
||||||
dto.setGroupId(procStatus.getGroupId());
|
dto.setGroupId(procStatus.getGroupId());
|
||||||
dto.setName(procStatus.getName());
|
dto.setName(procStatus.getName());
|
||||||
dto.setStatsLastRefreshed(new Date());
|
dto.setStatsLastRefreshed(new Date());
|
||||||
|
dto.setRunStatus(procStatus.getRunStatus().toString());
|
||||||
|
|
||||||
final ProcessorStatusSnapshotDTO snapshot = new ProcessorStatusSnapshotDTO();
|
final ProcessorStatusSnapshotDTO snapshot = new ProcessorStatusSnapshotDTO();
|
||||||
dto.setAggregateSnapshot(snapshot);
|
dto.setAggregateSnapshot(snapshot);
|
||||||
|
|
Loading…
Reference in New Issue