*
* @param out PrintWriter to write XML output.
* @param indent indent for the XML tag.
*/
void writeSchedule(PrintWriter out, int indent) {
Schedule schedule = getSchedule();
if (schedule != null) {
ServletUtil.writeXMLTagWithAttrs(out, indent,
ServletUtil.XMLTAG_CONNECTOR_SCHEDULES,
ServletUtil.ATTRIBUTE_VERSION + Schedule.CURRENT_VERSION
+ ServletUtil.QUOTE, false);
if (schedule.isDisabled()) {
ServletUtil.writeXMLElement(out, indent + 1,
ServletUtil.XMLTAG_DISABLED, "true");
}
ServletUtil.writeXMLElement(out, indent + 1, ServletUtil.XMLTAG_LOAD,
Integer.toString(schedule.getLoad()));
ServletUtil.writeXMLElement(out, indent + 1, ServletUtil.XMLTAG_DELAY,
Integer.toString(schedule.getRetryDelayMillis()));
ServletUtil.writeXMLElement(out, indent + 1,
ServletUtil.XMLTAG_TIME_INTERVALS, schedule.getTimeIntervals());
ServletUtil.writeXMLTag(out, indent,
ServletUtil.XMLTAG_CONNECTOR_SCHEDULES, true);
}
}