org.jgroups.protocols

Class MPING

public class MPING extends PING implements Runnable

Uses its own IP multicast socket to send and receive discovery requests/responses. Can be used in conjuntion with a non-UDP transport, e.g. TCP.

The discovery is assymetric: discovery requests are broadcast via the multicast socket, and received via the multicast socket by everyone in the group. However, the discovery responses are sent back via the regular transport (e.g. TCP) to the sender (discovery request contained sender's regular address, e.g. 192.168.0.2:7800).

Version: $Id: MPING.java,v 1.12 2005/08/11 12:43:47 belaban Exp $

Author: Bela Ban

Method Summary
InetAddressgetBindAddr()
InetAddressgetMcastAddr()
intgetMcastPort()
StringgetName()
intgetTTL()
booleanisBindToAllInterfaces()
voidrun()
voidsetBindAddr(InetAddress bind_addr)
voidsetBindToAllInterfaces(boolean bind_to_all_interfaces)
voidsetMcastAddr(InetAddress mcast_addr)
voidsetMcastPort(int mcast_port)
booleansetProperties(Properties props)
voidsetTTL(int ip_ttl)
voidstart()
voidstop()

Method Detail

getBindAddr

public InetAddress getBindAddr()

getMcastAddr

public InetAddress getMcastAddr()

getMcastPort

public int getMcastPort()

getName

public String getName()

getTTL

public int getTTL()

isBindToAllInterfaces

public boolean isBindToAllInterfaces()

run

public void run()

setBindAddr

public void setBindAddr(InetAddress bind_addr)

setBindToAllInterfaces

public void setBindToAllInterfaces(boolean bind_to_all_interfaces)

setMcastAddr

public void setMcastAddr(InetAddress mcast_addr)

setMcastPort

public void setMcastPort(int mcast_port)

setProperties

public boolean setProperties(Properties props)

setTTL

public void setTTL(int ip_ttl)

start

public void start()

stop

public void stop()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.