Package net.officefloor.frame.api.manage
Interface OfficeFloor
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
OfficeFloorImpl
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCloses the OfficeFloor.Obtains theOfficefor the input office name.String[]Obtains the names of theOfficeinstances within thisOfficeFloor.voidOpens the OfficeFloor and starts necessaryManagedFunctioninstances.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
openOfficeFloor
Opens the OfficeFloor and starts necessaryManagedFunctioninstances.- Throws:
Exception- If fails to open the OfficeFloor.
-
closeOfficeFloor
Closes the OfficeFloor. This stops allManagedFunctioninstances executing within theOfficeinstances and releases all resources.- Throws:
Exception- If fails to close theOfficeFloor.
-
getOfficeNames
String[] getOfficeNames()Obtains the names of the
Officeinstances within thisOfficeFloor.This allows to dynamically manage this
OfficeFloor.- Returns:
- Names of the
Officeinstances within thisOfficeFloor.
-
getOffice
Obtains theOfficefor the input office name.- Parameters:
officeName- Name of theOffice.- Returns:
- Specified
Office. - Throws:
UnknownOfficeException- If noOfficeby the name within thisOfficeFloor.
-