GigaSpaces XAP 9.7.2 API

net.jini.discovery
Class Constants

java.lang.Object
  extended by net.jini.discovery.Constants

public class Constants
extends Object

A holder class for constants that pertain to the unicast and multicast discovery protocols.

Author:
Sun Microsystems, Inc.

Field Summary
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
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTICAST_ANNOUNCEMENT_ADDRESS_PROPERTY

public static final String MULTICAST_ANNOUNCEMENT_ADDRESS_PROPERTY
See Also:
Constant Field Values

MULTICAST_REQUEST_ADDRESS_PROPERTY

public static final String MULTICAST_REQUEST_ADDRESS_PROPERTY
See Also:
Constant Field Values

MULTICAST_DISCOVERY_PORT_PROPERTY

public static final String MULTICAST_DISCOVERY_PORT_PROPERTY
See Also:
Constant Field Values

MULTICAST_TTL_PROPERTY

public static final String MULTICAST_TTL_PROPERTY
See Also:
Constant Field Values

MULTICAST_ENABLED_PROPERTY

public static final String MULTICAST_ENABLED_PROPERTY
See Also:
Constant Field Values

USE_SOCKET_KEEP_ALIVE

public static final String USE_SOCKET_KEEP_ALIVE
See Also:
Constant Field Values

USE_SOCKET_TCP_NO_DELAY

public static final String USE_SOCKET_TCP_NO_DELAY
See Also:
Constant Field Values
Method Detail

getRequestAddress

public static final InetAddress getRequestAddress()
                                           throws UnknownHostException
Return the address of the multicast group over which the multicast request protocol takes place.

Returns:
the address of the multicast group over which the multicast request protocol takes place
Throws:
UnknownHostException

getAnnouncementAddress

public static final InetAddress getAnnouncementAddress()
                                                throws UnknownHostException
Return the address of the multicast group over which the multicast announcement protocol takes place.

Returns:
the address of the multicast group over which the multicast announcement protocol takes place.
Throws:
UnknownHostException

getDiscoveryPort

public static int getDiscoveryPort()

getTtl

public static int getTtl()
Default time to live value to use for sending multicast packets


isMulticastEnabled

public static boolean isMulticastEnabled()

useSocketKeepAlive

public static boolean useSocketKeepAlive()

useSocketTcpNoDelay

public static boolean useSocketTcpNoDelay()

getHostAddress

public static String getHostAddress()
                             throws UnknownHostException
Return the local host address using java.net.InetAddress.getLocalHost().getHostAddress()

Returns:
The local host address
Throws:
UnknownHostException - if no IP address for the local host could be found.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.