Package org.openjdk.jmc.jdp.common
Interface Configuration
-
public interface ConfigurationInterface providing the network settings for a JDP server.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BROADCAST_PERIODstatic booleanDEFAULT_JDP_ENABLE_AUTO_DISCOVERYstatic intDEFAULT_MAX_HEART_BEAT_TIMEOUTstatic StringDEFAULT_MULTICAST_ADDRESSstatic intDEFAULT_MULTICAST_PORTstatic shortDEFAULT_TTL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBroadcastPeriod()The time to wait between broadcasts, in milliseconds.intgetMaxHeartBeatTimeout()InetAddressgetMulticastAddress()The multicast group to join.intgetMulticastPort()The multicast port to use.shortgetTTL()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
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.
-
-