uData.setHostName(hostName);
int port = getValue(argParser.getPortToStatus(),
argParser.getDefaultPortToStatus());
uData.setPort(port);
uData.setOnline(true);
TaskScheduleUserData taskSchedule = new TaskScheduleUserData();
TaskScheduleArgs taskArgs = argParser.getTaskArgsList();
taskSchedule.setStartNow(taskArgs.isStartNow());
if (!taskSchedule.isStartNow())
{
taskSchedule.setStartDate(taskArgs.getStartDateTime());
taskSchedule.setDependencyIds(taskArgs.getDependencyIds());
taskSchedule.setFailedDependencyAction(
taskArgs.getFailedDependencyAction());
taskSchedule.setNotifyUponErrorEmailAddresses(
taskArgs.getNotifyUponErrorEmailAddresses());
taskSchedule.setNotifyUponCompletionEmailAddresses(
taskArgs.getNotifyUponCompletionEmailAddresses());
taskSchedule.setRecurringDateTime(
taskArgs.getRecurringDateTime());
}
uData.setTaskSchedule(taskSchedule);
}
else