public class AutoWireOfficeFloorImpl extends Object implements AutoWireOfficeFloor
AutoWireManagementMBean
implementation.Constructor and Description |
---|
AutoWireOfficeFloorImpl(OfficeFloor officeFloor,
String officeName,
ObjectName objectName,
AutoWireManagement administration)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
closeOfficeFloor()
Closes the
OfficeFloor . |
ObjectName |
getObjectName()
Obtains the
ObjectName for this AutoWireOfficeFloor . |
OfficeFloor |
getOfficeFloor()
Obtains the
OfficeFloor . |
void |
invokeTask(String workName,
String taskName,
Object parameter)
Invokes a
Task on the OfficeFloor . |
public AutoWireOfficeFloorImpl(OfficeFloor officeFloor, String officeName, ObjectName objectName, AutoWireManagement administration)
officeFloor
- OfficeFloor
.officeName
- Name of the Office
.objectName
- ObjectName
for this AutoWireOfficeFloorImpl
.administration
- AutoWireManagement
.public OfficeFloor getOfficeFloor()
AutoWireOfficeFloor
OfficeFloor
.getOfficeFloor
in interface AutoWireOfficeFloor
OfficeFloor
.public ObjectName getObjectName()
AutoWireOfficeFloor
ObjectName
for this AutoWireOfficeFloor
.getObjectName
in interface AutoWireOfficeFloor
ObjectName
for this AutoWireOfficeFloor
.public void invokeTask(String workName, String taskName, Object parameter) throws Exception
AutoWireOfficeFloor
Invokes a Task
on the OfficeFloor
.
Should the OfficeFloor
not be open, it is opened before invoking
the Task
. Please note however the OfficeFloor
will not be
re-opened after being closed.
invokeTask
in interface AutoWireOfficeFloor
workName
- Name of the Work
.taskName
- Name of the Task
.parameter
- Parameter for the Task
. May be null
.Exception
- If fails invoking the Task
.public void closeOfficeFloor()
AutoWireOfficeFloor
OfficeFloor
.closeOfficeFloor
in interface AutoWireOfficeFloor
Copyright © 2005–2016. All rights reserved.