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 void
loadRemainingState(AssetManager[] assetManagers)
Loads the remainingAssetManager
instances.void
run()
void
runAssetChecks()
void
startManaging()
void
stopManaging()
-
-
-
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
-MonitorClock
for theOffice
.functionLoop
-FunctionLoop
for theOffice
.timer
-Timer
to monitor theOffice
.
-
-
Method Detail
-
loadRemainingState
public void loadRemainingState(AssetManager[] assetManagers)
Loads the remainingAssetManager
instances.- Parameters:
assetManagers
-AssetManager
instances.
-
startManaging
public void startManaging()
Description copied from interface:OfficeManager
- Specified by:
startManaging
in interfaceOfficeManager
-
runAssetChecks
public void runAssetChecks()
Description copied from interface:OfficeManager
- Specified by:
runAssetChecks
in interfaceOfficeManager
-
stopManaging
public void stopManaging()
Description copied from interface:OfficeManager
- Specified by:
stopManaging
in interfaceOfficeManager
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Specified by:
run
in classjava.util.TimerTask
-
-