Package org.openjdk.jmc.jdp.common
Interface Configuration
-
public interface Configuration
Interface providing the network settings for a JDP server.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BROADCAST_PERIOD
static boolean
DEFAULT_JDP_ENABLE_AUTO_DISCOVERY
static int
DEFAULT_MAX_HEART_BEAT_TIMEOUT
static String
DEFAULT_MULTICAST_ADDRESS
static int
DEFAULT_MULTICAST_PORT
static short
DEFAULT_TTL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBroadcastPeriod()
The time to wait between broadcasts, in milliseconds.int
getMaxHeartBeatTimeout()
InetAddress
getMulticastAddress()
The multicast group to join.int
getMulticastPort()
The multicast port to use.short
getTTL()
The "time to live" for the JDP packets.
-
-
-
Field Detail
-
DEFAULT_MULTICAST_PORT
static final int DEFAULT_MULTICAST_PORT
- See Also:
- Constant Field Values
-
DEFAULT_BROADCAST_PERIOD
static final int DEFAULT_BROADCAST_PERIOD
- See Also:
- Constant Field Values
-
DEFAULT_TTL
static final short DEFAULT_TTL
- See Also:
- Constant Field Values
-
DEFAULT_MULTICAST_ADDRESS
static final String DEFAULT_MULTICAST_ADDRESS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_HEART_BEAT_TIMEOUT
static final int DEFAULT_MAX_HEART_BEAT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_JDP_ENABLE_AUTO_DISCOVERY
static final boolean DEFAULT_JDP_ENABLE_AUTO_DISCOVERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMulticastAddress
InetAddress getMulticastAddress()
The multicast group to join.- Returns:
- the
InetAddress
for the multicast group to join.
-
getMulticastPort
int getMulticastPort()
The multicast port to use.- Returns:
- the multicast port to use.
-
getBroadcastPeriod
int getBroadcastPeriod()
The time to wait between broadcasts, in milliseconds.Note: the server will need to be restarted for any changes to take effect.
-
getTTL
short getTTL()
The "time to live" for the JDP packets. The time to live is by default 0, which means that no JDP packets will escape the subnet.Note: the server will need to be restarted for any changes to take effect.
-
getMaxHeartBeatTimeout
int getMaxHeartBeatTimeout()
- Returns:
- the max time to wait for a new heart beat. Used for old style JDP packets that do not provide their broadcast interval, to timeout if the broadcaster is shut down after sending the first packet.
-
-