Class OfficeManagerImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.asset.OfficeManagerImpl
-
- All Implemented Interfaces:
OfficeManager
public class OfficeManagerImpl extends java.lang.Object implements OfficeManager
Implementation of theOfficeManager
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeManagerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop, AssetManager[] assetManagers)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetManager
getAssetManager(AssetManagerReference assetManagerReference)
Obtains theAssetManager
for theAssetManagerReference
.long
getMonitorInterval()
Obtains the interval in milliseconds to monitor theAsset
instances.void
runAssetChecks()
Runs the checks on theAsset
instances managed by thisOfficeManager
.
-
-
-
Constructor Detail
-
OfficeManagerImpl
public OfficeManagerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop, AssetManager[] assetManagers)
Initiate.- Parameters:
monitorClock
-MonitorClock
for theOffice
.monitorInterval
- Interval to monitor theAsset
instances.functionLoop
-FunctionLoop
for theOffice
.assetManagers
-AssetManager
instances.
-
-
Method Detail
-
getAssetManager
public AssetManager getAssetManager(AssetManagerReference assetManagerReference)
Description copied from interface:OfficeManager
Obtains theAssetManager
for theAssetManagerReference
.- Specified by:
getAssetManager
in interfaceOfficeManager
- Parameters:
assetManagerReference
-AssetManagerReference
.- Returns:
AssetManager
for theAssetManagerReference
.
-
getMonitorInterval
public long getMonitorInterval()
Description copied from interface:OfficeManager
Obtains the interval in milliseconds to monitor theAsset
instances.- Specified by:
getMonitorInterval
in interfaceOfficeManager
- Returns:
- Interval in milliseconds to monitor the
Asset
instances.
-
runAssetChecks
public void runAssetChecks()
Description copied from interface:OfficeManager
Runs the checks on theAsset
instances managed by thisOfficeManager
.- Specified by:
runAssetChecks
in interfaceOfficeManager
-
-