Improve probing setting management.

This commit is contained in:
Christian P. MOMON 2021-05-25 18:16:50 +02:00
parent 847a430f22
commit 345ec7aba5
3 changed files with 10 additions and 2 deletions

View file

@ -398,7 +398,13 @@ public class Configuration extends PathPropertyList
String types = get("conf.probe.types"); String types = get("conf.probe.types");
if (!StringUtils.isBlank(types)) if (!StringUtils.isBlank(types))
{ {
result.append(types.split("[, ;]")); for (String token : types.split("[, ;]"))
{
if (!StringUtils.isBlank(token))
{
result.append(token);
}
}
} }
// //

View file

@ -66,6 +66,8 @@ public class Prober
{ {
StringList types = configuration.getProbeTypes(); StringList types = configuration.getProbeTypes();
System.out.println("Targets=" + types.toStringWithBrackets());
PathCounters counters = new PathCounters(); PathCounters counters = new PathCounters();
// //

View file

@ -117,7 +117,7 @@ public class VisitCounters extends HashMap<String, Visits>
} }
} }
logger.info("timemark/count = {}/{}", timemark, count); // logger.info("timemark/count = {}/{}", timemark, count);
result.inc(count, prefix, timemark); result.inc(count, prefix, timemark);
} }