public class AutoWireManagement extends Object implements AutoWireManagementMBean
AutoWireOfficeFloor
.Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
Name value for the
AutoWireManagementMBean . |
Modifier and Type | Method and Description |
---|---|
static void |
closeAllOfficeFloors()
Convenience method to ensure all
AutoWireOfficeFloor instances
are closed. |
void |
closeOfficeFloor()
Closes the
OfficeFloor . |
static AutoWireOfficeFloor |
createAutoWireOfficeFloor(OfficeFloor officeFloor,
String officeName)
Creates the
AutoWireOfficeFloor . |
static AutoWireManagementMBean[] |
getAutoWireManagers()
Obtains the
AutoWireManagementMBean instances. |
void |
invokeTask(String workName,
String taskName)
Invokes the
Task on the OfficeFloor . |
public static final String MBEAN_NAME
AutoWireManagementMBean
.public static AutoWireOfficeFloor createAutoWireOfficeFloor(OfficeFloor officeFloor, String officeName) throws Exception
AutoWireOfficeFloor
.officeFloor
- OfficeFloor
.officeName
- Name of the Office
.AutoWireOfficeFloor
.Exception
- If fails to create the AutoWireOfficeFloor
.public static AutoWireManagementMBean[] getAutoWireManagers()
AutoWireManagementMBean
instances.AutoWireManagementMBean
instances.public static void closeAllOfficeFloors()
AutoWireOfficeFloor
instances
are closed.public void invokeTask(String workName, String taskName) throws Exception
AutoWireManagementMBean
Task
on the OfficeFloor
.invokeTask
in interface AutoWireManagementMBean
workName
- Name of the Work
.taskName
- Name of the Task
.Exception
- If fails to invoke the Task
.public void closeOfficeFloor()
AutoWireManagementMBean
OfficeFloor
.closeOfficeFloor
in interface AutoWireManagementMBean
Copyright © 2005–2016. All rights reserved.