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 AssetManagergetAssetManager(AssetManagerReference assetManagerReference)Obtains theAssetManagerfor theAssetManagerReference.longgetMonitorInterval()Obtains the interval in milliseconds to monitor theAssetinstances.voidrunAssetChecks()Runs the checks on theAssetinstances managed by thisOfficeManager.
-
-
-
Constructor Detail
-
OfficeManagerImpl
public OfficeManagerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop, AssetManager[] assetManagers)
Initiate.- Parameters:
monitorClock-MonitorClockfor theOffice.monitorInterval- Interval to monitor theAssetinstances.functionLoop-FunctionLoopfor theOffice.assetManagers-AssetManagerinstances.
-
-
Method Detail
-
getAssetManager
public AssetManager getAssetManager(AssetManagerReference assetManagerReference)
Description copied from interface:OfficeManagerObtains theAssetManagerfor theAssetManagerReference.- Specified by:
getAssetManagerin interfaceOfficeManager- Parameters:
assetManagerReference-AssetManagerReference.- Returns:
AssetManagerfor theAssetManagerReference.
-
getMonitorInterval
public long getMonitorInterval()
Description copied from interface:OfficeManagerObtains the interval in milliseconds to monitor theAssetinstances.- Specified by:
getMonitorIntervalin interfaceOfficeManager- Returns:
- Interval in milliseconds to monitor the
Assetinstances.
-
runAssetChecks
public void runAssetChecks()
Description copied from interface:OfficeManagerRuns the checks on theAssetinstances managed by thisOfficeManager.- Specified by:
runAssetChecksin interfaceOfficeManager
-
-