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
|
@ -361,6 +361,8 @@ public class StatusMerger {
|
|||
}
|
||||
|
||||
merge(target.getAggregateSnapshot(), targetReadablePermission, toMerge.getAggregateSnapshot(), toMergeReadablePermission);
|
||||
|
||||
target.setRunStatus(target.getAggregateSnapshot().getRunStatus());
|
||||
|
||||
if (target.getNodeSnapshots() != null) {
|
||||
final NodeProcessorStatusSnapshotDTO nodeSnapshot = new NodeProcessorStatusSnapshotDTO();
|
||||
|
|
|
@ -1083,6 +1083,7 @@ public final class DtoFactory {
|
|||
dto.setGroupId(procStatus.getGroupId());
|
||||
dto.setName(procStatus.getName());
|
||||
dto.setStatsLastRefreshed(new Date());
|
||||
dto.setRunStatus(procStatus.getRunStatus().toString());
|
||||
|
||||
final ProcessorStatusSnapshotDTO snapshot = new ProcessorStatusSnapshotDTO();
|
||||
dto.setAggregateSnapshot(snapshot);
|
||||
|
|
Loading…
Reference in New Issue