NIFI-4615

- processor status is set to the ProcessorStatusDTO object
- This closes #2276
This commit is contained in:
sbouchex 2017-11-17 14:25:16 +01:00 committed by Matt Gilman
parent 2da72f1524
commit c89d793364
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
2 changed files with 3 additions and 0 deletions

View File

@ -362,6 +362,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();
nodeSnapshot.setStatusSnapshot(toMerge.getAggregateSnapshot());

View File

@ -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);