/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import javax.management.*;
@SuppressWarnings("serial")
}
super(vmPanel, getTabName());
addPropertyChangeListener(this);
setupTab();
}
return viewer;
}
return tree;
}
return sheet;
}
public void dispose() {
super.dispose();
}
public int getUpdateInterval() {
return vmPanel.getUpdateInterval();
}
private void buildMBeanServerView() {
// Register listener for MBean registration/unregistration
//
try {
MBeansTab.this,
null,
null);
} catch (InstanceNotFoundException e) {
// Should never happen because the MBeanServerDelegate
// is always present in any standard MBeanServer
//
e.printStackTrace();
}
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
// Retrieve MBeans from MBeanServer
//
try {
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
return mbeans;
}
protected void done() {
try {
// Wait for mbsc.queryNames() result
// Do not display anything until the new tree has been built
//
tree.setVisible(false);
// Cleanup current tree
//
// Add MBeans to tree
//
// Display the new tree
//
tree.setVisible(true);
} catch (Exception e) {
t.printStackTrace();
}
}
}
}.execute();
}
}
}
public void update() {
// Ping the connection to see if it is still alive. At
// some point the ProxyClient class should centralize
// the connection aliveness monitoring and no longer
// rely on the custom tabs to ping the connections.
//
try {
} catch (IOException ex) {
}
}
private void setupTab() {
// set up the split pane with the MBean tree and MBean sheet panels
setLayout(new BorderLayout());
// set up the MBean tree panel (left pane)
tree.addTreeSelectionListener(this);
tree.addTreeWillExpandListener(this);
tree,
// set up the MBean sheet panel (right pane)
viewer = new XDataViewer(this);
}
/* notification listener: handleNotification */
public void handleNotification(
public void run() {
if (notification instanceof MBeanServerNotification) {
}
}
}
});
}
/* property change listener: propertyChange */
if (connected) {
} else {
}
}
}
/* tree selection listener: valueChanged */
}
/* tree mouse listener: mousePressed */
public void mousePressed(MouseEvent e) {
if (e.getClickCount() == 1) {
if (selRow != -1) {
}
}
}
}
};
/* tree will expand listener: treeWillExpand */
throws ExpandVetoException {
}
}
}
/* tree will expand listener: treeWillCollapse */
throws ExpandVetoException {
}
}