本文整理匯總了Java中org.apache.nifi.components.PropertyDescriptor類的典型用法代碼示例。如果您正苦於以下問題:Java PropertyDescriptor類的具體用法?Java PropertyDescriptor怎麽用?Java PropertyDescriptor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PropertyDescriptor類屬於org.apache.nifi.components包,在下文中一共展示了PropertyDescriptor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected void init(final ProcessorInitializationContext context) {
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(DIRECTORY);
properties.add(FILE_FILTER);
properties.add(PATH_FILTER);
properties.add(BATCH_SIZE);
properties.add(KEEP_SOURCE_FILE);
properties.add(RECURSE);
properties.add(POLLING_INTERVAL);
properties.add(IGNORE_HIDDEN_FILES);
properties.add(MIN_AGE);
properties.add(MAX_AGE);
properties.add(MIN_SIZE);
properties.add(MAX_SIZE);
properties.add(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
final Set<Relationship> relationships = new HashSet<>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例2: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected void init(final ProcessorInitializationContext context) {
final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
properties.add(DIRECTORY);
properties.add(FILE_FILTER);
properties.add(PATH_FILTER);
properties.add(BATCH_SIZE);
properties.add(KEEP_SOURCE_FILE);
properties.add(RECURSE);
properties.add(POLLING_INTERVAL);
properties.add(IGNORE_HIDDEN_FILES);
properties.add(MIN_AGE);
properties.add(MAX_AGE);
properties.add(MIN_SIZE);
properties.add(MAX_SIZE);
this.properties = Collections.unmodifiableList(properties);
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例3: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected void init(final ProcessorInitializationContext context) {
final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
// properties.add(DIRECTORY);
properties.add(FILE_FILTER);
properties.add(PATH_FILTER);
properties.add(BATCH_SIZE);
properties.add(KEEP_SOURCE_FILE);
properties.add(RECURSE);
properties.add(POLLING_INTERVAL);
properties.add(IGNORE_HIDDEN_FILES);
properties.add(MIN_AGE);
properties.add(MAX_AGE);
properties.add(MIN_SIZE);
properties.add(MAX_SIZE);
this.properties = Collections.unmodifiableList(properties);
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例4: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected void init(final ProcessorInitializationContext context) {
// relationships
final Set<Relationship> procRels = new HashSet<Relationship>();
procRels.add(REL_SUCCESS);
procRels.add(REL_FAILURE);
relationships = Collections.unmodifiableSet(procRels);
// descriptors
final List<PropertyDescriptor> supDescriptors = new ArrayList<PropertyDescriptor>();
supDescriptors.add(DIRECTORY);
supDescriptors.add(CONFLICT_RESOLUTION);
supDescriptors.add(CREATE_DIRS);
supDescriptors.add(MAX_DESTINATION_FILES);
supDescriptors.add(CHANGE_LAST_MODIFIED_TIME);
supDescriptors.add(CHANGE_PERMISSIONS);
supDescriptors.add(CHANGE_OWNER);
supDescriptors.add(CHANGE_GROUP);
properties = Collections.unmodifiableList(supDescriptors);
String user = "ubuntu";
String pass ="ubuntu";
auth = new NtlmPasswordAuthentication("",user, pass);
}
示例5: getSupportedPropertyDescriptors
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
return ImmutableList.of(DBCP_SERVICE,
SCHEMA,
TABLE_NAME,
COLUMN_NAMES,
QUERY_TIMEOUT,
NUMBER_OF_PARTITIONS,
SPLIT_COLUMN,
OPTION_TO_NUMBER,
CONDITION,
MAX_VALUE_COLUMN,
MAX_VALUE_COLUMN_TYPE,
MAX_VALUE_COLUMN_TYPE_OPTION,
MAX_VALUE_COLUMN_START_VALUE,
TENANT,
SOURCE);
}
示例6: getSupportedPropertyDescriptors
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
final PropertyDescriptor port = new PropertyDescriptor.Builder().fromPropertyDescriptor(UNDEFAULTED_PORT).defaultValue("21").build();
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(HOSTNAME);
properties.add(port);
properties.add(USERNAME);
properties.add(FTPTransferV2.PASSWORD);
properties.add(FTPTransferV2.FTP_CLIENT_CONFIG_SYST);
properties.add(REMOTE_FILENAME);
properties.add(COMPLETION_STRATEGY);
properties.add(MOVE_DESTINATION_DIR);
properties.add(FTPTransferV2.CONNECTION_TIMEOUT);
properties.add(FTPTransferV2.DATA_TIMEOUT);
properties.add(FTPTransferV2.USE_COMPRESSION);
properties.add(FTPTransferV2.CONNECTION_MODE);
properties.add(FTPTransferV2.TRANSFER_MODE);
properties.add(FTPTransferV2.PROXY_TYPE);
properties.add(FTPTransferV2.PROXY_HOST);
properties.add(FTPTransferV2.PROXY_PORT);
properties.add(FTPTransferV2.HTTP_PROXY_USERNAME);
properties.add(FTPTransferV2.HTTP_PROXY_PASSWORD);
return properties;
}
示例7: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected void init(final ProcessorInitializationContext context) {
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(DIRECTORY);
properties.add(RECURSE);
properties.add(DIRECTORY_LOCATION);
properties.add(FILE_FILTER);
properties.add(PATH_FILTER);
properties.add(MIN_AGE);
properties.add(MAX_AGE);
properties.add(MIN_SIZE);
properties.add(MAX_SIZE);
properties.add(IGNORE_HIDDEN_FILES);
this.properties = Collections.unmodifiableList(properties);
final Set<Relationship> relationships = new HashSet<>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例8: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public void init(final ProcessorInitializationContext context){
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(META_FILEPATH);
properties.add(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
}
示例9: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public void init(final ProcessorInitializationContext context){
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(BLOOMFILTER_FILEPATH);
properties.add(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
}
示例10: getSupportedPropertyDescriptors
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
final List<PropertyDescriptor> descriptors = new ArrayList<>();
descriptors.add(MAX_SIZE);
descriptors.add(AGE_OFF_DURATION);
descriptors.add(CONCURRENCY_LEVEL);
return descriptors;
}
示例11: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public void init(final ProcessorInitializationContext context){
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(SCHEMA_FILEPATH);
properties.add(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
}
示例12: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public void init(final ProcessorInitializationContext context){
final Set<Relationship> relationships = new HashSet<Relationship>();
relationships.add(REL_SUCCESS);
this.relationships = Collections.unmodifiableSet(relationships);
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(AZURE_STORAGE_CONN_STR);
properties.add(AZURE_TABLE_TABLE_NAME);
properties.add(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
}
示例13: getSupportedDynamicPropertyDescriptor
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) {
if (propertyDescriptorName.startsWith(PATTERN_PROPERTY_PREFIX)) {
return new PropertyDescriptor
.Builder().name(propertyDescriptorName)
.description(PATTERN_PROPERTY_PREFIX_DESC)
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.expressionLanguageSupported(true)
.dynamic(true)
.sensitive(false)
.build();
}
return null;
}
示例14: init
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
public void init(final ProcessorInitializationContext context){
List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(PROTOBUF_SCHEMA);
this.properties = Collections.unmodifiableList(properties);
Set<Relationship> relationships = new HashSet<>();
relationships.add(SUCCESS);
relationships.add(INVALID_SCHEMA);
relationships.add(ERROR);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例15: getSupportedDynamicPropertyDescriptor
import org.apache.nifi.components.PropertyDescriptor; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) {
// Index properties must be JSON lists
if (isIndexProperty(propertyDescriptorName)) {
return MongoProps.DYNAMIC_INDEX
.name(propertyDescriptorName)
.build();
}
// We don't support any other types of dynamic properties right now.
return null;
}