Şu satırı dahil ederiz. Node nesnesinin bir üye alanıdır
import com.hazelcast.internal.cluster.impl.MulticastService;
Açıklaması şöyle
Kod şöyleThe MulticastService class is responsible for managing the multicast discovery process. It sends and receives multicast packets to discover other Hazelcast nodes in the same network.The JoinMessage and JoinRequest classes define the message format used for multicast discovery. When a new node joins the cluster, it sends a JoinMessage to the multicast group, and existing nodes in the group respond with a JoinRequest message containing information about the cluster configuration.The TcpIpJoiner and TcpIpJoinerOverMulticast classes are responsible for handling the actual joining process after a node has been discovered through multicast. They establish a TCP/IP connection between the new node and the existing nodes in the cluster.İskeleti şöyle. Bir thread içinde multicast paketleri dinler
public final class MulticastService implements Runnable { private final MulticastSocket multicastSocket; ... }
Hiç yorum yok:
Yorum Gönder