public class StandardHttpFlowFileServerProtocol extends AbstractFlowFileServerProtocol implements HttpFlowFileServerProtocol
| Modifier and Type | Field and Description |
|---|---|
private org.apache.nifi.remote.codec.FlowFileCodec |
codec |
static String |
RESOURCE_NAME |
private HttpRemoteSiteListener |
transactionManager |
private VersionNegotiator |
versionNegotiator |
DEFAULT_BATCH_NANOS, handshakeCompleted, handshakeProperties, logger, negotiatedFlowFileCodec, port, rootGroup, shutdown| Constructor and Description |
|---|
StandardHttpFlowFileServerProtocol(VersionNegotiator versionNegotiator,
NiFiProperties nifiProperties) |
checkPortStatus, createTransitUri, getPort, getRequestExpiration, handshake, isHandshakeSuccessful, isShutdown, receiveFlowFiles, setNodeInformant, setRootProcessGroup, shutdown, toString, transferFlowFiles, validateHandshakeRequest, writeTransactionResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPort, getRequestExpiration, handshake, isHandshakeSuccessful, isShutdown, receiveFlowFiles, setNodeInformant, setRootProcessGroup, shutdown, transferFlowFilespublic static final String RESOURCE_NAME
private final org.apache.nifi.remote.codec.FlowFileCodec codec
private final VersionNegotiator versionNegotiator
private final HttpRemoteSiteListener transactionManager
public StandardHttpFlowFileServerProtocol(VersionNegotiator versionNegotiator, NiFiProperties nifiProperties)
public org.apache.nifi.remote.codec.FlowFileCodec negotiateCodec(Peer peer) throws IOException
negotiateCodec in interface ServerProtocolIOExceptionpublic org.apache.nifi.remote.codec.FlowFileCodec getPreNegotiatedCodec()
getPreNegotiatedCodec in interface ServerProtocolgetPreNegotiatedCodec in class AbstractFlowFileServerProtocolprotected HandshakeProperties doHandshake(Peer peer) throws IOException, HandshakeException
doHandshake in class AbstractFlowFileServerProtocolIOExceptionHandshakeExceptionprotected void writeTransactionResponse(boolean isTransfer,
ResponseCode response,
CommunicationsSession commsSession,
String explanation)
throws IOException
writeTransactionResponse in class AbstractFlowFileServerProtocolIOExceptionprotected Response readTransactionResponse(boolean isTransfer, CommunicationsSession commsSession) throws IOException
readTransactionResponse in class AbstractFlowFileServerProtocolIOExceptionprivate int holdTransaction(Peer peer, FlowFileTransaction transaction)
protected int commitTransferTransaction(Peer peer, FlowFileTransaction transaction) throws IOException
commitTransferTransaction in class AbstractFlowFileServerProtocolIOExceptionpublic int commitTransferTransaction(Peer peer, String clientChecksum) throws IOException, IllegalStateException
commitTransferTransaction in interface HttpFlowFileServerProtocolIOExceptionIllegalStateExceptionprotected int commitReceiveTransaction(Peer peer, FlowFileTransaction transaction) throws IOException
commitReceiveTransaction in class AbstractFlowFileServerProtocolIOExceptionpublic int commitReceiveTransaction(Peer peer) throws IOException, IllegalStateException
commitReceiveTransaction in interface HttpFlowFileServerProtocolIOExceptionIllegalStateExceptionpublic RequestType getRequestType(Peer peer) throws IOException
getRequestType in interface ServerProtocolIOExceptionpublic VersionNegotiator getVersionNegotiator()
getVersionNegotiator in interface VersionedRemoteResourcepublic void sendPeerList(Peer peer, Optional<ClusterNodeInformation> clusterNodeInfo, NodeInformation self) throws IOException
sendPeerList in interface ServerProtocolIOExceptionpublic String getResourceName()
getResourceName in interface VersionedRemoteResourceCopyright © 2023 Apache NiFi Project. All rights reserved.