當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。