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