public class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MULTICAST_ANNOUNCEMENT_ADDRESS_PROPERTY |
static String |
MULTICAST_DISCOVERY_PORT_PROPERTY |
static String |
MULTICAST_ENABLED_PROPERTY |
static String |
MULTICAST_REQUEST_ADDRESS_PROPERTY |
static String |
MULTICAST_TTL_PROPERTY |
static String |
USE_SOCKET_KEEP_ALIVE |
static String |
USE_SOCKET_TCP_NO_DELAY |
Modifier and Type | Method and Description |
---|---|
static InetAddress |
getAnnouncementAddress()
Return the address of the multicast group over which the
multicast announcement protocol takes place.
|
static int |
getDiscoveryPort() |
static String |
getHostAddress()
Return the local host address using
java.net.InetAddress.getLocalHost().getHostAddress() |
static InetAddress |
getRequestAddress()
Return the address of the multicast group over which the
multicast request protocol takes place.
|
static int |
getTtl()
Default time to live value to use for sending multicast packets
|
static boolean |
isMulticastEnabled() |
static boolean |
useSocketKeepAlive() |
static boolean |
useSocketTcpNoDelay() |
public static final String MULTICAST_ANNOUNCEMENT_ADDRESS_PROPERTY
public static final String MULTICAST_REQUEST_ADDRESS_PROPERTY
public static final String MULTICAST_DISCOVERY_PORT_PROPERTY
public static final String MULTICAST_TTL_PROPERTY
public static final String MULTICAST_ENABLED_PROPERTY
public static final String USE_SOCKET_KEEP_ALIVE
public static final String USE_SOCKET_TCP_NO_DELAY
public static final InetAddress getRequestAddress() throws UnknownHostException
UnknownHostException
public static final InetAddress getAnnouncementAddress() throws UnknownHostException
UnknownHostException
public static int getDiscoveryPort()
public static int getTtl()
public static boolean isMulticastEnabled()
public static boolean useSocketKeepAlive()
public static boolean useSocketTcpNoDelay()
public static String getHostAddress() throws UnknownHostException
java.net.InetAddress.getLocalHost().getHostAddress()
UnknownHostException
- if no IP address for the local
host could be found.Copyright © GigaSpaces.