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


Java ProcessorInitializationContext类代码示例

本文整理汇总了Java中org.apache.nifi.processor.ProcessorInitializationContext的典型用法代码示例。如果您正苦于以下问题:Java ProcessorInitializationContext类的具体用法?Java ProcessorInitializationContext怎么用?Java ProcessorInitializationContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProcessorInitializationContext类属于org.apache.nifi.processor包,在下文中一共展示了ProcessorInitializationContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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.processor.ProcessorInitializationContext; //导入依赖的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.processor.ProcessorInitializationContext; //导入依赖的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.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    final List<PropertyDescriptor> properties = new ArrayList<PropertyDescriptor>();
    properties.add(DIRECTORY);
    properties.add(FILE_FILTER);
    properties.add(BATCH_SIZE);
    properties.add(KEEP_SOURCE_FILE);
    properties.add(POLLING_INTERVAL);
    this.properties = Collections.unmodifiableList(properties);

    final Set<Relationship> relationships = new HashSet<Relationship>();
    relationships.add(REL_SUCCESS);
    this.relationships = Collections.unmodifiableSet(relationships);
    String user = "ubuntu";
    String pass ="ubuntu";
    auth = new NtlmPasswordAuthentication("",user, pass);
 
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:19,代码来源:GetSmbFiles.java

示例5: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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

示例6: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
    // relationships
    batchCounterMap = new HashMap<>();
    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);
    supDescriptors.add(BATCH_SIZE);
    properties = Collections.unmodifiableList(supDescriptors);
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:23,代码来源:PutFileBatch.java

示例7: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
	final List<PropertyDescriptor> descriptors = new ArrayList<>();
	descriptors.add(ENDPOINT);
	descriptors.add(CONSUMER_KEY);
	descriptors.add(CONSUMER_SECRET);
	descriptors.add(ACCESS_TOKEN);
	descriptors.add(ACCESS_TOKEN_SECRET);
	descriptors.add(LANGUAGES);
	descriptors.add(TERMS);
	descriptors.add(FOLLOWING);
	descriptors.add(LOCATIONS);
               descriptors.add(PROXY_HOST);
               descriptors.add(PROXY_PORT);
               descriptors.add(PROXY_USER);
               descriptors.add(PROXY_PASS);

	this.descriptors = Collections.unmodifiableList(descriptors);

	final Set<Relationship> relationships = new HashSet<>();
	relationships.add(REL_SUCCESS);
	this.relationships = Collections.unmodifiableSet(relationships);
}
 
开发者ID:simonellistonball,项目名称:nifi-GetTwitterWithProxy,代码行数:24,代码来源:GetTwitterWithProxy.java

示例9: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
	final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
	descriptors.add(CASCADER);
	descriptors.add(MARK_FACES);

	this.descriptors = Collections.unmodifiableList(descriptors);

	final Set<Relationship> relationships = new HashSet<Relationship>();
	relationships.add(REL_MATCH);
	relationships.add(REL_UNMATCH);
	relationships.add(REL_FACES);
	this.relationships = Collections.unmodifiableSet(relationships);

	OpenCV.loadShared();
	System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
}
 
开发者ID:simonellistonball,项目名称:nifi-OpenCV,代码行数:18,代码来源:ExtractFaces.java

示例10: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
	final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
	// descriptors.add(CAMERA);
	descriptors.add(FRAME_WIDTH);
	descriptors.add(FRAME_HEIGHT);

	this.descriptors = Collections.unmodifiableList(descriptors);

	final Set<Relationship> relationships = new HashSet<Relationship>();
	relationships.add(REL_SUCCESS);
	this.relationships = Collections.unmodifiableSet(relationships);

	OpenCV.loadShared();
	System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
	camera = new VideoCapture();
	camera.open(0);
	
}
 
开发者ID:simonellistonball,项目名称:nifi-OpenCV,代码行数:20,代码来源:GetCameraFrame.java

示例11: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(final ProcessorInitializationContext context) {
	final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
	descriptors.add(ZOOKEEPER);
	descriptors.add(USERNAME);
	descriptors.add(PASSWORD);
	descriptors.add(INSTANCE);
	descriptors.add(GRAPH);
	descriptors.add(BATCH_SIZE);
	descriptors.add(ADD_ATTRIBUTES);

	this.descriptors = Collections.unmodifiableList(descriptors);

	final Set<Relationship> relationships = new HashSet<Relationship>();
	relationships.add(SUCCESS);
	relationships.add(FAILURE);
	this.relationships = Collections.unmodifiableSet(relationships);

}
 
开发者ID:simonellistonball,项目名称:nifi-AccumuloGraph,代码行数:20,代码来源:AbstractAccumuloGraph.java

示例12: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的package包/类
@Override
protected void init(ProcessorInitializationContext context) {
	super.init(context);

	final List<PropertyDescriptor> properties = new ArrayList<>();

	properties.add(SCHEMA);

	properties.add(CSV_COMPATIBILITY);
	properties.add(RECORD_DELIMITER);
	properties.add(CSV_HEADER_SORT_FIELD);
	properties.add(CSV_HEADER_SORTING);
	this.properties = Collections.unmodifiableList(properties);
}
 
开发者ID:saniam,项目名称:nifi,代码行数:15,代码来源:Avro2CsvProcessor.java

示例13: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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

示例14: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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

示例15: init

import org.apache.nifi.processor.ProcessorInitializationContext; //导入依赖的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,代码行数:11,代码来源:CSVSenMLParser.java


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