public class StandardRemoteGroupPort extends RemoteGroupPort
| Modifier and Type | Field and Description |
|---|---|
private static long |
BATCH_SEND_NANOS |
private AtomicReference<Integer> |
batchCount |
private AtomicReference<String> |
batchDuration |
private AtomicReference<String> |
batchSize |
private static String |
CATEGORY |
private AtomicReference<org.apache.nifi.remote.client.SiteToSiteClient> |
clientRef |
private static org.slf4j.Logger |
logger |
private RemoteProcessGroup |
remoteGroup |
private SSLContext |
sslContext |
private AtomicBoolean |
targetExists |
private String |
targetId |
private AtomicBoolean |
targetRunning |
private TransferDirection |
transferDirection |
private AtomicBoolean |
useCompression |
PORT_RELATIONSHIPMINIMUM_SCHEDULING_NANOS| Constructor and Description |
|---|
StandardRemoteGroupPort(String id,
String targetId,
String name,
RemoteProcessGroup remoteGroup,
TransferDirection direction,
ConnectableType type,
SSLContext sslContext,
ProcessScheduler scheduler) |
addConnection, disable, enable, evaluateParameters, getBackoffMechanism, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getMaxBackoffPeriod, getMaxConcurrentTasks, getName, getPenalizationPeriod, getPenalizationPeriod, getPosition, getProcessGroup, getProcessGroupIdentifier, getRelationship, getRelationships, getRetriedRelationships, getRetryCount, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, getVersionedComponentId, getYieldExpiration, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isLossTolerant, isRelationshipRetried, isRunning, onTrigger, setBackoffMechanism, setComments, setLossTolerant, setMaxBackoffPeriod, setMaxConcurrentTasks, setName, setPenalizationPeriod, setPosition, setProcessGroup, setRetriedRelationships, setRetryCount, setSchedulingPeriod, setVersionedComponentId, setYieldPeriod, updateConnection, verifyCanClearState, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStop, verifyCanUpdate, yield, yieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnection, evaluateParameters, getBackoffMechanism, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getMaxBackoffPeriod, getName, getPenalizationPeriod, getPenalizationPeriod, getProcessGroup, getRelationship, getRelationships, getRetriedRelationships, getRetryCount, getRunDuration, getRunnableComponent, getYieldExpiration, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isIsolated, isLossTolerant, isRelationshipRetried, isSessionBatchingSupported, isTriggerWhenAnyDestinationAvailable, setBackoffMechanism, setComments, setLossTolerant, setMaxBackoffPeriod, setName, setPenalizationPeriod, setProcessGroup, setRetriedRelationships, setRetryCount, setYieldPeriod, updateConnection, verifyCanClearState, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStop, verifyCanUpdate, yield, yieldgetMaxConcurrentTasks, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, isRunning, onTrigger, setMaxConcurrentTasks, setSchedulingPeriodgetProcessGroupIdentifierauthorize, authorize, checkAuthorization, checkAuthorization, getRequestedResource, isAuthorizedgetPosition, setPositiongetVersionedComponentId, setVersionedComponentIdgetIdentifier, getName, getYieldPeriodprivate static final long BATCH_SEND_NANOS
private static final String CATEGORY
private static final org.slf4j.Logger logger
private final RemoteProcessGroup remoteGroup
private final AtomicBoolean useCompression
private final AtomicReference<Integer> batchCount
private final AtomicReference<String> batchSize
private final AtomicReference<String> batchDuration
private final AtomicBoolean targetExists
private final AtomicBoolean targetRunning
private final SSLContext sslContext
private final TransferDirection transferDirection
private volatile String targetId
private final AtomicReference<org.apache.nifi.remote.client.SiteToSiteClient> clientRef
public StandardRemoteGroupPort(String id, String targetId, String name, RemoteProcessGroup remoteGroup, TransferDirection direction, ConnectableType type, SSLContext sslContext, ProcessScheduler scheduler)
org.apache.nifi.remote.client.SiteToSiteClient getSiteToSiteClient()
public String getTargetIdentifier()
getTargetIdentifier in class RemoteGroupPortpublic void setTargetIdentifier(String targetId)
public boolean isTargetRunning()
isTargetRunning in class RemoteGroupPortpublic void setTargetRunning(boolean targetRunning)
public boolean isTriggerWhenEmpty()
public Resource getResource()
getResource in interface AuthorizablegetResource in class AbstractPortpublic Authorizable getParentAuthorizable()
getParentAuthorizable in interface AuthorizablegetParentAuthorizable in class AbstractPortpublic void shutdown()
shutdown in interface Portshutdown in class AbstractPortpublic void onSchedulingStart()
onSchedulingStart in interface PortonSchedulingStart in class AbstractPortpublic void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractPortpublic String getYieldPeriod()
getYieldPeriod in interface ConnectablegetYieldPeriod in class AbstractPortprivate int transferFlowFiles(Transaction transaction, ProcessContext context, ProcessSession session, FlowFile firstFlowFile) throws IOException, ProtocolException
IOExceptionProtocolExceptionprivate int receiveFlowFiles(Transaction transaction, ProcessContext context, ProcessSession session) throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic boolean getTargetExists()
getTargetExists in class RemoteGroupPortpublic boolean isValid()
isValid in interface PortisValid in class AbstractPortpublic Collection<ValidationResult> getValidationErrors()
public void verifyCanStart()
verifyCanStart in interface ConnectableverifyCanStart in class AbstractPortpublic void setUseCompression(boolean useCompression)
setUseCompression in class RemoteGroupPortpublic boolean isUseCompression()
isUseCompression in interface RemoteDestinationisUseCompression in class RemoteGroupPortpublic Integer getBatchCount()
getBatchCount in class RemoteGroupPortpublic void setBatchCount(Integer batchCount)
setBatchCount in class RemoteGroupPortpublic String getBatchSize()
getBatchSize in class RemoteGroupPortpublic void setBatchSize(String batchSize)
setBatchSize in class RemoteGroupPortpublic String getBatchDuration()
getBatchDuration in class RemoteGroupPortpublic void setBatchDuration(String batchDuration)
setBatchDuration in class RemoteGroupPortpublic String toString()
toString in class AbstractPortpublic RemoteProcessGroup getRemoteProcessGroup()
getRemoteProcessGroup in class RemoteGroupPortpublic TransferDirection getTransferDirection()
getTransferDirection in class RemoteGroupPortpublic void setTargetExists(boolean exists)
public void removeConnection(Connection connection) throws IllegalArgumentException, IllegalStateException
removeConnection in interface ConnectableremoveConnection in class AbstractPortIllegalArgumentExceptionIllegalStateExceptionpublic SchedulingStrategy getSchedulingStrategy()
public boolean isSideEffectFree()
public String getComponentType()
Copyright © 2022 Apache NiFi Project. All rights reserved.