コード例 #1
0
 @Command
 public void onSynchronizeIndex() throws SearchLibException, InterruptedException {
   synchronized (this) {
     TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction();
     taskFileManagerAction.setManual(
         null, null, TaskFileManagerAction.CommandSynchronize, getBufferSize());
     onTask(taskFileManagerAction);
   }
 }
コード例 #2
0
 @Command
 public void onSetToUnfetched() throws SearchLibException, InterruptedException {
   synchronized (this) {
     FileManager fileManager = getFileManager();
     if (fileManager == null) return;
     AbstractSearchRequest searchRequest =
         getSearchRequest(fileManager, SearchTemplate.fileSearch);
     TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction();
     taskFileManagerAction.setManual(searchRequest, FetchStatus.UN_FETCHED, null, getBufferSize());
     onTask(taskFileManagerAction);
   }
 }
コード例 #3
0
 @Command
 public void onDeleteSelection() throws SearchLibException, InterruptedException {
   synchronized (this) {
     FileManager fileManager = getFileManager();
     if (fileManager == null) return;
     AbstractSearchRequest searchRequest =
         getSearchRequest(fileManager, SearchTemplate.fileExport);
     TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction();
     taskFileManagerAction.setManual(
         searchRequest, null, TaskFileManagerAction.CommandDeleteSelection, getBufferSize());
     onTask(taskFileManagerAction);
   }
 }