code: public static List<DiscoveryIncomingMessage> sendQueryAndCollectAnswers(DiscoveryOutgoingMessage pOutMsg,
                                                                              int pTimeout,
                                                                              LogHandler pLogHandler) throws IOException {
          final List<Future<List<DiscoveryIncomingMessage>>> futures = sendDiscoveryRequests(pOutMsg, pTimeout, pLogHandler);
          return collectIncomingMessages(pTimeout, futures, pLogHandler);
      }
docs: Sent out a message to Jolokia's multicast group over all network interfaces supporting multicasts
  
  @param pOutMsg     the message to send
  @param pTimeout    timeout used for how long to wait for discovery messages
  @param pLogHandler a log handler for printing out logging information
  @return list of received answers, never null
  @throws IOException if something fails during the discovery request