/** * Sent out a message to Jolokia's multicast group over all network interfaces supporting multicast request (and no * logging is used) * * @param pOutMsg the message to send * @param pTimeout timeout used for how long to wait for discovery messages * @return list of received answers, never null * @throws IOException if something fails during the discovery request */ public static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg, int pTimeout) throws IOException { return sendQueryAndCollectAnswers(pOutMsg, pTimeout, new QuietLogHandler()); }
/** * Sent out a message to Jolokia's multicast group over all network interfaces supporting multicast request (and no * logging is used) * * @param pOutMsg the message to send * @param pTimeout timeout used for how long to wait for discovery messages * @return list of received answers, never null * @throws IOException if something fails during the discovery request */ public static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg, int pTimeout) throws IOException { return sendQueryAndCollectAnswers(pOutMsg, pTimeout, new QuietLogHandler()); }
/** * Sent out a message to Jolokia's multicast group over all network interfaces supporting multicast request (and no * logging is used) * * @param pOutMsg the message to send * @param pTimeout timeout used for how long to wait for discovery messages * @return list of received answers, never null * @throws IOException if something fails during the discovery request */ public static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg, int pTimeout) throws IOException { return sendQueryAndCollectAnswers(pOutMsg, pTimeout, new QuietLogHandler()); }