public class LocalPort extends AbstractPort
FlowFiles can be transferred into and out of a ProcessGroup to and/or from another ProcessGroup within the same instance of
NiFi.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
(package private) static String |
MAX_CONCURRENT_TASKS_PROP_NAME |
(package private) static String |
MAX_TRANSFERRED_FLOWFILES_PROP_NAME |
private int |
maxIterations |
private Lock |
readLock |
private ReadWriteLock |
rwLock |
private Lock |
writeLock |
PORT_RELATIONSHIPMINIMUM_SCHEDULING_NANOS| Constructor and Description |
|---|
LocalPort(String id,
String name,
ConnectableType type,
ProcessScheduler scheduler,
int maxConcurrentTasks,
int maxBatchSize,
String boredYieldDuration) |
disable, enable, getComments, getConnectableType, getIdentifier, getMaxConcurrentTasks, getName, getParentAuthorizable, getPenalizationPeriod, getPenalizationPeriod, getPosition, getProcessGroup, getProcessGroupIdentifier, getRelationship, getRelationships, getResource, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, getVersionedComponentId, getYieldExpiration, getYieldPeriod, getYieldPeriod, isAutoTerminated, isLossTolerant, isRunning, onSchedulingStart, onTrigger, setComments, setLossTolerant, setMaxConcurrentTasks, setName, setPenalizationPeriod, setPosition, setProcessGroup, setScheduldingPeriod, setVersionedComponentId, setYieldPeriod, shutdown, verifyCanClearState, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStart, verifyCanStop, verifyCanUpdate, yield, yieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRunDuration, getRunnableComponent, isIsolated, isSessionBatchingSupported, isTriggerWhenAnyDestinationAvailableauthorize, authorize, checkAuthorization, checkAuthorization, getRequestedResource, isAuthorizedprivate static final org.slf4j.Logger logger
static final String MAX_CONCURRENT_TASKS_PROP_NAME
static final String MAX_TRANSFERRED_FLOWFILES_PROP_NAME
private final ReadWriteLock rwLock
private final Lock readLock
private final Lock writeLock
private final int maxIterations
public LocalPort(String id, String name, ConnectableType type, ProcessScheduler scheduler, int maxConcurrentTasks, int maxBatchSize, String boredYieldDuration)
protected int getMaxIterations()
public boolean isValid()
isValid in interface PortisValid in class AbstractPortprivate boolean hasOutboundConnection()
public Collection<ValidationResult> getValidationErrors()
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractPortprivate void triggerOutputPort(ProcessContext context, ProcessSession session)
private void triggerInputPort(ProcessContext context, ProcessSession session)
private boolean isTransferDataOut()
private void transferInputBatch(ProcessSession session)
private void transferSingleFlowFile(ProcessSession session)
protected void transferUnboundedConcurrency(ProcessContext context, ProcessSession session)
public void updateConnection(Connection connection) throws IllegalStateException
updateConnection in interface ConnectableupdateConnection in class AbstractPortIllegalStateExceptionpublic void addConnection(Connection connection) throws IllegalArgumentException
addConnection in interface ConnectableaddConnection in class AbstractPortIllegalArgumentExceptionpublic void removeConnection(Connection connection) throws IllegalArgumentException, IllegalStateException
removeConnection in interface ConnectableremoveConnection in class AbstractPortIllegalArgumentExceptionIllegalStateExceptionpublic Set<Connection> getConnections()
getConnections in interface ConnectablegetConnections in class AbstractPortpublic Set<Connection> getConnections(Relationship relationship)
getConnections in interface ConnectablegetConnections in class AbstractPortpublic List<Connection> getIncomingConnections()
getIncomingConnections in interface ConnectablegetIncomingConnections in class AbstractPortpublic boolean hasIncomingConnection()
hasIncomingConnection in interface ConnectablehasIncomingConnection in class AbstractPortpublic boolean isTriggerWhenEmpty()
public SchedulingStrategy getSchedulingStrategy()
public boolean isSideEffectFree()
public String getComponentType()
public String toString()
toString in class AbstractPortCopyright © 2021 Apache NiFi Project. All rights reserved.