Package net.officefloor.frame.api.manage
Interface OfficeFloor
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
OfficeFloorImpl
public interface OfficeFloor extends java.lang.AutoCloseable- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcloseOfficeFloor()Closes the OfficeFloor.OfficegetOffice(java.lang.String officeName)Obtains theOfficefor the input office name.java.lang.String[]getOfficeNames()Obtains the names of theOfficeinstances within thisOfficeFloor.voidopenOfficeFloor()Opens the OfficeFloor and starts necessaryManagedFunctioninstances.
-
-
-
Method Detail
-
openOfficeFloor
void openOfficeFloor() throws java.lang.ExceptionOpens the OfficeFloor and starts necessaryManagedFunctioninstances.- Throws:
java.lang.Exception- If fails to open the OfficeFloor.
-
closeOfficeFloor
default void closeOfficeFloor() throws java.lang.ExceptionCloses the OfficeFloor. This stops allManagedFunctioninstances executing within theOfficeinstances and releases all resources.- Throws:
java.lang.Exception- If fails to close theOfficeFloor.
-
getOfficeNames
java.lang.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
Office getOffice(java.lang.String officeName) throws UnknownOfficeException
Obtains theOfficefor the input office name.- Parameters:
officeName- Name of theOffice.- Returns:
- Specified
Office. - Throws:
UnknownOfficeException- If noOfficeby the name within thisOfficeFloor.
-
-