| Line 510... |
Line 510... |
| 510 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
510 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 511 |
|
511 |
|
| 512 |
log.info("endTime" + LocalDateTime.now());
|
512 |
log.info("endTime" + LocalDateTime.now());
|
| 513 |
}
|
513 |
}
|
| 514 |
|
514 |
|
| 515 |
/* @Scheduled(cron = "0 0 23 * * *")
|
- |
|
| 516 |
public void checkItelImeiActivation() throws Throwable {
|
- |
|
| 517 |
log.info("startTime" + LocalDate.now());
|
- |
|
| 518 |
|
- |
|
| 519 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 520 |
propertiesDetails.put("checkItelImeiActivation", "0");
|
- |
|
| 521 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 522 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
- |
|
| 523 |
scheduledTasks.checkItelImeiActivation(LocalDate.now(), 90);
|
- |
|
| 524 |
long secs = (new Date().getTime()) / 1000;
|
- |
|
| 525 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
- |
|
| 526 |
propertiesDetails.put("checkItelImeiActivation", "1");
|
- |
|
| 527 |
propertiesDetails.put("itelDate", Long.toString(secs));
|
- |
|
| 528 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 529 |
|
- |
|
| 530 |
}*/
|
- |
|
| 531 |
|
- |
|
| 532 |
@Scheduled(cron = "0 0 23 * * *")
|
515 |
@Scheduled(cron = "0 0 23 * * *")
|
| 533 |
public void checkItelImeiActivationNew() throws Throwable {
|
516 |
public void checkItelImeiActivationNew() throws Throwable {
|
| 534 |
log.info("startTime" + LocalDate.now());
|
517 |
log.info("startTime" + LocalDate.now());
|
| 535 |
|
518 |
|
| 536 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
519 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
| Line 545... |
Line 528... |
| 545 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
528 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 546 |
|
529 |
|
| 547 |
}
|
530 |
}
|
| 548 |
|
531 |
|
| 549 |
|
532 |
|
| 550 |
/* @Scheduled(cron = "0 0 23 * * *")
|
- |
|
| 551 |
public void checkTecnoImeiActivation() throws Throwable {
|
- |
|
| 552 |
|
- |
|
| 553 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 554 |
propertiesDetails.put("checkTecnoImeiActivation", "0");
|
- |
|
| 555 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 556 |
|
- |
|
| 557 |
log.info("startTime" + LocalDate.now());
|
- |
|
| 558 |
log.info("startTimecheckTecnoImeiActivation" + LocalDate.now());
|
- |
|
| 559 |
scheduledTasks.checkTecnoImeiActivation(LocalDate.now(), 90);
|
- |
|
| 560 |
log.info("endTimecheckTecnoImeiActivation" + LocalDate.now());
|
- |
|
| 561 |
|
- |
|
| 562 |
long secs = (new Date().getTime()) / 1000;
|
- |
|
| 563 |
propertiesDetails.put("checkTecnoImeiActivation", "1");
|
- |
|
| 564 |
propertiesDetails.put("technoDate", Long.toString(secs));
|
- |
|
| 565 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 566 |
|
- |
|
| 567 |
}*/
|
- |
|
| 568 |
|
- |
|
| 569 |
@Scheduled(fixedDelay = 60 * 1000)
|
533 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 570 |
public void vivoImeiActivation() throws Throwable {
|
534 |
public void vivoImeiActivation() throws Throwable {
|
| 571 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
535 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 572 |
|
536 |
|
| 573 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
537 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|