Class EmptyControllerServiceLookup
java.lang.Object
org.apache.nifi.documentation.init.EmptyControllerServiceLookup
- All Implemented Interfaces:
ControllerServiceLookup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetControllerService(String serviceIdentifier) getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) getControllerServiceName(String serviceIdentifier) booleanisControllerServiceEnabled(String serviceIdentifier) booleanbooleanisControllerServiceEnabling(String serviceIdentifier)
-
Constructor Details
-
EmptyControllerServiceLookup
public EmptyControllerServiceLookup()
-
-
Method Details
-
getControllerService
- Specified by:
getControllerServicein interfaceControllerServiceLookup- Parameters:
serviceIdentifier- of controller service- Returns:
- the ControllerService that is registered with the given identifier
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabledin interfaceControllerServiceLookup- Parameters:
serviceIdentifier- identifier of service to check- Returns:
trueif the Controller Service with the given identifier is enabled,falseotherwise. If the given identifier is not known by this ControllerServiceLookup, returnsfalse
-
isControllerServiceEnabling
- Specified by:
isControllerServiceEnablingin interfaceControllerServiceLookup- Parameters:
serviceIdentifier- identifier of service to check- Returns:
trueif the Controller Service with the given identifier has been enabled but is still in the transitioning state, otherwise returnsfalse. If the given identifier is not known by this ControllerServiceLookup, returnsfalse
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabledin interfaceControllerServiceLookup- Parameters:
service- service to check- Returns:
trueif the given Controller Service is enabled,falseotherwise. If the given Controller Service is not known by this ControllerServiceLookup, returnsfalse
-
getControllerServiceIdentifiers
public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) throws IllegalArgumentException - Specified by:
getControllerServiceIdentifiersin interfaceControllerServiceLookup- 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
- Specified by:
getControllerServiceNamein interfaceControllerServiceLookup- 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
-