Package org.apache.nifi.util
Class MockProcessorInitializationContext
java.lang.Object
org.apache.nifi.util.MockProcessorInitializationContext
- All Implemented Interfaces:
ControllerServiceLookup
,KerberosContext
,ProcessorInitializationContext
public class MockProcessorInitializationContext
extends Object
implements ProcessorInitializationContext, ControllerServiceLookup
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MockProcessContext
private final KerberosContext
private final MockComponentLog
private final String
-
Constructor Summary
ConstructorDescriptionMockProcessorInitializationContext
(Processor processor, MockProcessContext context) MockProcessorInitializationContext
(Processor processor, MockProcessContext context, MockComponentLog logger) MockProcessorInitializationContext
(Processor processor, MockProcessContext context, MockComponentLog logger, KerberosContext kerberosContext) -
Method Summary
Modifier and TypeMethodDescriptiongetControllerService
(String identifier) getControllerServiceIdentifiers
(Class<? extends ControllerService> serviceType) getControllerServiceName
(String serviceIdentifier) boolean
isControllerServiceEnabled
(String serviceIdentifier) boolean
boolean
isControllerServiceEnabling
(String serviceIdentifier)
-
Field Details
-
Constructor Details
-
MockProcessorInitializationContext
-
MockProcessorInitializationContext
public MockProcessorInitializationContext(Processor processor, MockProcessContext context, MockComponentLog logger) -
MockProcessorInitializationContext
public MockProcessorInitializationContext(Processor processor, MockProcessContext context, MockComponentLog logger, KerberosContext kerberosContext)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifier
in interfaceProcessorInitializationContext
-
getLogger
- Specified by:
getLogger
in interfaceProcessorInitializationContext
-
getControllerServiceIdentifiers
- Specified by:
getControllerServiceIdentifiers
in interfaceControllerServiceLookup
-
getControllerService
- Specified by:
getControllerService
in interfaceControllerServiceLookup
-
getControllerServiceLookup
- Specified by:
getControllerServiceLookup
in interfaceProcessorInitializationContext
-
getControllerServiceName
- Specified by:
getControllerServiceName
in interfaceControllerServiceLookup
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabled
in interfaceControllerServiceLookup
-
isControllerServiceEnabled
- Specified by:
isControllerServiceEnabled
in interfaceControllerServiceLookup
-
isControllerServiceEnabling
- Specified by:
isControllerServiceEnabling
in interfaceControllerServiceLookup
-
getNodeTypeProvider
- Specified by:
getNodeTypeProvider
in interfaceProcessorInitializationContext
-
getKerberosServicePrincipal
- Specified by:
getKerberosServicePrincipal
in interfaceKerberosContext
-
getKerberosServiceKeytab
- Specified by:
getKerberosServiceKeytab
in interfaceKerberosContext
-
getKerberosConfigurationFile
- Specified by:
getKerberosConfigurationFile
in interfaceKerberosContext
-