Class MockPropertyConfiguration

java.lang.Object
org.apache.nifi.util.MockPropertyConfiguration
All Implemented Interfaces:
org.apache.nifi.migration.PropertyConfiguration

public class MockPropertyConfiguration extends Object implements org.apache.nifi.migration.PropertyConfiguration
  • Field Details

  • Constructor Details

    • MockPropertyConfiguration

      public MockPropertyConfiguration(Map<String,String> propertyValues)
  • Method Details

    • toPropertyMigrationResult

      public PropertyMigrationResult toPropertyMigrationResult()
    • renameProperty

      public boolean renameProperty(String propertyName, String newName)
      Specified by:
      renameProperty in interface org.apache.nifi.migration.PropertyConfiguration
    • removeProperty

      public boolean removeProperty(String propertyName)
      Specified by:
      removeProperty in interface org.apache.nifi.migration.PropertyConfiguration
    • hasProperty

      public boolean hasProperty(String propertyName)
      Specified by:
      hasProperty in interface org.apache.nifi.migration.PropertyConfiguration
    • isPropertySet

      public boolean isPropertySet(String propertyName)
      Specified by:
      isPropertySet in interface org.apache.nifi.migration.PropertyConfiguration
    • setProperty

      public void setProperty(String propertyName, String propertyValue)
      Specified by:
      setProperty in interface org.apache.nifi.migration.PropertyConfiguration
    • getPropertyValue

      public Optional<String> getPropertyValue(String propertyName)
      Specified by:
      getPropertyValue in interface org.apache.nifi.migration.PropertyConfiguration
    • getRawPropertyValue

      public Optional<String> getRawPropertyValue(String propertyName)
      Specified by:
      getRawPropertyValue in interface org.apache.nifi.migration.PropertyConfiguration
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface org.apache.nifi.migration.PropertyConfiguration
    • getRawProperties

      public Map<String,String> getRawProperties()
      Specified by:
      getRawProperties in interface org.apache.nifi.migration.PropertyConfiguration
    • createControllerService

      public String createControllerService(String implementationClassName, Map<String,String> serviceProperties)
      Specified by:
      createControllerService in interface org.apache.nifi.migration.PropertyConfiguration