Package org.apache.nifi.remote.protocol
Interface ClientProtocol
- All Superinterfaces:
VersionedRemoteResource
- All Known Implementing Classes:
SocketClientProtocol
-
Method Summary
Modifier and TypeMethodDescriptiongetPeerStatuses
(Peer currentPeer) void
boolean
boolean
boolean
negotiateCodec
(Peer peer) void
startTransaction
(Peer peer, FlowFileCodec codec, TransferDirection direction) Methods inherited from interface org.apache.nifi.remote.VersionedRemoteResource
getResourceName, getVersionNegotiator
-
Method Details
-
handshake
void handshake(Peer peer) throws IOException, HandshakeException, UnknownPortException, PortNotRunningException -
getPeerStatuses
- Throws:
IOException
ProtocolException
-
negotiateCodec
- Throws:
IOException
ProtocolException
-
shutdown
- Throws:
IOException
ProtocolException
-
startTransaction
Transaction startTransaction(Peer peer, FlowFileCodec codec, TransferDirection direction) throws IOException - Throws:
IOException
-
isPortInvalid
- Returns:
true
if remote instance indicates that the port is invalid- Throws:
IllegalStateException
- if a handshake has not successfully completed
-
isPortUnknown
boolean isPortUnknown()- Returns:
true
if remote instance indicates that the port is unknown- Throws:
IllegalStateException
- if a handshake has not successfully completed
-
isDestinationFull
boolean isDestinationFull()- Returns:
true
if remote instance indicates that the port's destination is full- Throws:
IllegalStateException
- if a handshake has not successfully completed
-