Class OfficeManagerImpl
java.lang.Object
net.officefloor.frame.impl.execute.asset.OfficeManagerImpl
- All Implemented Interfaces:
OfficeManager
Implementation of the
OfficeManager.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionOfficeManagerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop, AssetManager[] assetManagers) Initiate. -
Method Summary
Modifier and TypeMethodDescriptiongetAssetManager(AssetManagerReference assetManagerReference) Obtains theAssetManagerfor theAssetManagerReference.longObtains the interval in milliseconds to monitor theAssetinstances.voidRuns the checks on theAssetinstances managed by thisOfficeManager.
-
Constructor Details
-
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 Details
-
getAssetManager
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
-