public class SocketClientProtocol extends Object implements ClientProtocol
| Modifier and Type | Field and Description |
|---|---|
private static long |
BATCH_SEND_NANOS |
private String |
commsIdentifier |
private boolean |
handshakeComplete |
private Response |
handshakeResponse |
private org.slf4j.Logger |
logger |
private RemoteGroupPort |
port |
private boolean |
readyForFileTransfer |
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) |
boolean |
isDestinationFull() |
boolean |
isPortInvalid() |
boolean |
isPortUnknown() |
boolean |
isReadyForFileTransfer() |
FlowFileCodec |
negotiateCodec(Peer peer) |
void |
receiveFlowFiles(Peer peer,
ProcessContext context,
ProcessSession session,
FlowFileCodec codec) |
void |
setPort(RemoteGroupPort port) |
void |
shutdown(Peer peer) |
String |
toString() |
void |
transferFlowFiles(Peer peer,
ProcessContext context,
ProcessSession session,
FlowFileCodec codec) |
private final VersionNegotiator versionNegotiator
private RemoteGroupPort port
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 static final long BATCH_SEND_NANOS
public void setPort(RemoteGroupPort port)
public void handshake(Peer peer) throws IOException, HandshakeException
handshake in interface ClientProtocolIOExceptionHandshakeExceptionpublic boolean isReadyForFileTransfer()
isReadyForFileTransfer in interface ClientProtocolpublic boolean isPortInvalid()
isPortInvalid in interface ClientProtocolpublic boolean isPortUnknown()
isPortUnknown in interface ClientProtocolpublic boolean isDestinationFull()
isDestinationFull in interface ClientProtocolpublic Set<PeerStatus> getPeerStatuses(Peer peer) throws IOException
getPeerStatuses in interface ClientProtocolIOExceptionpublic FlowFileCodec negotiateCodec(Peer peer) throws IOException, ProtocolException
negotiateCodec in interface ClientProtocolIOExceptionProtocolExceptionpublic void receiveFlowFiles(Peer peer, ProcessContext context, ProcessSession session, FlowFileCodec codec) throws IOException, ProtocolException
receiveFlowFiles in interface ClientProtocolIOExceptionProtocolExceptionpublic void transferFlowFiles(Peer peer, ProcessContext context, ProcessSession session, FlowFileCodec codec) throws IOException, ProtocolException
transferFlowFiles in interface ClientProtocolIOExceptionProtocolExceptionpublic VersionNegotiator getVersionNegotiator()
getVersionNegotiator in interface VersionedRemoteResourcepublic void shutdown(Peer peer) throws IOException
shutdown in interface ClientProtocolIOExceptionpublic String getResourceName()
getResourceName in interface VersionedRemoteResourceCopyright © 2015 Apache NiFi (incubating). All rights reserved.