/* Set to indicate an error-initiated shutdown. */
Error feederInputError = null;
Exception shutdownException = null;
try {
FeederReplicaHandshake handshake =
new FeederReplicaHandshake(repNode,
Feeder.this,
feederReplicaChannel);
try {
protocol = handshake.execute();
} catch (InsufficientReplicasException e) {
return; /* Exit the feeder. */
} catch (InsufficientAcksException e) {
return;
}
protocolVersion = protocol.getVersion();
replicaNameIdPair = handshake.getReplicaNameIdPair();
/*
* Rename the thread when we get the replica name in, so that
* it's clear who is on the other end.
*/