public class SocketClientProtocol extends Object implements ClientProtocol
| Modifier and Type | Field and Description |
|---|---|
private int |
batchCount |
private long |
batchMillis |
private long |
batchSize |
private String |
commsIdentifier |
private RemoteDestination |
destination |
private EventReporter |
eventReporter |
private boolean |
handshakeComplete |
private Response |
handshakeResponse |
private org.slf4j.Logger |
logger |
private boolean |
readyForFileTransfer |
private int |
timeoutMillis |
private String |
transitUriPrefix |
private boolean |
useCompression |
private VersionNegotiator |
versionNegotiator |
| Constructor and Description |
|---|
SocketClientProtocol() |
| Modifier and Type | Method and Description |
|---|---|
Set<PeerStatus> |
getPeerStatuses(Peer peer) |
String |
getResourceName() |
VersionNegotiator |
getVersionNegotiator() |
void |
handshake(Peer peer) |
void |
handshake(Peer peer,
String destinationId) |
boolean |
isDestinationFull() |
boolean |
isPortInvalid() |
boolean |
isPortUnknown() |
FlowFileCodec |
negotiateCodec(Peer peer) |
void |
setDestination(RemoteDestination destination) |
void |
setEventReporter(EventReporter eventReporter) |
void |
setPreferredBatchCount(int count) |
void |
setPreferredBatchDuration(long millis) |
void |
setPreferredBatchSize(long bytes) |
void |
setTimeout(int timeoutMillis) |
void |
shutdown(Peer peer) |
Transaction |
startTransaction(Peer peer,
FlowFileCodec codec,
TransferDirection direction) |
String |
toString() |
private final VersionNegotiator versionNegotiator
private RemoteDestination destination
private boolean useCompression
private String commsIdentifier
private boolean handshakeComplete
private final org.slf4j.Logger logger
private Response handshakeResponse
private boolean readyForFileTransfer
private String transitUriPrefix
private int timeoutMillis
private int batchCount
private long batchSize
private long batchMillis
private EventReporter eventReporter
public void setPreferredBatchCount(int count)
public void setPreferredBatchSize(long bytes)
public void setPreferredBatchDuration(long millis)
public void setEventReporter(EventReporter eventReporter)
public void setDestination(RemoteDestination destination)
public void setTimeout(int timeoutMillis)
public void handshake(Peer peer) throws IOException
handshake in interface ClientProtocolIOExceptionpublic void handshake(Peer peer, String destinationId) throws IOException
IOExceptionpublic boolean isPortInvalid()
isPortInvalid in interface ClientProtocoltrue if remote instance indicates that the port is
invalidpublic boolean isPortUnknown()
isPortUnknown in interface ClientProtocoltrue if remote instance indicates that the port is
unknownpublic boolean isDestinationFull()
isDestinationFull in interface ClientProtocoltrue if remote instance indicates that the port's
destination is fullpublic Set<PeerStatus> getPeerStatuses(Peer peer) throws IOException
getPeerStatuses in interface ClientProtocolIOExceptionpublic FlowFileCodec negotiateCodec(Peer peer) throws IOException
negotiateCodec in interface ClientProtocolIOExceptionpublic Transaction startTransaction(Peer peer, FlowFileCodec codec, TransferDirection direction) throws IOException
startTransaction in interface ClientProtocolIOExceptionpublic VersionNegotiator getVersionNegotiator()
getVersionNegotiator in interface VersionedRemoteResourcepublic void shutdown(Peer peer) throws IOException
shutdown in interface ClientProtocolIOExceptionpublic String getResourceName()
getResourceName in interface VersionedRemoteResourceCopyright © 2023 Apache NiFi Project. All rights reserved.