You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ai...@apache.org on 2019/09/06 19:15:34 UTC
[nifi] branch analytics-framework updated: NIFI-6510 Rip out
useless members
This is an automated email from the ASF dual-hosted git repository.
aichrist pushed a commit to branch analytics-framework
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/analytics-framework by this push:
new 6ed10bf NIFI-6510 Rip out useless members
6ed10bf is described below
commit 6ed10bf6685235d1e52413c75459bb2e5906bcde
Author: Andrew I. Christianson <an...@andyic.org>
AuthorDate: Fri Sep 6 15:14:58 2019 -0400
NIFI-6510 Rip out useless members
---
.../api/dto/status/ConnectionStatisticsDTO.java | 67 ----------------------
.../org/apache/nifi/web/api/dto/DtoFactory.java | 6 --
2 files changed, 73 deletions(-)
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ConnectionStatisticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ConnectionStatisticsDTO.java
index 79ae947..239d861 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ConnectionStatisticsDTO.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ConnectionStatisticsDTO.java
@@ -29,15 +29,8 @@ import java.util.List;
@XmlType(name = "connectionStatistics")
public class ConnectionStatisticsDTO implements Cloneable {
private String id;
- private String groupId;
- private String name;
private Date statsLastRefreshed;
- private String sourceId;
- private String sourceName;
- private String destinationId;
-
- private String destinationName;
private ConnectionStatisticsSnapshotDTO aggregateSnapshot;
private List<NodeConnectionStatisticsSnapshotDTO> nodeSnapshots;
@@ -51,60 +44,6 @@ public class ConnectionStatisticsDTO implements Cloneable {
this.id = id;
}
- @ApiModelProperty("The ID of the Process Group that the connection belongs to")
- public String getGroupId() {
- return groupId;
- }
-
- public void setGroupId(String groupId) {
- this.groupId = groupId;
- }
-
- @ApiModelProperty("The name of the connection")
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- @ApiModelProperty("The ID of the source component")
- public String getSourceId() {
- return sourceId;
- }
-
- public void setSourceId(String sourceId) {
- this.sourceId = sourceId;
- }
-
- @ApiModelProperty("The name of the source component")
- public String getSourceName() {
- return sourceName;
- }
-
- public void setSourceName(String sourceName) {
- this.sourceName = sourceName;
- }
-
- @ApiModelProperty("The ID of the destination component")
- public String getDestinationId() {
- return destinationId;
- }
-
- public void setDestinationId(String destinationId) {
- this.destinationId = destinationId;
- }
-
- @ApiModelProperty("The name of the destination component")
- public String getDestinationName() {
- return destinationName;
- }
-
- public void setDestinationName(String destinationName) {
- this.destinationName = destinationName;
- }
-
@ApiModelProperty("The status snapshot that represents the aggregate stats of the cluster")
public ConnectionStatisticsSnapshotDTO getAggregateSnapshot() {
return aggregateSnapshot;
@@ -139,13 +78,7 @@ public class ConnectionStatisticsDTO implements Cloneable {
@Override
public ConnectionStatisticsDTO clone() {
final ConnectionStatisticsDTO other = new ConnectionStatisticsDTO();
- other.setDestinationId(getDestinationId());
- other.setDestinationName(getDestinationName());
- other.setGroupId(getGroupId());
other.setId(getId());
- other.setName(getName());
- other.setSourceId(getSourceId());
- other.setSourceName(getSourceName());
other.setAggregateSnapshot(getAggregateSnapshot().clone());
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
index 53b3ba2..42253d7 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
@@ -1222,13 +1222,7 @@ public final class DtoFactory {
public ConnectionStatisticsDTO createConnectionStatisticsDto(final Connection connection, final StatusAnalytics statusAnalytics) {
final ConnectionStatisticsDTO connectionStatisticsDTO = new ConnectionStatisticsDTO();
- connectionStatisticsDTO.setGroupId(connection.getProcessGroup().getIdentifier());
connectionStatisticsDTO.setId(connection.getIdentifier());
- connectionStatisticsDTO.setName(connection.getName());
- connectionStatisticsDTO.setSourceId(connection.getSource().getIdentifier());
- connectionStatisticsDTO.setSourceName(connection.getSource().getName());
- connectionStatisticsDTO.setDestinationId(connection.getDestination().getIdentifier());
- connectionStatisticsDTO.setDestinationName(connection.getDestination().getName());
connectionStatisticsDTO.setStatsLastRefreshed(new Date());
final ConnectionStatisticsSnapshotDTO snapshot = new ConnectionStatisticsSnapshotDTO();