public class Constants extends Object
The following properties if set, provide support for IPv6:
Note that support for global announcement must be specifically set to be enabled. There is no support for global request, for obvious reasons.
Modifier and Type | Field and Description |
---|---|
static short |
discoveryPort
The port for both unicast and multicast boot requests.
|
static Boolean |
GLOBAL_ANNOUNCE
If true and IPv6 is also true, the announcement protocol will
propagate over global networks.
|
static Boolean |
IPv6
If true IPv6 has been enabled.
|
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 InetAddress |
getRequestAddress()
Return the address of the multicast group over which the
multicast request protocol takes place.
|
public static final Boolean IPv6
public static final Boolean GLOBAL_ANNOUNCE
public static final short discoveryPort
public static final InetAddress getRequestAddress() throws UnknownHostException
UnknownHostException
- if no IP address for the host could
be found.public static final InetAddress getAnnouncementAddress() throws UnknownHostException
UnknownHostException
- if no IP address for the host could
be found.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.