use of org.apache.ratis.server.leader.FollowerInfo in project incubator-ratis by apache.
the class LeaderStateImpl method restart.
@Override
public void restart(LogAppender sender) {
final FollowerInfo follower = sender.getFollower();
LOG.info("{}: Restarting {} for {}", this, JavaUtils.getClassSimpleName(sender.getClass()), follower.getName());
sender.stop();
senders.removeAll(Collections.singleton(sender));
addAndStartSenders(Collections.singleton(follower.getPeer()));
}
Aggregations