public interface ProcessContext extends PropertyContext, ClusterContext
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() |
ExecutionNode |
getExecutionNode() |
int |
getMaxConcurrentTasks() |
String |
getName() |
Map<PropertyDescriptor,String> |
getProperties() |
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
|
int |
getRetryCount() |
StateManager |
getStateManager() |
boolean |
hasConnection(Relationship relationship) |
boolean |
hasIncomingConnection() |
boolean |
hasNonLoopConnection() |
boolean |
isExpressionLanguagePresent(PropertyDescriptor property) |
boolean |
isRelationshipRetried(Relationship relationship) |
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.
|
getAllProperties, getProperty
isConnectedToCluster
PropertyValue 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()
ExecutionNode getExecutionNode()
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()
boolean hasIncomingConnection()
boolean hasNonLoopConnection()
true
if the processor has one or more incoming connections for
which the source of the connection is NOT the processor; returns false
if
the processor has no incoming connections or if all incoming connections are self-loops
(i.e., the processor is also the source of all incoming connections).boolean hasConnection(Relationship relationship)
relationship
- a relationship to check for connectionsboolean isExpressionLanguagePresent(PropertyDescriptor property)
property
- the Property whose value should be inspected to determined if it contains an Expression Language Expressiontrue
if the value of the given Property contains a NiFi Expression
Language Expression, false
if it does not. Note that false
will be returned if the Property Descriptor
does not allow the Expression Language, even if a seemingly valid Expression is present in the value.StateManager getStateManager()
String getName()
boolean isRelationshipRetried(Relationship relationship)
int getRetryCount()
Copyright © 2022 Apache NiFi Project. All rights reserved.