Search in sources :

Example 1 with DummyMembershipProtocol

use of io.scalecube.cluster.membership.DummyMembershipProtocol in project scalecube by scalecube.

the class GossipProtocolTest method initGossipProtocol.

private GossipProtocolImpl initGossipProtocol(Transport transport, List<Address> members) {
    MembershipProtocol dummyMembership = new DummyMembershipProtocol(transport.address(), members);
    GossipConfig gossipConfig = ClusterConfig.builder().gossipFanout(gossipFanout).gossipInterval(gossipInterval).gossipRepeatMult(gossipRepeatMultiplier).build();
    GossipProtocolImpl gossipProtocol = new GossipProtocolImpl(transport, dummyMembership, gossipConfig);
    gossipProtocol.start();
    return gossipProtocol;
}
Also used : DummyMembershipProtocol(io.scalecube.cluster.membership.DummyMembershipProtocol) MembershipProtocol(io.scalecube.cluster.membership.MembershipProtocol) DummyMembershipProtocol(io.scalecube.cluster.membership.DummyMembershipProtocol)

Aggregations

DummyMembershipProtocol (io.scalecube.cluster.membership.DummyMembershipProtocol)1 MembershipProtocol (io.scalecube.cluster.membership.MembershipProtocol)1