public interface ProcessContext
Provides a bridge between a Processor and the NiFi Framework
Note: Implementations of this interface are NOT necessarily thread-safe.
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String encrypted)
Decrypts the given value using the password provided in the NiFi
Properties
|
String |
encrypt(String unencrypted)
Encrypts the given value using the password provided in the NiFi
Properties
|
String |
getAnnotationData() |
Set<Relationship> |
getAvailableRelationships() |
ControllerServiceLookup |
getControllerServiceLookup()
Provides a
ControllerServiceLookup that can be used to obtain a
Controller Service |
int |
getMaxConcurrentTasks() |
Map<PropertyDescriptor,String> |
getProperties()
Returns a Map of all PropertyDescriptors to their configured values.
|
PropertyValue |
getProperty(PropertyDescriptor descriptor)
Retrieves the current value set for the given descriptor, if a value is
set - else uses the descriptor to determine the appropriate default value
|
PropertyValue |
getProperty(String propertyName)
Retrieves the current value set for the given descriptor, if a value is
set - else uses the descriptor to determine the appropriate default value
|
PropertyValue |
newPropertyValue(String rawValue)
Creates and returns a
PropertyValue object that can be used for
evaluating the value of the given String |
void |
yield()
Causes the Processor not to be scheduled for some pre-configured amount
of time.
|
PropertyValue getProperty(PropertyDescriptor descriptor)
descriptor
- PropertyValue getProperty(String propertyName)
propertyName
- PropertyValue newPropertyValue(String rawValue)
PropertyValue
object that can be used for
evaluating the value of the given StringrawValue
- void yield()
Causes the Processor not to be scheduled for some pre-configured amount of time. The duration of time for which the processor will not be scheduled is configured in the same manner as the processor's scheduling period.
Note: This is NOT a blocking call and does not suspend execution of the current thread.
int getMaxConcurrentTasks()
String getAnnotationData()
Map<PropertyDescriptor,String> getProperties()
String encrypt(String unencrypted)
unencrypted
- String decrypt(String encrypted)
encrypted
- ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup
that can be used to obtain a
Controller ServiceSet<Relationship> getAvailableRelationships()
Copyright © 2015 Apache NiFi(incubating) Project. All rights reserved.