Class OfficeFloorImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.officefloor.OfficeFloorImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,OfficeFloor
public class OfficeFloorImpl extends java.lang.Object implements OfficeFloor
Implementation ofOfficeFloor
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorImpl(OfficeFloorMetaData officeFloorMetaData, OfficeFloorListener[] listeners, Executive executive, BackgroundScheduling[] backgroundSchedulings, java.lang.Object startupNotify)
Initiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static java.util.logging.Logger
getFrameworkLogger()
Obtains theOfficeFloor
frameworkLogger
.Office
getOffice(java.lang.String officeName)
Obtains theOffice
for the input office name.java.lang.String[]
getOfficeNames()
Obtains the names of theOffice
instances within thisOfficeFloor
.void
openOfficeFloor()
Opens the OfficeFloor and starts necessaryManagedFunction
instances.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.api.manage.OfficeFloor
closeOfficeFloor
-
-
-
-
Constructor Detail
-
OfficeFloorImpl
public OfficeFloorImpl(OfficeFloorMetaData officeFloorMetaData, OfficeFloorListener[] listeners, Executive executive, BackgroundScheduling[] backgroundSchedulings, java.lang.Object startupNotify)
Initiate.- Parameters:
officeFloorMetaData
-OfficeFloorMetaData
.listeners
-OfficeFloorListener
instances.executive
-Executive
.backgroundSchedulings
-BackgroundScheduling
instances.startupNotify
- Object to be notified about start up completions.
-
-
Method Detail
-
getFrameworkLogger
public static java.util.logging.Logger getFrameworkLogger()
Obtains theOfficeFloor
frameworkLogger
.- Returns:
OfficeFloor
frameworkLogger
.
-
openOfficeFloor
public void openOfficeFloor() throws java.lang.Exception
Description copied from interface:OfficeFloor
Opens the OfficeFloor and starts necessaryManagedFunction
instances.- Specified by:
openOfficeFloor
in interfaceOfficeFloor
- Throws:
java.lang.Exception
- If fails to open the OfficeFloor.
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getOfficeNames
public java.lang.String[] getOfficeNames()
Description copied from interface:OfficeFloor
Obtains the names of the
Office
instances within thisOfficeFloor
.This allows to dynamically manage this
OfficeFloor
.- Specified by:
getOfficeNames
in interfaceOfficeFloor
- Returns:
- Names of the
Office
instances within thisOfficeFloor
.
-
getOffice
public Office getOffice(java.lang.String officeName) throws UnknownOfficeException
Description copied from interface:OfficeFloor
Obtains theOffice
for the input office name.- Specified by:
getOffice
in interfaceOfficeFloor
- Parameters:
officeName
- Name of theOffice
.- Returns:
- Specified
Office
. - Throws:
UnknownOfficeException
- If noOffice
by the name within thisOfficeFloor
.
-
-