public class StandardProcessContext extends Object implements ProcessContext, ControllerServiceLookup
| Modifier and Type | Field and Description |
|---|---|
private ControllerServiceProvider |
controllerServiceProvider |
private StringEncryptor |
encryptor |
private NodeTypeProvider |
nodeTypeProvider |
private Map<PropertyDescriptor,org.apache.nifi.attribute.expression.language.PreparedQuery> |
preparedQueries |
private ProcessorNode |
procNode |
private Map<PropertyDescriptor,String> |
properties |
private StateManager |
stateManager |
private TaskTermination |
taskTermination |
| Constructor and Description |
|---|
StandardProcessContext(ProcessorNode processorNode,
ControllerServiceProvider controllerServiceProvider,
StringEncryptor encryptor,
StateManager stateManager,
TaskTermination taskTermination,
NodeTypeProvider nodeTypeProvider) |
private final ProcessorNode procNode
private final ControllerServiceProvider controllerServiceProvider
private final Map<PropertyDescriptor,org.apache.nifi.attribute.expression.language.PreparedQuery> preparedQueries
private final StringEncryptor encryptor
private final StateManager stateManager
private final TaskTermination taskTermination
private final NodeTypeProvider nodeTypeProvider
private final Map<PropertyDescriptor,String> properties
public StandardProcessContext(ProcessorNode processorNode, ControllerServiceProvider controllerServiceProvider, StringEncryptor encryptor, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider)
private void verifyTaskActive()
public PropertyValue getProperty(PropertyDescriptor descriptor)
getProperty in interface PropertyContextpublic PropertyValue getProperty(String propertyName)
Returns the currently configured value for the property with the given name.
getProperty in interface ProcessContextpublic PropertyValue newPropertyValue(String rawValue)
newPropertyValue in interface ProcessContextpublic void yield()
yield in interface ProcessContextpublic ControllerService getControllerService(String serviceIdentifier)
getControllerService in interface ControllerServiceLookuppublic int getMaxConcurrentTasks()
getMaxConcurrentTasks in interface ProcessContextpublic ExecutionNode getExecutionNode()
getExecutionNode in interface ProcessContextpublic String getAnnotationData()
getAnnotationData in interface ProcessContextpublic Map<PropertyDescriptor,String> getProperties()
getProperties in interface ProcessContextpublic Map<String,String> getAllProperties()
getAllProperties in interface PropertyContextpublic String encrypt(String unencrypted)
encrypt in interface ProcessContextpublic String decrypt(String encrypted)
decrypt in interface ProcessContextpublic Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
getControllerServiceIdentifiers in interface ControllerServiceLookuppublic boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled in interface ControllerServiceLookuppublic boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled in interface ControllerServiceLookuppublic boolean isControllerServiceEnabling(String serviceIdentifier)
isControllerServiceEnabling in interface ControllerServiceLookuppublic ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup in interface ProcessContextpublic Set<Relationship> getAvailableRelationships()
getAvailableRelationships in interface ProcessContextpublic String getControllerServiceName(String serviceIdentifier)
getControllerServiceName in interface ControllerServiceLookuppublic boolean hasIncomingConnection()
hasIncomingConnection in interface ProcessContextpublic boolean hasNonLoopConnection()
hasNonLoopConnection in interface ProcessContextpublic boolean hasConnection(Relationship relationship)
hasConnection in interface ProcessContextpublic boolean isExpressionLanguagePresent(PropertyDescriptor property)
isExpressionLanguagePresent in interface ProcessContextpublic StateManager getStateManager()
getStateManager in interface ProcessContextpublic String getName()
getName in interface ProcessContextpublic boolean isConnectedToCluster()
isConnectedToCluster in interface ClusterContextCopyright © 2021 Apache NiFi Project. All rights reserved.