Class EmptyControllerServiceLookup

java.lang.Object
org.apache.nifi.documentation.init.EmptyControllerServiceLookup
All Implemented Interfaces:
ControllerServiceLookup

public class EmptyControllerServiceLookup extends Object implements ControllerServiceLookup
  • Constructor Details

    • EmptyControllerServiceLookup

      public EmptyControllerServiceLookup()
  • Method Details

    • getControllerService

      public ControllerService getControllerService(String serviceIdentifier)
      Specified by:
      getControllerService in interface ControllerServiceLookup
      Parameters:
      serviceIdentifier - of controller service
      Returns:
      the ControllerService that is registered with the given identifier
    • isControllerServiceEnabled

      public boolean isControllerServiceEnabled(String serviceIdentifier)
      Specified by:
      isControllerServiceEnabled in interface ControllerServiceLookup
      Parameters:
      serviceIdentifier - identifier of service to check
      Returns:
      true if the Controller Service with the given identifier is enabled, false otherwise. If the given identifier is not known by this ControllerServiceLookup, returns false
    • isControllerServiceEnabling

      public boolean isControllerServiceEnabling(String serviceIdentifier)
      Specified by:
      isControllerServiceEnabling in interface ControllerServiceLookup
      Parameters:
      serviceIdentifier - identifier of service to check
      Returns:
      true if the Controller Service with the given identifier has been enabled but is still in the transitioning state, otherwise returns false. If the given identifier is not known by this ControllerServiceLookup, returns false
    • isControllerServiceEnabled

      public boolean isControllerServiceEnabled(ControllerService service)
      Specified by:
      isControllerServiceEnabled in interface ControllerServiceLookup
      Parameters:
      service - service to check
      Returns:
      true if the given Controller Service is enabled, false otherwise. If the given Controller Service is not known by this ControllerServiceLookup, returns false
    • getControllerServiceIdentifiers

      public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) throws IllegalArgumentException
      Specified by:
      getControllerServiceIdentifiers in interface ControllerServiceLookup
      Parameters:
      serviceType - type of service to get identifiers for
      Returns:
      the set of all Controller Service Identifiers whose Controller Service is of the given type.
      Throws:
      IllegalArgumentException - if the given class is not an interface
    • getControllerServiceName

      public String getControllerServiceName(String serviceIdentifier)
      Specified by:
      getControllerServiceName in interface ControllerServiceLookup
      Parameters:
      serviceIdentifier - identifier to look up
      Returns:
      the name of the Controller service with the given identifier. If no service can be found with this identifier, returns null