public final class MulticastUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JOLOKIA_MULTICAST_GROUP |
static int |
JOLOKIA_MULTICAST_PORT |
Modifier and Type | Method and Description |
---|---|
static List<DiscoveryIncomingMessage> |
sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg,
int pTimeout)
Sent out a message to Jolokia's multicast group over all network interfaces supporting multicast request (and no
logging is used)
|
static List<DiscoveryIncomingMessage> |
sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg,
int pTimeout,
LogHandler pLogHandler)
Sent out a message to Jolokia's multicast group over all network interfaces supporting multicasts
|
public static final String JOLOKIA_MULTICAST_GROUP
public static final int JOLOKIA_MULTICAST_PORT
public static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg, int pTimeout) throws IOException
pOutMsg
- the message to sendpTimeout
- timeout used for how long to wait for discovery messagesIOException
- if something fails during the discovery requestpublic static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg, int pTimeout, LogHandler pLogHandler) throws IOException
pOutMsg
- the message to sendpTimeout
- timeout used for how long to wait for discovery messagespLogHandler
- a log handler for printing out logging informationIOException
- if something fails during the discovery requestCopyright © 2017. All rights reserved.