コード例 #1
0
ファイル: Scheduler.java プロジェクト: alxndrsn/medic-collect
 /**
  * Removes a {@link File} instance previously scheduled with the {@link
  * Scheduler#scheduleFile(File)} method.
  *
  * @param file The {@link File} instance.
  */
 public void descheduleFile(File file) {
   fileTaskCollector.removeFile(file);
 }
コード例 #2
0
ファイル: Scheduler.java プロジェクト: alxndrsn/medic-collect
 /**
  * Returns an array containing any {@link File} previously scheduled with the {@link
  * Scheduler#scheduleFile(File)} method.
  *
  * @return An array containing any {@link File} previously scheduled with the {@link
  *     Scheduler#scheduleFile(File)} method.
  */
 public File[] getScheduledFiles() {
   return fileTaskCollector.getFiles();
 }
コード例 #3
0
ファイル: Scheduler.java プロジェクト: alxndrsn/medic-collect
 /**
  * Adds a {@link File} instance to the scheduler. Every minute the file will be parsed. The
  * scheduler will execute any declared task whose scheduling pattern matches the current system
  * time.
  *
  * <p>See {@link CronParser} documentation for informations about the file contents syntax.
  *
  * @param file The {@link File} instance.
  */
 public void scheduleFile(File file) {
   fileTaskCollector.addFile(file);
 }