bbende commented on code in PR #10913:
URL: https://github.com/apache/nifi/pull/10913#discussion_r2823071553
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java:
##########
@@ -5275,6 +5278,61 @@ public ConnectorDTO createConnectorDto(final
ConnectorNode connector) {
return dto;
}
+ public ConnectorStatusDTO createConnectorStatusDto(final ConnectorNode
connectorNode, final ProcessGroupStatus managedGroupStatus) {
+ if (connectorNode == null) {
+ return null;
+ }
+
+ final ConnectorStatusDTO statusDto = new ConnectorStatusDTO();
+ statusDto.setId(connectorNode.getIdentifier());
+ statusDto.setName(connectorNode.getName());
+ statusDto.setType(connectorNode.getCanonicalClassName());
+ statusDto.setRunStatus(connectorNode.getCurrentState().name());
+
statusDto.setValidationStatus(connectorNode.getValidationStatus().name());
+ statusDto.setStatsLastRefreshed(new Date());
+
+ final ConnectorStatusSnapshotDTO snapshot = new
ConnectorStatusSnapshotDTO();
Review Comment:
Discussed offline and it is not necessary to set groupId since this is the
top level Connector status
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]