public class MockProcessorInitializationContext extends Object implements ProcessorInitializationContext, ControllerServiceLookup
Modifier and Type | Field and Description |
---|---|
private MockProcessContext |
context |
private MockProcessorLog |
logger |
private String |
processorId |
Constructor and Description |
---|
MockProcessorInitializationContext(Processor processor,
MockProcessContext context) |
Modifier and Type | Method and Description |
---|---|
ControllerService |
getControllerService(String identifier) |
Set<String> |
getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) |
ControllerServiceLookup |
getControllerServiceLookup() |
String |
getControllerServiceName(String serviceIdentifier) |
String |
getIdentifier() |
MockProcessorLog |
getLogger() |
boolean |
isControllerServiceEnabled(ControllerService service) |
boolean |
isControllerServiceEnabled(String serviceIdentifier) |
boolean |
isControllerServiceEnabling(String serviceIdentifier) |
private final MockProcessorLog logger
private final String processorId
private final MockProcessContext context
public MockProcessorInitializationContext(Processor processor, MockProcessContext context)
public String getIdentifier()
getIdentifier
in interface ProcessorInitializationContext
public MockProcessorLog getLogger()
getLogger
in interface ProcessorInitializationContext
public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
getControllerServiceIdentifiers
in interface ControllerServiceLookup
public ControllerService getControllerService(String identifier)
getControllerService
in interface ControllerServiceLookup
public ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup
in interface ProcessorInitializationContext
public String getControllerServiceName(String serviceIdentifier)
getControllerServiceName
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
Copyright © 2016 Apache NiFi Project. All rights reserved.