Package org.openjdk.jmc.jdp.common
Interface Configuration
public interface Configuration
Interface providing the network settings for a JDP server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanstatic final intstatic final Stringstatic final intstatic final short -
Method Summary
Modifier and TypeMethodDescriptionintThe time to wait between broadcasts, in milliseconds.intThe multicast group to join.intThe multicast port to use.shortgetTTL()The "time to live" for the JDP packets.
-
Field Details
-
DEFAULT_MULTICAST_PORT
static final int DEFAULT_MULTICAST_PORT- See Also:
-
DEFAULT_BROADCAST_PERIOD
static final int DEFAULT_BROADCAST_PERIOD- See Also:
-
DEFAULT_TTL
static final short DEFAULT_TTL- See Also:
-
DEFAULT_MULTICAST_ADDRESS
- See Also:
-
DEFAULT_MAX_HEART_BEAT_TIMEOUT
static final int DEFAULT_MAX_HEART_BEAT_TIMEOUT- See Also:
-
DEFAULT_JDP_ENABLE_AUTO_DISCOVERY
static final boolean DEFAULT_JDP_ENABLE_AUTO_DISCOVERY- See Also:
-
-
Method Details
-
getMulticastAddress
InetAddress getMulticastAddress()The multicast group to join.- Returns:
- the
InetAddressfor 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.
-