Improve probing setting management.
This commit is contained in:
parent
847a430f22
commit
345ec7aba5
3 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue