public class NiFiFlow extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NiFiFlow.EntityChangeType |
| Modifier and Type | Field and Description |
|---|---|
private String |
atlasGuid |
private org.apache.atlas.model.instance.AtlasObjectId |
atlasObjectId |
private String |
description |
private org.apache.atlas.model.instance.AtlasEntity |
exEntity |
private String |
flowName |
private Map<String,NiFiFlowPath> |
flowPaths |
private Map<String,List<ConnectionStatus>> |
incomingConnections |
private Map<String,PortStatus> |
inputPorts |
private static org.slf4j.Logger |
logger |
private AtomicBoolean |
metadataUpdated
Track whether this instance has metadata updated and should be updated in Atlas.
|
private String |
namespace |
private Map<String,List<ConnectionStatus>> |
outGoingConnections |
private Map<String,PortStatus> |
outputPorts |
private Map<String,ProcessorStatus> |
processors |
private Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
queues |
private Map<String,RemoteProcessGroupStatus> |
remoteProcessGroups |
private Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
rootInputPortEntities |
private Map<String,PortStatus> |
rootInputPorts |
private Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
rootOutputPortEntities |
private Map<String,PortStatus> |
rootOutputPorts |
private String |
rootProcessGroupId |
private Set<String> |
stillExistingEntityGuids |
private Set<String> |
traversedPathIds |
private List<String> |
updateAudit |
private Set<String> |
updatedEntityGuids |
private String |
url |
private boolean |
urlUpdated |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(ConnectionStatus c) |
void |
addInputPort(PortStatus port) |
void |
addOutputPort(PortStatus port) |
void |
addProcessor(ProcessorStatus p) |
void |
addRemoteProcessGroup(RemoteProcessGroupStatus r) |
void |
addRootInputPort(PortStatus port) |
void |
addRootOutputPort(PortStatus port) |
private org.apache.atlas.model.instance.AtlasObjectId |
createAtlasObjectId() |
private org.apache.atlas.model.instance.AtlasEntity |
createOrUpdateRootGroupPortEntity(boolean isInput,
String qualifiedName,
String portName) |
NiFiFlowPath |
findPath(String componentId)
Find a flow_path that contains specified componentId.
|
String |
getAtlasGuid() |
org.apache.atlas.model.instance.AtlasObjectId |
getAtlasObjectId() |
Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasEntity>> |
getChangedDataSetEntities() |
Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasEntity>> |
getChangedFlowPathEntities() |
String |
getDescription() |
private NiFiFlow.EntityChangeType |
getEntityChangeType(String guid) |
org.apache.atlas.model.instance.AtlasEntity |
getExEntity() |
String |
getFlowName() |
private NiFiFlow.EntityChangeType |
getFlowPathChangeType(NiFiFlowPath path) |
private NiFiFlow.EntityChangeType |
getFlowPathIOChangeType(org.apache.atlas.model.instance.AtlasObjectId id) |
Map<String,NiFiFlowPath> |
getFlowPaths() |
List<ConnectionStatus> |
getIncomingConnections(String componentId) |
Map<String,PortStatus> |
getInputPorts() |
String |
getNamespace() |
NiFiFlowPath |
getOrCreateFlowPath(String pathId) |
Tuple<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
getOrCreateQueue(String destinationComponentId) |
List<ConnectionStatus> |
getOutgoingConnections(String componentId) |
Map<String,PortStatus> |
getOutputPorts() |
String |
getProcessComponentName(String componentId) |
String |
getProcessComponentName(String componentId,
Supplier<String> unknown) |
Map<String,ProcessorStatus> |
getProcessors() |
String |
getQualifiedName() |
Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
getQueues() |
Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
getRootInputPortEntities() |
Map<String,PortStatus> |
getRootInputPorts() |
Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> |
getRootOutputPortEntities() |
Map<String,PortStatus> |
getRootOutputPorts() |
String |
getRootProcessGroupId() |
List<String> |
getUpdateAudit() |
String |
getUrl() |
boolean |
isInputPort(String componentId) |
boolean |
isMetadataUpdated() |
boolean |
isOutputPort(String componentId) |
boolean |
isProcessComponent(String componentId)
Determine if a component should be reported as NiFiFlowPath.
|
boolean |
isProcessor(String componentId) |
boolean |
isRootInputPort(String componentId) |
boolean |
isRootOutputPort(String componentId) |
boolean |
isTraversedPath(String pathId) |
void |
setAtlasGuid(String atlasGuid) |
private boolean |
setChangedIOIds(NiFiFlowPath path,
org.apache.atlas.model.instance.AtlasEntity pathEntity,
boolean isInput)
Set input or output DataSet ids for a NiFiFlowPath.
|
void |
setDescription(String description) |
void |
setExEntity(org.apache.atlas.model.instance.AtlasEntity exEntity) |
void |
setFlowName(String flowName) |
void |
setNamespace(String namespace) |
void |
setUrl(String url) |
void |
startTrackingChanges()
Start tracking changes from current state.
|
private Tuple<NiFiFlow.EntityChangeType,org.apache.atlas.model.instance.AtlasEntity> |
toAtlasEntity(NiFiFlow.EntityChangeType changeType,
NiFiFlowPath path) |
String |
toQualifiedName(String componentId) |
private Set<org.apache.atlas.model.instance.AtlasObjectId> |
toRemainingFlowPathIOIds(Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasObjectId>> ids) |
private static final org.slf4j.Logger logger
private final String rootProcessGroupId
private String flowName
private String namespace
private String url
private String atlasGuid
private org.apache.atlas.model.instance.AtlasEntity exEntity
private org.apache.atlas.model.instance.AtlasObjectId atlasObjectId
private String description
private AtomicBoolean metadataUpdated
private boolean urlUpdated
private final Map<String,NiFiFlowPath> flowPaths
private final Map<String,ProcessorStatus> processors
private final Map<String,RemoteProcessGroupStatus> remoteProcessGroups
private final Map<String,List<ConnectionStatus>> incomingConnections
private final Map<String,List<ConnectionStatus>> outGoingConnections
private final Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> queues
private final Map<String,PortStatus> inputPorts
private final Map<String,PortStatus> outputPorts
private final Map<String,PortStatus> rootInputPorts
private final Map<String,PortStatus> rootOutputPorts
private final Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> rootInputPortEntities
private final Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> rootOutputPortEntities
public NiFiFlow(String rootProcessGroupId)
public org.apache.atlas.model.instance.AtlasObjectId getAtlasObjectId()
public String getRootProcessGroupId()
public String getNamespace()
public void setNamespace(String namespace)
private org.apache.atlas.model.instance.AtlasObjectId createAtlasObjectId()
public org.apache.atlas.model.instance.AtlasEntity getExEntity()
public void setExEntity(org.apache.atlas.model.instance.AtlasEntity exEntity)
public String getAtlasGuid()
public void setAtlasGuid(String atlasGuid)
public String getQualifiedName()
public String getDescription()
public void setDescription(String description)
public void addConnection(ConnectionStatus c)
public void addProcessor(ProcessorStatus p)
public Map<String,ProcessorStatus> getProcessors()
public void addRemoteProcessGroup(RemoteProcessGroupStatus r)
public void setFlowName(String flowName)
public String getFlowName()
public void setUrl(String url)
public String getUrl()
public List<ConnectionStatus> getIncomingConnections(String componentId)
public List<ConnectionStatus> getOutgoingConnections(String componentId)
public void addInputPort(PortStatus port)
public Map<String,PortStatus> getInputPorts()
public void addOutputPort(PortStatus port)
public Map<String,PortStatus> getOutputPorts()
public void addRootInputPort(PortStatus port)
public Map<String,PortStatus> getRootInputPorts()
public void addRootOutputPort(PortStatus port)
public Map<String,PortStatus> getRootOutputPorts()
public Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> getRootInputPortEntities()
private org.apache.atlas.model.instance.AtlasEntity createOrUpdateRootGroupPortEntity(boolean isInput,
String qualifiedName,
String portName)
public Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> getRootOutputPortEntities()
public Tuple<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> getOrCreateQueue(String destinationComponentId)
public Map<org.apache.atlas.model.instance.AtlasObjectId,org.apache.atlas.model.instance.AtlasEntity> getQueues()
public Map<String,NiFiFlowPath> getFlowPaths()
public NiFiFlowPath findPath(String componentId)
public boolean isProcessComponent(String componentId)
public boolean isProcessor(String componentId)
public boolean isInputPort(String componentId)
public boolean isOutputPort(String componentId)
public boolean isRootInputPort(String componentId)
public boolean isRootOutputPort(String componentId)
public String getProcessComponentName(String componentId, Supplier<String> unknown)
public void startTrackingChanges()
public boolean isMetadataUpdated()
private NiFiFlow.EntityChangeType getEntityChangeType(String guid)
public Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasEntity>> getChangedDataSetEntities()
public NiFiFlowPath getOrCreateFlowPath(String pathId)
public boolean isTraversedPath(String pathId)
private NiFiFlow.EntityChangeType getFlowPathChangeType(NiFiFlowPath path)
private NiFiFlow.EntityChangeType getFlowPathIOChangeType(org.apache.atlas.model.instance.AtlasObjectId id)
private Tuple<NiFiFlow.EntityChangeType,org.apache.atlas.model.instance.AtlasEntity> toAtlasEntity(NiFiFlow.EntityChangeType changeType, NiFiFlowPath path)
private boolean setChangedIOIds(NiFiFlowPath path, org.apache.atlas.model.instance.AtlasEntity pathEntity, boolean isInput)
private Set<org.apache.atlas.model.instance.AtlasObjectId> toRemainingFlowPathIOIds(Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasObjectId>> ids)
public Map<NiFiFlow.EntityChangeType,List<org.apache.atlas.model.instance.AtlasEntity>> getChangedFlowPathEntities()
Copyright © 2024 Apache NiFi Project. All rights reserved.