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 Details

  • Constructor Details

  • Method Details

    • resolvePropertyValues

      private static Map<PropertyDescriptor,String> resolvePropertyValues(ComponentNode component, ParameterLookup parameterLookup, Map<String,String> propertyValues)
    • verifyTaskActive

      private void verifyTaskActive()
    • getProperty

      public PropertyValue getProperty(PropertyDescriptor descriptor)
      Specified by:
      getProperty in interface org.apache.nifi.context.PropertyContext
    • getProperty

      public PropertyValue getProperty(String propertyName)

      Returns the currently configured value for the property with the given name.

      Specified by:
      getProperty in interface org.apache.nifi.processor.ProcessContext
    • newPropertyValue

      public PropertyValue newPropertyValue(String rawValue)
      Specified by:
      newPropertyValue in interface org.apache.nifi.processor.ProcessContext
    • yield

      public void yield()
      Specified by:
      yield in interface org.apache.nifi.processor.ProcessContext
    • getControllerService

      public ControllerService getControllerService(String serviceIdentifier)
      Specified by:
      getControllerService in interface ControllerServiceLookup
    • getMaxConcurrentTasks

      public int getMaxConcurrentTasks()
      Specified by:
      getMaxConcurrentTasks in interface org.apache.nifi.processor.ProcessContext
    • getExecutionNode

      public org.apache.nifi.scheduling.ExecutionNode getExecutionNode()
      Specified by:
      getExecutionNode in interface org.apache.nifi.processor.ProcessContext
    • getAnnotationData

      public String getAnnotationData()
      Specified by:
      getAnnotationData in interface org.apache.nifi.processor.ProcessContext
    • getProperties

      public Map<PropertyDescriptor,String> getProperties()
      Specified by:
      getProperties in interface org.apache.nifi.processor.ProcessContext
    • getAllProperties

      public Map<String,String> getAllProperties()
      Specified by:
      getAllProperties in interface org.apache.nifi.context.PropertyContext
    • getControllerServiceIdentifiers

      public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
      Specified by:
      getControllerServiceIdentifiers in interface ControllerServiceLookup
    • isControllerServiceEnabled

      public boolean isControllerServiceEnabled(ControllerService service)
      Specified by:
      isControllerServiceEnabled in interface ControllerServiceLookup
    • isControllerServiceEnabled

      public boolean isControllerServiceEnabled(String serviceIdentifier)
      Specified by:
      isControllerServiceEnabled in interface ControllerServiceLookup
    • isControllerServiceEnabling

      public boolean isControllerServiceEnabling(String serviceIdentifier)
      Specified by:
      isControllerServiceEnabling in interface ControllerServiceLookup
    • getControllerServiceLookup

      public ControllerServiceLookup getControllerServiceLookup()
      Specified by:
      getControllerServiceLookup in interface org.apache.nifi.processor.ProcessContext
    • getAvailableRelationships

      public Set<org.apache.nifi.processor.Relationship> getAvailableRelationships()
      Specified by:
      getAvailableRelationships in interface org.apache.nifi.processor.ProcessContext
    • isAutoTerminated

      public boolean isAutoTerminated(org.apache.nifi.processor.Relationship relationship)
      Specified by:
      isAutoTerminated in interface org.apache.nifi.processor.ProcessContext
    • getControllerServiceName

      public String getControllerServiceName(String serviceIdentifier)
      Specified by:
      getControllerServiceName in interface ControllerServiceLookup
    • hasIncomingConnection

      public boolean hasIncomingConnection()
      Specified by:
      hasIncomingConnection in interface org.apache.nifi.processor.ProcessContext
    • hasNonLoopConnection

      public boolean hasNonLoopConnection()
      Specified by:
      hasNonLoopConnection in interface org.apache.nifi.processor.ProcessContext
    • hasConnection

      public boolean hasConnection(org.apache.nifi.processor.Relationship relationship)
      Specified by:
      hasConnection in interface org.apache.nifi.processor.ProcessContext
    • isExpressionLanguagePresent

      public boolean isExpressionLanguagePresent(PropertyDescriptor property)
      Specified by:
      isExpressionLanguagePresent in interface org.apache.nifi.processor.ProcessContext
    • getStateManager

      public StateManager getStateManager()
      Specified by:
      getStateManager in interface org.apache.nifi.processor.ProcessContext
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.nifi.processor.ProcessContext
    • isConnectedToCluster

      public boolean isConnectedToCluster()
      Specified by:
      isConnectedToCluster in interface org.apache.nifi.context.ClusterContext
    • isRelationshipRetried

      public boolean isRelationshipRetried(org.apache.nifi.processor.Relationship relationship)
      Specified by:
      isRelationshipRetried in interface org.apache.nifi.processor.ProcessContext
    • getRetryCount

      public int getRetryCount()
      Specified by:
      getRetryCount in interface org.apache.nifi.processor.ProcessContext