public class StandardControllerServiceProvider extends Object implements ControllerServiceProvider
| Modifier and Type | Field and Description |
|---|---|
private BulletinRepository |
bulletinRepo |
private ExtensionManager |
extensionManager |
private FlowManager |
flowManager |
private static org.slf4j.Logger |
logger |
private ProcessScheduler |
processScheduler |
private ConcurrentMap<String,ControllerServiceNode> |
serviceCache |
| Constructor and Description |
|---|
StandardControllerServiceProvider(ProcessScheduler scheduler,
BulletinRepository bulletinRepo,
FlowManager flowManager,
ExtensionManager extensionManager) |
private static final org.slf4j.Logger logger
private final ProcessScheduler processScheduler
private final BulletinRepository bulletinRepo
private final FlowManager flowManager
private final ExtensionManager extensionManager
private final ConcurrentMap<String,ControllerServiceNode> serviceCache
public StandardControllerServiceProvider(ProcessScheduler scheduler, BulletinRepository bulletinRepo, FlowManager flowManager, ExtensionManager extensionManager)
public void onControllerServiceAdded(ControllerServiceNode serviceNode)
onControllerServiceAdded in interface ControllerServiceProviderpublic Set<ComponentNode> disableReferencingServices(ControllerServiceNode serviceNode)
disableReferencingServices in interface ControllerServiceProviderpublic Set<ComponentNode> scheduleReferencingComponents(ControllerServiceNode serviceNode)
scheduleReferencingComponents in interface ControllerServiceProviderpublic Set<ComponentNode> unscheduleReferencingComponents(ControllerServiceNode serviceNode)
unscheduleReferencingComponents in interface ControllerServiceProviderpublic CompletableFuture<Void> enableControllerService(ControllerServiceNode serviceNode)
enableControllerService in interface ControllerServiceProviderpublic void enableControllerServices(Collection<ControllerServiceNode> serviceNodes)
enableControllerServices in interface ControllerServiceProviderpublic Future<Void> enableControllerServicesAsync(Collection<ControllerServiceNode> serviceNodes)
enableControllerServicesAsync in interface ControllerServiceProviderprivate void enableControllerServices(Collection<ControllerServiceNode> serviceNodes, CompletableFuture<Void> completableFuture)
public Future<Void> enableControllerServiceAndDependencies(ControllerServiceNode serviceNode)
enableControllerServiceAndDependencies in interface ControllerServiceProviderstatic List<List<ControllerServiceNode>> determineEnablingOrder(Map<String,ControllerServiceNode> serviceNodeMap)
private static void determineEnablingOrder(Map<String,ControllerServiceNode> serviceNodeMap, ControllerServiceNode contextNode, List<ControllerServiceNode> orderedNodes, Set<ControllerServiceNode> visited)
public CompletableFuture<Void> disableControllerService(ControllerServiceNode serviceNode)
disableControllerService in interface ControllerServiceProviderpublic Future<Void> disableControllerServicesAsync(Collection<ControllerServiceNode> serviceNodes)
disableControllerServicesAsync in interface ControllerServiceProviderprivate void disableControllerServices(Collection<ControllerServiceNode> serviceNodes, CompletableFuture<Void> future)
public ControllerService getControllerService(String serviceIdentifier)
getControllerService in interface ControllerServiceLookupprivate ProcessGroup getRootGroup()
public ControllerService getControllerServiceForComponent(String serviceIdentifier, String componentId)
getControllerServiceForComponent in interface ControllerServiceProviderpublic boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled in interface ControllerServiceLookuppublic boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled in interface ControllerServiceLookuppublic boolean isControllerServiceEnabling(String serviceIdentifier)
isControllerServiceEnabling in interface ControllerServiceLookuppublic ControllerServiceNode getControllerServiceNode(String serviceIdentifier)
getControllerServiceNode in interface ControllerServiceProviderpublic Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType, String groupId)
getControllerServiceIdentifiers in interface ControllerServiceProviderpublic String getControllerServiceName(String serviceIdentifier)
getControllerServiceName in interface ControllerServiceLookuppublic void removeControllerService(ControllerServiceNode serviceNode)
removeControllerService in interface ControllerServiceProviderpublic Collection<ControllerServiceNode> getNonRootControllerServices()
getNonRootControllerServices in interface ControllerServiceProviderpublic Set<ComponentNode> enableReferencingServices(ControllerServiceNode serviceNode)
enableReferencingServices in interface ControllerServiceProviderprivate Set<ComponentNode> enableReferencingServices(ControllerServiceNode serviceNode, List<ControllerServiceNode> recursiveReferences)
public void verifyCanEnableReferencingServices(ControllerServiceNode serviceNode)
verifyCanEnableReferencingServices in interface ControllerServiceProviderpublic void verifyCanScheduleReferencingComponents(ControllerServiceNode serviceNode)
verifyCanScheduleReferencingComponents in interface ControllerServiceProviderpublic void verifyCanDisableReferencingServices(ControllerServiceNode serviceNode)
verifyCanDisableReferencingServices in interface ControllerServiceProviderpublic void verifyCanStopReferencingComponents(ControllerServiceNode serviceNode)
verifyCanStopReferencingComponents in interface ControllerServiceProviderpublic Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) throws IllegalArgumentException
getControllerServiceIdentifiers in interface ControllerServiceLookupIllegalArgumentExceptionpublic ExtensionManager getExtensionManager()
getExtensionManager in interface ControllerServiceProviderCopyright © 2021 Apache NiFi Project. All rights reserved.