mirror of https://github.com/apache/nifi.git
NIFI-9033: Defining Validators and default values for NifiStatelessConnectors' DATA_FLOW name. (#5296)
This commit is contained in:
parent
34ab0d8c25
commit
8d2ced429d
|
@ -49,6 +49,8 @@ import java.util.jar.Manifest;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import static org.apache.kafka.common.config.ConfigDef.NonEmptyStringWithoutControlChars.nonEmptyStringWithoutControlChars;
|
||||
|
||||
public class StatelessKafkaConnectorUtil {
|
||||
private static final String UNKNOWN_VERSION = "<Unable to determine Stateless NiFi Kafka Connector Version>";
|
||||
private static final Logger logger = LoggerFactory.getLogger(StatelessKafkaConnectorUtil.class);
|
||||
|
@ -96,7 +98,7 @@ public class StatelessKafkaConnectorUtil {
|
|||
"Specifies the temporary working directory for expanding NiFi Archives (NARs)");
|
||||
configDef.define(FLOW_SNAPSHOT, ConfigDef.Type.STRING, null, new FlowSnapshotValidator(), ConfigDef.Importance.HIGH,
|
||||
"Specifies the dataflow to run. This may be a file containing the dataflow, a URL that points to a dataflow, or a String containing the entire dataflow as an escaped JSON.");
|
||||
configDef.define(DATAFLOW_NAME, ConfigDef.Type.STRING, null, ConfigDef.Importance.HIGH, "The name of the dataflow.");
|
||||
configDef.define(DATAFLOW_NAME, ConfigDef.Type.STRING, ConfigDef.NO_DEFAULT_VALUE, nonEmptyStringWithoutControlChars(), ConfigDef.Importance.HIGH, "The name of the dataflow.");
|
||||
|
||||
configDef.define(StatelessKafkaConnectorUtil.KRB5_FILE, ConfigDef.Type.STRING, StatelessKafkaConnectorUtil.DEFAULT_KRB5_FILE, ConfigDef.Importance.MEDIUM,
|
||||
"Specifies the krb5.conf file to use if connecting to Kerberos-enabled services");
|
||||
|
|
Loading…
Reference in New Issue