2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * Modifications to the original nifi code for the ONAP project are made
18 * available under the Apache License, Version 2.0
20 package org.apache.nifi.web.api.dto;
22 import io.swagger.annotations.ApiModelProperty;
23 import org.apache.nifi.web.api.dto.util.TimeAdapter;
25 import javax.xml.bind.annotation.XmlType;
26 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27 import java.util.Date;
30 * Details for the controller configuration.
32 @XmlType(name = "flowConfiguration")
33 public class FlowConfigurationDTO {
35 private Boolean supportsManagedAuthorizer;
36 private Boolean supportsConfigurableAuthorizer;
37 private Boolean supportsConfigurableUsersAndGroups;
38 private Long autoRefreshIntervalSeconds;
40 private Date currentTime;
41 private Integer timeOffset;
43 private Long defaultBackPressureObjectThreshold;
44 private String defaultBackPressureDataSizeThreshold;
46 private String dcaeDistributorApiHostname;
50 * @return getter and setter for dcae distributor api hostname. This value is read only
53 value = "Whether it picks up configurable host address.",
56 public String getDcaeDistributorApiHostname() {
57 return dcaeDistributorApiHostname;
60 public void setDcaeDistributorApiHostname(String dcaeDistributorApiHostname) {
61 this.dcaeDistributorApiHostname = dcaeDistributorApiHostname;
65 * @return interval in seconds between the automatic NiFi refresh requests. This value is read only
68 value = "The interval in seconds between the automatic NiFi refresh requests.",
71 public Long getAutoRefreshIntervalSeconds() {
72 return autoRefreshIntervalSeconds;
75 public void setAutoRefreshIntervalSeconds(Long autoRefreshIntervalSeconds) {
76 this.autoRefreshIntervalSeconds = autoRefreshIntervalSeconds;
80 * @return whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups,
81 * and policies in the UI. This value is read only
84 value = "Whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups, and policies in the UI.",
87 public Boolean getSupportsManagedAuthorizer() {
88 return supportsManagedAuthorizer;
91 public void setSupportsManagedAuthorizer(Boolean supportsManagedAuthorizer) {
92 this.supportsManagedAuthorizer = supportsManagedAuthorizer;
96 * @return whether this NiFi supports configurable users and groups. This value is read only
99 value = "Whether this NiFi supports configurable users and groups.",
102 public Boolean getSupportsConfigurableUsersAndGroups() {
103 return supportsConfigurableUsersAndGroups;
106 public void setSupportsConfigurableUsersAndGroups(Boolean supportsConfigurableUsersAndGroups) {
107 this.supportsConfigurableUsersAndGroups = supportsConfigurableUsersAndGroups;
111 * @return whether this NiFi supports a configurable authorizer. This value is read only
114 value = "Whether this NiFi supports a configurable authorizer.",
117 public Boolean getSupportsConfigurableAuthorizer() {
118 return supportsConfigurableAuthorizer;
121 public void setSupportsConfigurableAuthorizer(Boolean supportsConfigurableAuthorizer) {
122 this.supportsConfigurableAuthorizer = supportsConfigurableAuthorizer;
126 * @return current time on the server
128 @XmlJavaTypeAdapter(TimeAdapter.class)
130 value = "The current time on the system.",
133 public Date getCurrentTime() {
137 public void setCurrentTime(Date currentTime) {
138 this.currentTime = currentTime;
142 * @return time offset of the server
145 value = "The time offset of the system."
147 public Integer getTimeOffset() {
151 public void setTimeOffset(Integer timeOffset) {
152 this.timeOffset = timeOffset;
156 * @return the default back pressure object threshold
159 value = "The default back pressure object threshold."
161 public Long getDefaultBackPressureObjectThreshold() {
162 return defaultBackPressureObjectThreshold;
165 public void setDefaultBackPressureObjectThreshold(Long backPressureObjectThreshold) {
166 this.defaultBackPressureObjectThreshold = backPressureObjectThreshold;
170 * @return the default back pressure data size threshold
173 value = "The default back pressure data size threshold."
175 public String getDefaultBackPressureDataSizeThreshold() {
176 return defaultBackPressureDataSizeThreshold;
179 public void setDefaultBackPressureDataSizeThreshold(String backPressureDataSizeThreshold) {
180 this.defaultBackPressureDataSizeThreshold = backPressureDataSizeThreshold;