/** * This method should be call to identify the probe used to store a received * external input. It uses result from identifyHost and identifyProbe to * find it. * * @param message the external input * @return the probe where values will be stored */ protected PassiveProbe<KeyType> findProbe(Message message) { String hostname = identifyHost(message); String probename = identifyProbe(message); log(Level.DEBUG, "looking for %s in %s", message, probes); if(!probes.containsKey(hostname)) { log(Level.WARN, "unregistered sender: %s", hostname); return null; } PassiveProbe<KeyType> pp = probes.get(hostname).get(probename); if(pp == null) { log(Level.WARN, "unregistered probe: %s", probename); return null; } return pp; }