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
private static InetAddress announcementAddress
          The address of the multicast group over which the multicast announcement protocol takes place.
static short discoveryPort
          The port for both unicast and multicast boot requests.
private static InetAddress requestAddress
          The address of the multicast group over which the multicast request protocol takes place.
 
Constructor Summary
private Constants()
          This class cannot be instantiated.
 
Method Summary
static InetAddress getAnnouncementAddress()
          Return the address of the multicast group over which the multicast announcement protocol takes place.
static InetAddress getRequestAddress()
          Return the address of the multicast group over which the multicast request protocol takes place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestAddress

private static InetAddress requestAddress
The address of the multicast group over which the multicast request protocol takes place.


announcementAddress

private static InetAddress announcementAddress
The address of the multicast group over which the multicast announcement protocol takes place.


discoveryPort

public static final short discoveryPort
The port for both unicast and multicast boot requests.

See Also:
Constant Field Values
Constructor Detail

Constants

private Constants()
This class cannot be instantiated.

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


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.