문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
java:quartz [2023/09/14 13:37] kwon37xi |
java:quartz [2023/11/06 14:47] kwon37xi |
||
---|---|---|---|
줄 3: | 줄 3: | ||
* http:// | * http:// | ||
* [[springframework: | * [[springframework: | ||
+ | * [[springframework: | ||
===== 튜토리얼 ===== | ===== 튜토리얼 ===== | ||
- | * [[http://examples.javacodegeeks.com/ | + | * [[https://www.baeldung.com/ |
* [[https:// | * [[https:// | ||
줄 19: | 줄 20: | ||
===== Job List ===== | ===== Job List ===== | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== 수동 실행 manual trigger ===== | ||
+ | * https:// | ||
+ | |||
+ | <code java> | ||
+ | // Create a new Job | ||
+ | JobKey jobKey = JobKey.jobKey(" | ||
+ | JobDetail job = JobBuilder.newJob(MyJob.class).withIdentity(jobKey).storeDurably().build(); | ||
+ | |||
+ | // Register this job to the scheduler | ||
+ | scheduler.addJob(job, | ||
+ | |||
+ | // Immediately fire the Job MyJob.class | ||
+ | scheduler.triggerJob(jobKey); | ||
+ | </ | ||
===== 참조 ===== | ===== 참조 ===== |