Package org.apache.nifi.util
Class MockControllerServiceInitializationContext
java.lang.Object
org.apache.nifi.util.MockControllerServiceLookup
org.apache.nifi.util.MockControllerServiceInitializationContext
- All Implemented Interfaces:
ControllerServiceInitializationContext
,ControllerServiceLookup
,NodeTypeProvider
,KerberosContext
public class MockControllerServiceInitializationContext
extends MockControllerServiceLookup
implements ControllerServiceInitializationContext, ControllerServiceLookup, NodeTypeProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private boolean
private boolean
private final KerberosContext
private final ComponentLog
private final StateManager
-
Constructor Summary
ConstructorDescriptionMockControllerServiceInitializationContext
(ControllerService controllerService, String identifier) MockControllerServiceInitializationContext
(ControllerService controllerService, String identifier, StateManager stateManager) MockControllerServiceInitializationContext
(ControllerService controllerService, String identifier, ComponentLog logger, StateManager stateManager) MockControllerServiceInitializationContext
(ControllerService controllerService, String identifier, ComponentLog logger, StateManager stateManager, KerberosContext kerberosContext) -
Method Summary
Modifier and TypeMethodDescriptiongetControllerServiceName
(String serviceIdentifier) boolean
boolean
void
setClustered
(boolean clustered) void
setPrimaryNode
(boolean primaryNode) Methods inherited from class org.apache.nifi.util.MockControllerServiceLookup
addControllerService, addControllerService, addControllerServices, getConfiguration, getControllerService, getControllerServiceIdentifiers, getControllerServices, getInputRequirement, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling, removeControllerService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.nifi.controller.ControllerServiceLookup
getControllerService, getControllerServiceIdentifiers, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling
Methods inherited from interface org.apache.nifi.controller.NodeTypeProvider
getClusterMembers, getCurrentNode, isConfiguredForClustering, isConnected
-
Field Details
-
identifier
-
logger
-
stateManager
-
isClustered
private volatile boolean isClustered -
isPrimaryNode
private volatile boolean isPrimaryNode -
kerberosContext
-
-
Constructor Details
-
MockControllerServiceInitializationContext
public MockControllerServiceInitializationContext(ControllerService controllerService, String identifier) -
MockControllerServiceInitializationContext
public MockControllerServiceInitializationContext(ControllerService controllerService, String identifier, StateManager stateManager) -
MockControllerServiceInitializationContext
public MockControllerServiceInitializationContext(ControllerService controllerService, String identifier, ComponentLog logger, StateManager stateManager) -
MockControllerServiceInitializationContext
public MockControllerServiceInitializationContext(ControllerService controllerService, String identifier, ComponentLog logger, StateManager stateManager, KerberosContext kerberosContext)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifier
in interfaceControllerServiceInitializationContext
-
getControllerServiceName
- Specified by:
getControllerServiceName
in interfaceControllerServiceLookup
- Overrides:
getControllerServiceName
in classMockControllerServiceLookup
-
getControllerServiceLookup
- Specified by:
getControllerServiceLookup
in interfaceControllerServiceInitializationContext
-
getLogger
- Specified by:
getLogger
in interfaceControllerServiceInitializationContext
-
getStateManager
- Specified by:
getStateManager
in interfaceControllerServiceInitializationContext
-
getNodeTypeProvider
- Specified by:
getNodeTypeProvider
in interfaceControllerServiceInitializationContext
-
getKerberosServicePrincipal
- Specified by:
getKerberosServicePrincipal
in interfaceKerberosContext
-
getKerberosServiceKeytab
- Specified by:
getKerberosServiceKeytab
in interfaceKerberosContext
-
getKerberosConfigurationFile
- Specified by:
getKerberosConfigurationFile
in interfaceKerberosContext
-
isClustered
public boolean isClustered()- Specified by:
isClustered
in interfaceNodeTypeProvider
-
isPrimary
public boolean isPrimary()- Specified by:
isPrimary
in interfaceNodeTypeProvider
-
setClustered
public void setClustered(boolean clustered) -
setPrimaryNode
public void setPrimaryNode(boolean primaryNode)
-