NodeList nl = e.getElementsByTagNameNS(
RunInfo.DRIVERURI, "cycleMin");
if (nl.getLength() > 1) {
String msg = "Bad cycleMin definition; must have only one per cycleTime";
getLogger().severe(msg);
ConfigurationException ce = new ConfigurationException(msg);
getLogger().throwing(getClass().getName(), "configure", ce);
throw ce;
}
if (nl.getLength() == 1) {
cycleMin = Long.parseLong(nl.item(0).getFirstChild().getNodeValue()) * Utilities.TO_NANOS;
}
nl = e.getElementsByTagNameNS(
RunInfo.DRIVERURI, "cycleMean");
if (nl.getLength() > 1) {
String msg = "Bad cycleMean definition; must have only one per cycleTime";
getLogger().severe(msg);
ConfigurationException ce = new ConfigurationException(msg);
getLogger().throwing(getClass().getName(), "configure", ce);
throw ce;
}
if (nl.getLength() == 1) {
cycleMean = Long.parseLong(nl.item(0).getFirstChild().getNodeValue()) * Utilities.TO_NANOS;
}
nl = e.getElementsByTagNameNS(
RunInfo.DRIVERURI, "cycleMax");
if (nl.getLength() > 1) {
String msg = "Bad cycleMax definition; must have only one per cycleTime";
getLogger().severe(msg);
ConfigurationException ce = new ConfigurationException(msg);
getLogger().throwing(getClass().getName(), "configure", ce);
throw ce;
}
if (nl.getLength() == 1) {
cycleMax = Long.parseLong(nl.item(0).getFirstChild().getNodeValue()) * Utilities.TO_NANOS;
}
nl = e.getElementsByTagNameNS(
RunInfo.DRIVERURI, "cycleDeviation");
if (nl.getLength() > 1) {
String msg = "Bad cycleDeviation definition; must have only one per cycleTime";
getLogger().severe(msg);
ConfigurationException ce = new ConfigurationException(msg);
getLogger().throwing(getClass().getName(), "configure", ce);
throw ce;
}
if (nl.getLength() == 1) {
truncate = Boolean.parseBoolean(nl.item(0).getFirstChild().getNodeValue());