当前位置: 首页>>代码示例>>Java>>正文


Java PropertyDescriptor类代码示例

本文整理汇总了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);

}
 
开发者ID:dream-lab,项目名称:echo,代码行数:24,代码来源:ETLGetFile.java

示例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);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:22,代码来源:GetFileBatch.java

示例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);
    }
 
开发者ID:dream-lab,项目名称:echo,代码行数:22,代码来源:GetFileFromAttribute.java

示例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);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:24,代码来源:PutSmbFiles.java

示例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);
}
 
开发者ID:datamindedbe,项目名称:nifi-dataminded-bundle,代码行数:19,代码来源:GenerateOracleTableFetch.java

示例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;
}
 
开发者ID:clickha,项目名称:nifi-tools,代码行数:26,代码来源:FetchFTPV2.java

示例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);
}
 
开发者ID:clickha,项目名称:nifi-tools,代码行数:20,代码来源:ListFile.java

示例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);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:AnnotateETL.java

示例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);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:EdgentFilter_RBI.java

示例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;
}
 
开发者ID:Asymmetrik,项目名称:nifi-nars,代码行数:9,代码来源:LocalCache.java

示例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);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:JoinETL.java

示例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);
    
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:13,代码来源:InsertAzure.java

示例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;
}
 
开发者ID:bcgov,项目名称:nifi-atlas,代码行数:15,代码来源:RegexClusterResolver.java

示例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);
}
 
开发者ID:whiver,项目名称:nifi-protobuf-processor,代码行数:13,代码来源:ProtobufDecoder.java

示例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;
}
 
开发者ID:Asymmetrik,项目名称:nifi-nars,代码行数:12,代码来源:AbstractMongoProcessor.java


注:本文中的org.apache.nifi.components.PropertyDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。