public abstract class AbstractFlowManager extends Object implements FlowManager
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentMap<String,Connection> |
allConnections |
private ConcurrentMap<String,Funnel> |
allFunnels |
private ConcurrentMap<String,Port> |
allInputPorts |
private ConcurrentMap<String,Port> |
allOutputPorts |
private ConcurrentMap<String,ProcessGroup> |
allProcessGroups |
private ConcurrentMap<String,ProcessorNode> |
allProcessors |
private ConcurrentMap<String,ReportingTaskNode> |
allReportingTasks |
private ControllerServiceProvider |
controllerServiceProvider |
private FlowFileEventRepository |
flowFileEventRepository |
private BooleanSupplier |
flowInitializedCheck |
private FlowRegistryClient |
flowRegistryClient |
private ParameterContextManager |
parameterContextManager |
private ProcessGroup |
rootGroup |
DEFAULT_ROOT_GROUP_NAME, ROOT_GROUP_ID_ALIAS| Constructor and Description |
|---|
AbstractFlowManager(FlowFileEventRepository flowFileEventRepository,
ParameterContextManager parameterContextManager,
FlowRegistryClient flowRegistryClient,
BooleanSupplier flowInitializedCheck) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRootControllerService, createConnection, createControllerService, createFunnel, createLabel, createLocalInputPort, createLocalOutputPort, createPrioritizer, createProcessGroup, createProcessor, createPublicInputPort, createPublicOutputPort, createRemoteProcessGroup, createReportingTask, getPublicInputPort, getPublicInputPorts, getPublicOutputPort, getPublicOutputPorts, getRootControllerService, getRootControllerServices, instantiateSnippet, removeRootControllerServiceprivate final ConcurrentMap<String,ProcessGroup> allProcessGroups
private final ConcurrentMap<String,ProcessorNode> allProcessors
private final ConcurrentMap<String,Connection> allConnections
private final ConcurrentMap<String,Port> allInputPorts
private final ConcurrentMap<String,Port> allOutputPorts
private final ConcurrentMap<String,Funnel> allFunnels
private final ConcurrentMap<String,ReportingTaskNode> allReportingTasks
private final FlowFileEventRepository flowFileEventRepository
private final ParameterContextManager parameterContextManager
private final FlowRegistryClient flowRegistryClient
private final BooleanSupplier flowInitializedCheck
private volatile ControllerServiceProvider controllerServiceProvider
private volatile ProcessGroup rootGroup
public AbstractFlowManager(FlowFileEventRepository flowFileEventRepository, ParameterContextManager parameterContextManager, FlowRegistryClient flowRegistryClient, BooleanSupplier flowInitializedCheck)
public void initialize(ControllerServiceProvider controllerServiceProvider)
public ProcessGroup getGroup(String id)
getGroup in interface FlowManagerpublic void onProcessGroupAdded(ProcessGroup group)
onProcessGroupAdded in interface FlowManagerpublic void onProcessGroupRemoved(ProcessGroup group)
onProcessGroupRemoved in interface FlowManagerpublic void onProcessorAdded(ProcessorNode procNode)
onProcessorAdded in interface FlowManagerpublic void onProcessorRemoved(ProcessorNode procNode)
onProcessorRemoved in interface FlowManagerpublic Connectable findConnectable(String id)
findConnectable in interface FlowManagerpublic ProcessorNode getProcessorNode(String id)
getProcessorNode in interface FlowManagerpublic void onConnectionAdded(Connection connection)
onConnectionAdded in interface FlowManagerprotected boolean isFlowInitialized()
public void onConnectionRemoved(Connection connection)
onConnectionRemoved in interface FlowManagerpublic Connection getConnection(String id)
getConnection in interface FlowManagerpublic Set<Connection> findAllConnections()
findAllConnections in interface FlowManagerpublic void setRootGroup(ProcessGroup rootGroup)
public ProcessGroup getRootGroup()
getRootGroup in interface FlowManagerpublic String getRootGroupId()
getRootGroupId in interface FlowManagerpublic boolean areGroupsSame(String id1, String id2)
areGroupsSame in interface FlowManagerpublic Map<String,Integer> getComponentCounts()
getComponentCounts in interface FlowManagerpublic void purge()
purge in interface FlowManagerprivate void verifyCanPurge()
public Set<ControllerServiceNode> getAllControllerServices()
getAllControllerServices in interface FlowManagerpublic ControllerServiceNode getControllerServiceNode(String id)
getControllerServiceNode in interface FlowManagerpublic void onInputPortAdded(Port inputPort)
onInputPortAdded in interface FlowManagerpublic void onInputPortRemoved(Port inputPort)
onInputPortRemoved in interface FlowManagerpublic Port getInputPort(String id)
getInputPort in interface FlowManagerpublic void onOutputPortAdded(Port outputPort)
onOutputPortAdded in interface FlowManagerpublic void onOutputPortRemoved(Port outputPort)
onOutputPortRemoved in interface FlowManagerpublic Port getOutputPort(String id)
getOutputPort in interface FlowManagerpublic void onFunnelAdded(Funnel funnel)
onFunnelAdded in interface FlowManagerpublic void onFunnelRemoved(Funnel funnel)
onFunnelRemoved in interface FlowManagerpublic Funnel getFunnel(String id)
getFunnel in interface FlowManagerpublic ProcessorNode createProcessor(String type, String id, BundleCoordinate coordinate)
createProcessor in interface FlowManagerpublic ProcessorNode createProcessor(String type, String id, BundleCoordinate coordinate, boolean firstTimeAdded)
createProcessor in interface FlowManagerpublic ReportingTaskNode createReportingTask(String type, BundleCoordinate bundleCoordinate)
createReportingTask in interface FlowManagerpublic ReportingTaskNode createReportingTask(String type, BundleCoordinate bundleCoordinate, boolean firstTimeAdded)
createReportingTask in interface FlowManagerpublic ReportingTaskNode createReportingTask(String type, String id, BundleCoordinate bundleCoordinate, boolean firstTimeAdded)
createReportingTask in interface FlowManagerpublic ReportingTaskNode getReportingTaskNode(String taskId)
getReportingTaskNode in interface FlowManagerpublic void removeReportingTask(ReportingTaskNode reportingTaskNode)
removeReportingTask in interface FlowManagerpublic void onReportingTaskAdded(ReportingTaskNode taskNode)
protected abstract ExtensionManager getExtensionManager()
protected abstract ProcessScheduler getProcessScheduler()
public Set<ReportingTaskNode> getAllReportingTasks()
getAllReportingTasks in interface FlowManagerpublic ParameterContextManager getParameterContextManager()
getParameterContextManager in interface FlowManagerpublic ParameterContext createParameterContext(String id, String name, Map<String,Parameter> parameters)
createParameterContext in interface FlowManagerprotected abstract Authorizable getParameterContextParent()
Copyright © 2021 Apache NiFi Project. All rights reserved.