public class DrivesTaskManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DrivesTaskManager.DrivesProvider
Interface to provide drives and partitions.
|
| Constructor and Description |
|---|
DrivesTaskManager(ThreadFactory threadFactory,
Class<? extends TaskPriorityManager> taskPriorityManager,
DrivesTaskManager.DrivesProvider drivesProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getResource(File file)
Return the associated resource for the given file.
|
Object |
getResource(String path)
Return the associated resource for the given file path.
|
List<Object> |
getResources()
Return the list of resources.
|
TaskManager |
getTaskManager(File file)
Return the TaskManager for the given file.
|
TaskManager |
getTaskManager(String path)
Return the TaskManager for the given file path.
|
void |
setDrivesProvider(DrivesTaskManager.DrivesProvider provider)
Set the drives provider.
|
public DrivesTaskManager(ThreadFactory threadFactory, Class<? extends TaskPriorityManager> taskPriorityManager, DrivesTaskManager.DrivesProvider drivesProvider)
public Object getResource(String path)
public TaskManager getTaskManager(File file)
public TaskManager getTaskManager(String path)
public void setDrivesProvider(DrivesTaskManager.DrivesProvider provider)
IllegalStateException - in case a provider is already setCopyright © 2019. All rights reserved.