17 Kasım 2022 Perşembe

HazelcastAPI MulticastService Sınıfı - Multicast Discovery İçindir

Giriş
Şu satırı dahil ederiz. Node nesnesinin bir üye alanıdır
import com.hazelcast.internal.cluster.impl.MulticastService;
Açıklaması şöyle
The 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
Kod şöyle
public final class MulticastService implements Runnable {

  private final MulticastSocket multicastSocket;
  ...
}

Hiç yorum yok:

Yorum Gönder

THIRD-PARTY.txt Dosyası

Kullanılan harici kütüphanelerin sürümleri bu dosyada Dosyanın yolu şöyle hazelcast/licenses/THIRD-PARTY.txt