| Line 225... |
Line 225... |
| 225 |
df = DatatypeFactory.newInstance();
|
225 |
df = DatatypeFactory.newInstance();
|
| 226 |
} catch (DatatypeConfigurationException e) {
|
226 |
} catch (DatatypeConfigurationException e) {
|
| 227 |
log.error(e.getMessage(), e);
|
227 |
log.error(e.getMessage(), e);
|
| 228 |
}
|
228 |
}
|
| 229 |
|
229 |
|
| 230 |
// TODO - Get time from source details tables
|
230 |
long time = tcl.getClient().getSourceDetail(3).getlastUpdatedOn();
|
| 231 |
XMLGregorianCalendar startTime = df.newXMLGregorianCalendar(new GregorianCalendar());
|
- |
|
| 232 |
XMLGregorianCalendar startTime = df.newXMLGregorianCalendar(new GregorianCalendar(2013,04,28,10,0));
|
231 |
XMLGregorianCalendar startTime = df.newXMLGregorianCalendar(new GregorianCalendar().setTimeInMillis(time));
|
| 233 |
// endTime = now -2. So, startTime = now - 2 - INTERVAL_IN_MINS.
|
232 |
// endTime = now -2. So, startTime = now - 2 - INTERVAL_IN_MINS.
|
| 234 |
System.out.println("Sync job start time." + startTime.getDay() +"-"+ startTime.getMonth()+"-" + startTime.getHour()+":"+startTime.getMinute());
|
233 |
System.out.println("Sync job start time." + startTime.getDay() +"-"+ startTime.getMonth()+"-" + startTime.getHour()+":"+startTime.getMinute());
|
| 235 |
|
234 |
|
| 236 |
//startTime.add(df.newDurationDayTime(false, 0, 0, INTERVAL_IN_MINS , 0));
|
235 |
//startTime.add(df.newDurationDayTime(false, 0, 0, INTERVAL_IN_MINS , 0));
|
| 237 |
//System.out.println("Sync job start time after add .." + startTime.getDay() +"-"+ startTime.getMonth()+"-" + startTime.getHour()+":"+startTime.getMinute());
|
236 |
//System.out.println("Sync job start time after add .." + startTime.getDay() +"-"+ startTime.getMonth()+"-" + startTime.getHour()+":"+startTime.getMinute());
|