public class EmptyControllerServiceLookup extends Object implements ControllerServiceLookup
Constructor and Description |
---|
EmptyControllerServiceLookup() |
Modifier and Type | Method and Description |
---|---|
ControllerService |
getControllerService(String serviceIdentifier) |
Set<String> |
getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) |
String |
getControllerServiceName(String serviceIdentifier) |
boolean |
isControllerServiceEnabled(ControllerService service) |
boolean |
isControllerServiceEnabled(String serviceIdentifier) |
boolean |
isControllerServiceEnabling(String serviceIdentifier) |
public ControllerService getControllerService(String serviceIdentifier)
getControllerService
in interface ControllerServiceLookup
serviceIdentifier
- of controller servicepublic boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled
in interface ControllerServiceLookup
serviceIdentifier
- identifier of service to checktrue
if the Controller Service with the given
identifier is enabled, false
otherwise. If the given
identifier is not known by this ControllerServiceLookup, returns
false
public boolean isControllerServiceEnabling(String serviceIdentifier)
isControllerServiceEnabling
in interface ControllerServiceLookup
serviceIdentifier
- identifier of service to checktrue
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
public boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled
in interface ControllerServiceLookup
service
- service to checktrue
if the given Controller Service is enabled,
false
otherwise. If the given Controller Service is not
known by this ControllerServiceLookup, returns false
public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) throws IllegalArgumentException
getControllerServiceIdentifiers
in interface ControllerServiceLookup
serviceType
- type of service to get identifiers forIllegalArgumentException
- if the given class is not an interfacepublic String getControllerServiceName(String serviceIdentifier)
getControllerServiceName
in interface ControllerServiceLookup
serviceIdentifier
- identifier to look upnull
Copyright © 2024 Apache NiFi Project. All rights reserved.