public class SocketFlowFileServerProtocol extends Object implements ServerProtocol
| Modifier and Type | Field and Description |
|---|---|
private static long |
BATCH_NANOS |
private String |
commsIdentifier |
private boolean |
handshakeCompleted |
private org.slf4j.Logger |
logger |
private FlowFileCodec |
negotiatedFlowFileCodec |
private RootGroupPort |
port |
private long |
requestExpirationMillis |
static String |
RESOURCE_NAME |
private ProcessGroup |
rootGroup |
private boolean |
shutdown |
private String |
transitUriPrefix |
private Boolean |
useGzip |
private VersionNegotiator |
versionNegotiator |
| Constructor and Description |
|---|
SocketFlowFileServerProtocol() |
| Modifier and Type | Method and Description |
|---|---|
RootGroupPort |
getPort() |
FlowFileCodec |
getPreNegotiatedCodec() |
long |
getRequestExpiration() |
RequestType |
getRequestType(Peer peer) |
String |
getResourceName() |
VersionNegotiator |
getVersionNegotiator() |
void |
handshake(Peer peer) |
boolean |
isHandshakeSuccessful() |
boolean |
isShutdown() |
FlowFileCodec |
negotiateCodec(Peer peer) |
int |
receiveFlowFiles(Peer peer,
ProcessContext context,
ProcessSession session,
FlowFileCodec codec) |
void |
sendPeerList(Peer peer) |
void |
setNodeInformant(NodeInformant nodeInformant) |
void |
setRootProcessGroup(ProcessGroup group) |
void |
shutdown(Peer peer) |
String |
toString() |
int |
transferFlowFiles(Peer peer,
ProcessContext context,
ProcessSession session,
FlowFileCodec codec) |
public static final String RESOURCE_NAME
private ProcessGroup rootGroup
private String commsIdentifier
private boolean handshakeCompleted
private Boolean useGzip
private long requestExpirationMillis
private RootGroupPort port
private boolean shutdown
private FlowFileCodec negotiatedFlowFileCodec
private String transitUriPrefix
private final VersionNegotiator versionNegotiator
private final org.slf4j.Logger logger
private static final long BATCH_NANOS
public void setRootProcessGroup(ProcessGroup group)
setRootProcessGroup in interface ServerProtocolpublic void handshake(Peer peer) throws IOException, HandshakeException
handshake in interface ServerProtocolIOExceptionHandshakeExceptionpublic boolean isHandshakeSuccessful()
isHandshakeSuccessful in interface ServerProtocolpublic RootGroupPort getPort()
getPort in interface ServerProtocolpublic FlowFileCodec negotiateCodec(Peer peer) throws IOException, ProtocolException
negotiateCodec in interface ServerProtocolIOExceptionProtocolExceptionpublic FlowFileCodec getPreNegotiatedCodec()
getPreNegotiatedCodec in interface ServerProtocolpublic int transferFlowFiles(Peer peer, ProcessContext context, ProcessSession session, FlowFileCodec codec) throws IOException, ProtocolException
transferFlowFiles in interface ServerProtocolIOExceptionProtocolExceptionpublic int receiveFlowFiles(Peer peer, ProcessContext context, ProcessSession session, FlowFileCodec codec) throws IOException, ProtocolException
receiveFlowFiles in interface ServerProtocolIOExceptionProtocolExceptionpublic RequestType getRequestType(Peer peer) throws IOException
getRequestType in interface ServerProtocolIOExceptionpublic VersionNegotiator getVersionNegotiator()
getVersionNegotiator in interface VersionedRemoteResourcepublic void shutdown(Peer peer)
shutdown in interface ServerProtocolpublic boolean isShutdown()
isShutdown in interface ServerProtocolpublic void sendPeerList(Peer peer) throws IOException
sendPeerList in interface ServerProtocolIOExceptionpublic String getResourceName()
getResourceName in interface VersionedRemoteResourcepublic void setNodeInformant(NodeInformant nodeInformant)
setNodeInformant in interface ServerProtocolpublic long getRequestExpiration()
getRequestExpiration in interface ServerProtocolCopyright © 2015 Apache NiFi (incubating). All rights reserved.