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<SiteToSiteClient> |
clientRef |
static String |
CONTENT_TYPE |
static int |
GZIP_COMPRESSION_LEVEL |
private static org.slf4j.Logger |
logger |
private NiFiProperties |
nifiProperties |
private RemoteProcessGroup |
remoteGroup |
private SSLContext |
sslContext |
private AtomicBoolean |
targetExists |
private String |
targetId |
private AtomicBoolean |
targetRunning |
private TransferDirection |
transferDirection |
private AtomicBoolean |
useCompression |
static String |
USER_AGENT |
PORT_RELATIONSHIPMINIMUM_SCHEDULING_NANOS| Constructor and Description |
|---|
StandardRemoteGroupPort(String id,
String targetId,
String name,
RemoteProcessGroup remoteGroup,
TransferDirection direction,
ConnectableType type,
SSLContext sslContext,
ProcessScheduler scheduler,
NiFiProperties nifiProperties) |
addConnection, disable, enable, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getMaxConcurrentTasks, getName, getPenalizationPeriod, getPenalizationPeriod, getPosition, getProcessGroup, getProcessGroupIdentifier, getRelationship, getRelationships, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, getVersionedComponentId, getYieldExpiration, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isLossTolerant, isRunning, onTrigger, setComments, setLossTolerant, setMaxConcurrentTasks, setName, setPenalizationPeriod, setPosition, setProcessGroup, setScheduldingPeriod, setVersionedComponentId, setYieldPeriod, updateConnection, verifyCanClearState, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStop, verifyCanUpdate, yield, yieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnection, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getName, getPenalizationPeriod, getPenalizationPeriod, getProcessGroup, getRelationship, getRelationships, getRunDuration, getRunnableComponent, getYieldExpiration, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isIsolated, isLossTolerant, isSessionBatchingSupported, isTriggerWhenAnyDestinationAvailable, setComments, setLossTolerant, setName, setPenalizationPeriod, setProcessGroup, setYieldPeriod, updateConnection, verifyCanClearState, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStop, verifyCanUpdate, yield, yieldgetMaxConcurrentTasks, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, isRunning, onTrigger, setMaxConcurrentTasks, setScheduldingPeriodgetProcessGroupIdentifierauthorize, authorize, checkAuthorization, checkAuthorization, getRequestedResource, isAuthorizedgetPosition, setPositiongetVersionedComponentId, setVersionedComponentIdgetIdentifier, getName, getYieldPeriodprivate static final long BATCH_SEND_NANOS
public static final String USER_AGENT
public static final String CONTENT_TYPE
public static final int GZIP_COMPRESSION_LEVEL
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 final NiFiProperties nifiProperties
private volatile String targetId
private final AtomicReference<SiteToSiteClient> clientRef
public StandardRemoteGroupPort(String id, String targetId, String name, RemoteProcessGroup remoteGroup, TransferDirection direction, ConnectableType type, SSLContext sslContext, ProcessScheduler scheduler, NiFiProperties nifiProperties)
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 © 2019 Apache NiFi Project. All rights reserved.