Package org.apache.nifi.processor
Class StandardProcessContext
java.lang.Object
org.apache.nifi.processor.StandardProcessContext
- All Implemented Interfaces:
org.apache.nifi.context.ClusterContext,org.apache.nifi.context.PropertyContext,ControllerServiceLookup,org.apache.nifi.processor.ProcessContext
public class StandardProcessContext
extends Object
implements org.apache.nifi.processor.ProcessContext, ControllerServiceLookup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final ControllerServiceProviderprivate final NodeTypeProviderprivate final Map<PropertyDescriptor, PreparedQuery> private final ProcessorNodeprivate final Map<PropertyDescriptor, String> private final StateManagerprivate final TaskTermination -
Constructor Summary
ConstructorsConstructorDescriptionStandardProcessContext(ProcessorNode processorNode, Map<String, String> propertiesOverride, String annotationDataOverride, ParameterLookup parameterLookup, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider) StandardProcessContext(ProcessorNode processorNode, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider) StandardProcessContext(ProcessorNode processorNode, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider, Map<PropertyDescriptor, String> propertyValues, String annotationData) -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.nifi.processor.Relationship> getControllerService(String serviceIdentifier) getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) getControllerServiceName(String serviceIdentifier) org.apache.nifi.scheduling.ExecutionNodeintgetName()getProperty(String propertyName) Returns the currently configured value for the property with the given name.getProperty(PropertyDescriptor descriptor) intbooleanhasConnection(org.apache.nifi.processor.Relationship relationship) booleanbooleanbooleanisAutoTerminated(org.apache.nifi.processor.Relationship relationship) booleanbooleanisControllerServiceEnabled(String serviceIdentifier) booleanbooleanisControllerServiceEnabling(String serviceIdentifier) booleanbooleanisRelationshipRetried(org.apache.nifi.processor.Relationship relationship) newPropertyValue(String rawValue) private static Map<PropertyDescriptor, String> resolvePropertyValues(ComponentNode component, ParameterLookup parameterLookup, Map<String, String> propertyValues) private voidvoidyield()
-
Field Details
-
procNode
-
controllerServiceProvider
-
preparedQueries
-
stateManager
-
taskTermination
-
nodeTypeProvider
-
properties
-
annotationData
-
-
Constructor Details
-
StandardProcessContext
public StandardProcessContext(ProcessorNode processorNode, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider) -
StandardProcessContext
public StandardProcessContext(ProcessorNode processorNode, Map<String, String> propertiesOverride, String annotationDataOverride, ParameterLookup parameterLookup, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider) -
StandardProcessContext
public StandardProcessContext(ProcessorNode processorNode, ControllerServiceProvider controllerServiceProvider, StateManager stateManager, TaskTermination taskTermination, NodeTypeProvider nodeTypeProvider, Map<PropertyDescriptor, String> propertyValues, String annotationData)
-
-
Method Details
-
resolvePropertyValues
private static Map<PropertyDescriptor,String> resolvePropertyValues(ComponentNode component, ParameterLookup parameterLookup, Map<String, String> propertyValues) -
verifyTaskActive
private void verifyTaskActive() -
getProperty
- Specified by:
getPropertyin interfaceorg.apache.nifi.context.PropertyContext
-
getProperty
Returns the currently configured value for the property with the given name.
- Specified by:
getPropertyin interfaceorg.apache.nifi.processor.ProcessContext
-
newPropertyValue
- Specified by:
newPropertyValuein interfaceorg.apache.nifi.processor.ProcessContext
-
yield
public void yield()- Specified by:
yieldin interfaceorg.apache.nifi.processor.ProcessContext
-
getControllerService
- Specified by:
getControllerServicein interfaceControllerServiceLookup
-
getMaxConcurrentTasks
public int getMaxConcurrentTasks()- Specified by:
getMaxConcurrentTasksin interfaceorg.apache.nifi.processor.ProcessContext
-
getExecutionNode
public org.apache.nifi.scheduling.ExecutionNode getExecutionNode()- Specified by:
getExecutionNodein interfaceorg.apache.nifi.processor.ProcessContext
-
getAnnotationData
- Specified by:
getAnnotationDatain interfaceorg.apache.nifi.processor.ProcessContext
-
getProperties
- Specified by:
getPropertiesin interfaceorg.apache.nifi.processor.ProcessContext
-
getAllProperties
- Specified by:
getAllPropertiesin interfaceorg.apache.nifi.context.PropertyContext
-
getControllerServiceIdentifiers
- Specified by:
getControllerServiceIdentifiersin interfaceControllerServiceLookup
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabledin interfaceControllerServiceLookup
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabledin interfaceControllerServiceLookup
-
isControllerServiceEnabling
- Specified by:
isControllerServiceEnablingin interfaceControllerServiceLookup
-
getControllerServiceLookup
- Specified by:
getControllerServiceLookupin interfaceorg.apache.nifi.processor.ProcessContext
-
getAvailableRelationships
- Specified by:
getAvailableRelationshipsin interfaceorg.apache.nifi.processor.ProcessContext
-
isAutoTerminated
public boolean isAutoTerminated(org.apache.nifi.processor.Relationship relationship) - Specified by:
isAutoTerminatedin interfaceorg.apache.nifi.processor.ProcessContext
-
getControllerServiceName
- Specified by:
getControllerServiceNamein interfaceControllerServiceLookup
-
hasIncomingConnection
public boolean hasIncomingConnection()- Specified by:
hasIncomingConnectionin interfaceorg.apache.nifi.processor.ProcessContext
-
hasNonLoopConnection
public boolean hasNonLoopConnection()- Specified by:
hasNonLoopConnectionin interfaceorg.apache.nifi.processor.ProcessContext
-
hasConnection
public boolean hasConnection(org.apache.nifi.processor.Relationship relationship) - Specified by:
hasConnectionin interfaceorg.apache.nifi.processor.ProcessContext
-
isExpressionLanguagePresent
- Specified by:
isExpressionLanguagePresentin interfaceorg.apache.nifi.processor.ProcessContext
-
getStateManager
- Specified by:
getStateManagerin interfaceorg.apache.nifi.processor.ProcessContext
-
getName
- Specified by:
getNamein interfaceorg.apache.nifi.processor.ProcessContext
-
isConnectedToCluster
public boolean isConnectedToCluster()- Specified by:
isConnectedToClusterin interfaceorg.apache.nifi.context.ClusterContext
-
isRelationshipRetried
public boolean isRelationshipRetried(org.apache.nifi.processor.Relationship relationship) - Specified by:
isRelationshipRetriedin interfaceorg.apache.nifi.processor.ProcessContext
-
getRetryCount
public int getRetryCount()- Specified by:
getRetryCountin interfaceorg.apache.nifi.processor.ProcessContext
-