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() |
int |
getMaxConcurrentTasks() |
Map<PropertyDescriptor,String> |
getProperties() |
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
- to lookup the value ofPropertyValue getProperty(String propertyName)
propertyName
- of the property to lookup the value forPropertyValue newPropertyValue(String rawValue)
PropertyValue
object that can be used for
evaluating the value of the given StringrawValue
- the raw input before any property evaluation has occurredPropertyValue
object that can be used for
evaluating the value of the given Stringvoid 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
- plaintext valueString decrypt(String encrypted)
encrypted
- the encrypted valueControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup
that can be used to obtain a
Controller ServiceSet<Relationship> getAvailableRelationships()
Copyright © 2015 Apache NiFi(incubating) Project. All rights reserved.