@Override public void refresh(ManagedBean mbean) { ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer()); _queues = serverRegistry.getQueues(MBeanView.getVirtualHost()); _exchanges = serverRegistry.getExchanges(MBeanView.getVirtualHost()); _queueTableViewer.setInput(_queues); _exchangeTableViewer.setInput(_exchanges); layout(); }
public VHostTabControl(TabFolder tabFolder, JMXManagedObject mbean, MBeanServerConnection mbsc) { super(tabFolder); _mbean = mbean; _serverRegistry = ApplicationRegistry.getServerRegistry(mbean); _ApiVersion = _serverRegistry.getManagementApiVersion(); _vhmb = (ManagedBroker) MBeanServerInvocationHandler.newProxyInstance( mbsc, mbean.getObjectName(), ManagedBroker.class, false); _toolkit = new FormToolkit(_tabFolder.getDisplay()); _form = _toolkit.createForm(_tabFolder); _form.getBody().setLayout(new GridLayout()); createComposites(); createWidgets(); }