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