Search in sources :

Example 11 with PeerNode

use of tezc.core.node.PeerNode in project tezcRaft by tezc.

the class ClusterWorker method eventsDrained.

/**
 * All events are processed
 */
@Override
public void eventsDrained() {
    try {
        for (PeerNode node : readyNodes) {
            node.handleMsgs();
        }
        readyNodes.clear();
        for (Cluster cluster : readyClusters) {
            cluster.flush();
        }
        readyClusters.clear();
    } catch (Exception e) {
        logError(e);
    }
}
Also used : Cluster(tezc.core.cluster.Cluster) PeerNode(tezc.core.node.PeerNode)

Aggregations

PeerNode (tezc.core.node.PeerNode)11 RegisterCommand (tezc.core.cluster.state.command.RegisterCommand)2 NodeRecord (tezc.core.record.NodeRecord)2 RaftException (tezc.base.exception.RaftException)1 Cluster (tezc.core.cluster.Cluster)1 Command (tezc.core.cluster.state.command.Command)1 ConfigCommand (tezc.core.cluster.state.command.ConfigCommand)1 NoOPCommand (tezc.core.cluster.state.command.NoOPCommand)1 TransportRecord (tezc.core.record.TransportRecord)1