本文整理汇总了Java中org.apache.nifi.processor.Relationship类的典型用法代码示例。如果您正苦于以下问题:Java Relationship类的具体用法?Java Relationship怎么用?Java Relationship使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Relationship类属于org.apache.nifi.processor包,在下文中一共展示了Relationship类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.apache.nifi.processor.Relationship; //导入依赖的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.Relationship; //导入依赖的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.Relationship; //导入依赖的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.Relationship; //导入依赖的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.Relationship; //导入依赖的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.Relationship; //导入依赖的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: PutScp
import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
public PutScp() {
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(HOSTNAME);
properties.add(PORT);
properties.add(USERNAME);
properties.add(PASSWORD);
properties.add(PRIVATE_KEY_PATH);
properties.add(PRIVATE_KEY_PASSPHRASE);
properties.add(REMOTE_PATH);
properties.add(BATCH_SIZE);
properties.add(CONNECTION_TIMEOUT);
properties.add(DATA_TIMEOUT);
properties.add(REJECT_ZERO_BYTE);
properties.add(HOST_KEY_FILE);
properties.add(STRICT_HOST_KEY_CHECKING);
properties.add(USE_KEEPALIVE_ON_TIMEOUT);
properties.add(USE_COMPRESSION);
properties.add(PERMISSIONS);
this.properties = Collections.unmodifiableList(properties);
final Set<Relationship> relationships = new HashSet<>();
relationships.add(REL_SUCCESS);
relationships.add(REL_FAILURE);
relationships.add(REL_REJECT);
this.relationships = Collections.unmodifiableSet(relationships);
}
示例8: getRelationships
import org.apache.nifi.processor.Relationship; //导入依赖的package包/类
@Override
public Set<Relationship> getRelationships() {
final Set<Relationship> rels = new HashSet<>();
rels.add(REL_SUCCESS);
rels.add(REL_FAILURE);
return rels;
}
示例9: init
import org.apache.nifi.processor.Relationship; //导入依赖的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);
}
示例10: init
import org.apache.nifi.processor.Relationship; //导入依赖的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);
}
示例11: init
import org.apache.nifi.processor.Relationship; //导入依赖的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.processor.Relationship; //导入依赖的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);
}
示例13: init
import org.apache.nifi.processor.Relationship; //导入依赖的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);
}
示例14: init
import org.apache.nifi.processor.Relationship; //导入依赖的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(EXPERIMENT_LOG_FILE);
this.properties = Collections.unmodifiableList(properties);
}
示例15: init
import org.apache.nifi.processor.Relationship; //导入依赖的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(OBJECT_CLASS);
this.properties = Collections.unmodifiableList(properties);
batchMap = new HashMap<String,Integer>();
}