Package com.biglybt.core.disk.impl
Class DiskManagerOperationScheduler
- java.lang.Object
-
- com.biglybt.core.disk.impl.DiskManagerOperationScheduler
-
- All Implemented Interfaces:
CoreOperationListener
public class DiskManagerOperationScheduler extends java.lang.Object implements CoreOperationListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DiskManagerOperationScheduler.Operation
-
Field Summary
Fields Modifier and Type Field Description private Core
core
private static boolean
enabled
private java.util.List<DiskManagerOperationScheduler.Operation>
operations
private TimerEventPeriodic
timer
-
Constructor Summary
Constructors Modifier Constructor Description private
DiskManagerOperationScheduler(Core _core)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkConfig()
static void
initialise(Core core)
static boolean
isEnabled()
void
operationAdded(CoreOperation operation)
boolean
operationExecuteRequest(CoreOperation operation)
void
operationRemoved(CoreOperation operation)
private void
schedule()
-
-
-
Field Detail
-
enabled
private static boolean enabled
-
core
private final Core core
-
operations
private java.util.List<DiskManagerOperationScheduler.Operation> operations
-
timer
private TimerEventPeriodic timer
-
-
Constructor Detail
-
DiskManagerOperationScheduler
private DiskManagerOperationScheduler(Core _core)
-
-
Method Detail
-
initialise
public static void initialise(Core core)
-
isEnabled
public static boolean isEnabled()
-
checkConfig
private void checkConfig()
-
schedule
private void schedule()
-
operationExecuteRequest
public boolean operationExecuteRequest(CoreOperation operation)
- Specified by:
operationExecuteRequest
in interfaceCoreOperationListener
- Returns:
- true if the listener has taken responsibility for running an operation task
-
operationAdded
public void operationAdded(CoreOperation operation)
- Specified by:
operationAdded
in interfaceCoreOperationListener
-
operationRemoved
public void operationRemoved(CoreOperation operation)
- Specified by:
operationRemoved
in interfaceCoreOperationListener
-
-