Admin API Usage
For the purposes of Broker Spanning, the Admin API provides a way to specify which Manager the Admin API is acting on. AdminManager.setManager() takes the name of the Manager it acts on as a string parameter. Admin API components retrieved act only on the Manager most recently specified by AdminManager.setManager(). To perform Admin API operations on multiple Managers at the same time, prepare collections of Admin API component objects retrieved after each AdminManager.setManager() call. For example, if you want to get all EngineInfos for all spanned Managers, call AdminManager.setManager() followed by a call to AdminManager.getEngineAdmin() for the Manager last specified by AdminManager.setManager(). This must be done for each of the Managers. Each of the EngineAdmins can now be used to call EngineAdmin.getAllEngineInfo() to retrieve all the EngineInfos associated with that EngineAdmin’s Manager. See The Admin API for more information.