public abstract class MockControllerServiceLookup extends Object implements ControllerServiceLookup
Modifier and Type | Field and Description |
---|---|
private Map<String,ControllerServiceConfiguration> |
controllerServiceMap |
Constructor and Description |
---|
MockControllerServiceLookup() |
Modifier and Type | Method and Description |
---|---|
ControllerServiceConfiguration |
addControllerService(ControllerService service) |
ControllerServiceConfiguration |
addControllerService(ControllerService service,
String identifier) |
protected void |
addControllerServices(MockControllerServiceLookup other) |
protected ControllerServiceConfiguration |
getConfiguration(String identifier) |
ControllerService |
getControllerService(String identifier) |
Set<String> |
getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) |
String |
getControllerServiceName(String serviceIdentifier) |
boolean |
isControllerServiceEnabled(ControllerService service) |
boolean |
isControllerServiceEnabled(String serviceIdentifier) |
boolean |
isControllerServiceEnabling(String serviceIdentifier) |
void |
removeControllerService(ControllerService service) |
private final Map<String,ControllerServiceConfiguration> controllerServiceMap
public ControllerServiceConfiguration addControllerService(ControllerService service, String identifier)
public ControllerServiceConfiguration addControllerService(ControllerService service)
public void removeControllerService(ControllerService service)
protected void addControllerServices(MockControllerServiceLookup other)
protected ControllerServiceConfiguration getConfiguration(String identifier)
public ControllerService getControllerService(String identifier)
getControllerService
in interface ControllerServiceLookup
public boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled
in interface ControllerServiceLookup
public boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled
in interface ControllerServiceLookup
public boolean isControllerServiceEnabling(String serviceIdentifier)
isControllerServiceEnabling
in interface ControllerServiceLookup
public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
getControllerServiceIdentifiers
in interface ControllerServiceLookup
public String getControllerServiceName(String serviceIdentifier)
getControllerServiceName
in interface ControllerServiceLookup
Copyright © 2017 Apache NiFi Project. All rights reserved.