public FileManager getFileManager() throws SearchLibException { synchronized (this) { Client client = getClient(); if (client == null) return null; return client.getFileManager(); } }
private void onTask(TaskFileManagerAction taskFileManagerAction) throws SearchLibException, InterruptedException { Client client = getClient(); if (client == null) return; TaskItem taskItem = new TaskItem(client, taskFileManagerAction); TaskManager.executeTask(client, taskItem, null); client.getFileManager().waitForTask(taskFileManagerAction, 30); }