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 int
static final boolean
static final int
static final String
static final int
static final short
-
Method Summary
Modifier and TypeMethodDescriptionint
The time to wait between broadcasts, in milliseconds.int
The multicast group to join.int
The multicast port to use.short
getTTL()
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
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.
-