Class OfficeManagerImpl
- java.lang.Object
-
- java.util.TimerTask
-
- net.officefloor.frame.impl.execute.asset.OfficeManagerImpl
-
- All Implemented Interfaces:
java.lang.Runnable,OfficeManager
public class OfficeManagerImpl extends java.util.TimerTask implements OfficeManager
Implementation of theOfficeManager.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeManagerImpl(long monitorInterval, MonitorClockImpl monitorClock, FunctionLoop functionLoop, java.util.Timer timer)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadRemainingState(AssetManager[] assetManagers)Loads the remainingAssetManagerinstances.voidrun()voidrunAssetChecks()voidstartManaging()voidstopManaging()
-
-
-
Constructor Detail
-
OfficeManagerImpl
public OfficeManagerImpl(long monitorInterval, MonitorClockImpl monitorClock, FunctionLoop functionLoop, java.util.Timer timer)Initiate.- Parameters:
monitorInterval- Interval in milliseconds between each check of theOffice. Setting this high reduces overhead of managing theOffice, however setting lower increases responsiveness of theOffice.monitorClock-MonitorClockfor theOffice.functionLoop-FunctionLoopfor theOffice.timer-Timerto monitor theOffice.
-
-
Method Detail
-
loadRemainingState
public void loadRemainingState(AssetManager[] assetManagers)
Loads the remainingAssetManagerinstances.- Parameters:
assetManagers-AssetManagerinstances.
-
startManaging
public void startManaging()
Description copied from interface:OfficeManager- Specified by:
startManagingin interfaceOfficeManager
-
runAssetChecks
public void runAssetChecks()
Description copied from interface:OfficeManager- Specified by:
runAssetChecksin interfaceOfficeManager
-
stopManaging
public void stopManaging()
Description copied from interface:OfficeManager- Specified by:
stopManagingin interfaceOfficeManager
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin classjava.util.TimerTask
-
-