APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.tools.jconsole

public Class JConsole

extends JFrame
implements ActionListener, InternalFrameListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.InternalFrameListener, java.util.EventListener, java.awt.event.ActionListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, java.beans.*, java.io.*, java.net.*, java.util.*, .List, javax.swing.*, javax.swing.border.*, javax.swing.event.*, javax.swing.plaf.*, javax.security.auth.login.FailedLoginException, javax.net.ssl.SSLHandshakeException, com.sun.tools.jconsole.JConsolePlugin, sun.net.util.IPAddressUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class

Field Summary

Modifier and TypeField and Description
private JMenuItem
private JMenuItem
private JButton
private ConnectDialog
private JMenuItem
private CreateMBeanDialog
pack-priv static boolean
private JDesktopPane
private JMenuItem
private int
private JMenuItem
pack-priv static boolean
pack-priv static boolean
private JMenuItem
private static String
private static ServiceLoader<JConsolePlugin>
private JMenuItem
public static final String
private JMenuItem
private static final String
private static int
private JMenuItem
private JConsole.WindowMenu
private ArrayList<VMInternalFrame>
Inherited from javax.swing.JFrame:
accessibleContextrootPanerootPaneCheckingEnabled

Constructor Summary

AccessConstructor and Description
public
JConsole(boolean hotspot)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

private VMInternalFrame
addFrame(VMPanel vmPanel)

pack-priv void
addHost(String hostName, int port, String userName, String password)

pack-priv void
addHost(final String hostName, final int port, final String userName, final String password, final boolean tile)

pack-priv void
addProxyClient(final ProxyClient proxyClient, final boolean tile)

pack-priv void
addUrl(final String url, final String userName, final String password, final boolean tile)

pack-priv void
pack-priv void
addVmid(final LocalVirtualMachine lvm, final boolean tile)

public void
private void
private static void
private String
private void
failed(final Exception ex, final String url, final String userName, final String password)

private static URL

Returns:

the resulting directory or JAR file URL, or null if unknown
fileToURL
(File
the File object
file
)

Returns the directory or JAR file URL corresponding to the specified local file name.

public JDesktopPane
public List<VMInternalFrame>
pack-priv static synchronized List<JConsolePlugin>
private static void
private static void
public void
public void
internalFrameClosed(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameClosed.

Invoked when an internal frame has been closed.

public void
internalFrameClosing(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameClosing.

Invoked when an internal frame is in the process of being closed.

public void
public void
public void
public void
internalFrameOpened(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameOpened.

Invoked when a internal frame has been opened.

public static boolean
public static boolean
isLocalAttachAvailable()

local attach is supported in this implementation as jdk.jconsole requires jdk.attach and jdk.management.agent

private boolean
pack-priv static boolean
public static void
main(String[] args)

private static void
mainInit(final List<String> urls, final List<String> hostNames, final List<Integer> ports, final List<LocalVirtualMachine> vmids, final ProxyClient proxyClient, final boolean noTile, final boolean hotspot)

private static URL[]

Returns:

the resulting array of directory and JAR file URLs
pathToURLs
(String
the search path string
path
)

Utility method for converting a search path string to an array of directory and JAR file URLs.

private void
private void
showConnectDialog(String url, String hostName, int port, String userName, String password, String msg)

private void
public void
pack-priv static void
private static void
Inherited from javax.swing.JFrame:
addImplcreateRootPaneframeInitgetAccessibleContextgetContentPanegetDefaultCloseOperationgetGlassPanegetGraphicsgetJMenuBargetLayeredPanegetRootPanegetTransferHandlerisDefaultLookAndFeelDecoratedisRootPaneCheckingEnabledparamStringprocessWindowEventremoverepaintsetContentPanesetDefaultCloseOperationsetDefaultLookAndFeelDecoratedsetGlassPanesetIconImagesetJMenuBarsetLayeredPanesetLayoutsetRootPanesetRootPaneCheckingEnabledsetTransferHandlerupdate

Field Detail

aboutMIback to summary
private JMenuItem aboutMI
cascadeMIback to summary
private JMenuItem cascadeMI
connectButtonback to summary
private JButton connectButton
connectDialogback to summary
private ConnectDialog connectDialog
connectMIback to summary
private JMenuItem connectMI
createDialogback to summary
private CreateMBeanDialog createDialog
debugback to summary
pack-priv static boolean debug
desktopback to summary
private JDesktopPane desktop
exitMIback to summary
private JMenuItem exitMI
frameLocback to summary
private int frameLoc
hotspotMIback to summary
private JMenuItem hotspotMI
IS_GTKback to summary
pack-priv static boolean IS_GTK
IS_WINback to summary
pack-priv static boolean IS_WIN
minimizeAllMIback to summary
private JMenuItem minimizeAllMI
pluginPathback to summary
private static String pluginPath
pluginServiceback to summary
private static ServiceLoader<JConsolePlugin> pluginService
restoreAllMIback to summary
private JMenuItem restoreAllMI
ROOT_URLback to summary
public static final String ROOT_URL
tileMIback to summary
private JMenuItem tileMI
titleback to summary
private static final String title

Hides java.awt.Frame.title.

updateIntervalback to summary
private static int updateInterval
userGuideMIback to summary
private JMenuItem userGuideMI
windowMenuback to summary
private JConsole.WindowMenu windowMenu
windowsback to summary
private ArrayList<VMInternalFrame> windows

Constructor Detail

JConsoleback to summary
public JConsole(boolean hotspot)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

addFrameback to summary
private VMInternalFrame addFrame(VMPanel vmPanel)
addHostback to summary
pack-priv void addHost(String hostName, int port, String userName, String password)
addHostback to summary
pack-priv void addHost(final String hostName, final int port, final String userName, final String password, final boolean tile)
addProxyClientback to summary
pack-priv void addProxyClient(final ProxyClient proxyClient, final boolean tile)
addUrlback to summary
pack-priv void addUrl(final String url, final String userName, final String password, final boolean tile)
addVmidback to summary
pack-priv void addVmid(LocalVirtualMachine lvm)
addVmidback to summary
pack-priv void addVmid(final LocalVirtualMachine lvm, final boolean tile)
cascadeWindowsback to summary
public void cascadeWindows()
createMDIback to summary
private void createMDI()
dbgStackTraceback to summary
private static void dbgStackTrace(Exception ex)
errorMessageback to summary
private String errorMessage(Exception ex)
failedback to summary
private void failed(final Exception ex, final String url, final String userName, final String password)
fileToURLback to summary
private static URL fileToURL(File file) throws MalformedURLException

Returns the directory or JAR file URL corresponding to the specified local file name.

Parameters
file:File

the File object

Returns:URL

the resulting directory or JAR file URL, or null if unknown

getDesktopPaneback to summary
public JDesktopPane getDesktopPane()
getInternalFramesback to summary
public List<VMInternalFrame> getInternalFrames()
getPluginsback to summary
pack-priv static synchronized List<JConsolePlugin> getPlugins()
initEmptyPluginback to summary
private static void initEmptyPlugin()
initPluginServiceback to summary
private static void initPluginService(String pluginPath)
internalFrameActivatedback to summary
public void internalFrameActivated(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameActivated.

Doc from javax.swing.event.InternalFrameListener.internalFrameActivated.

Invoked when an internal frame is activated.

internalFrameClosedback to summary
public void internalFrameClosed(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameClosed.

Doc from javax.swing.event.InternalFrameListener.internalFrameClosed.

Invoked when an internal frame has been closed.

internalFrameClosingback to summary
public void internalFrameClosing(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameClosing.

Doc from javax.swing.event.InternalFrameListener.internalFrameClosing.

Invoked when an internal frame is in the process of being closed. The close operation can be overridden at this point.

internalFrameDeactivatedback to summary
public void internalFrameDeactivated(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameDeactivated.

Doc from javax.swing.event.InternalFrameListener.internalFrameDeactivated.

Invoked when an internal frame is de-activated.

internalFrameDeiconifiedback to summary
public void internalFrameDeiconified(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameDeiconified.

Doc from javax.swing.event.InternalFrameListener.internalFrameDeiconified.

Invoked when an internal frame is de-iconified.

internalFrameIconifiedback to summary
public void internalFrameIconified(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameIconified.

Doc from javax.swing.event.InternalFrameListener.internalFrameIconified.

Invoked when an internal frame is iconified.

internalFrameOpenedback to summary
public void internalFrameOpened(InternalFrameEvent e)

Implements javax.swing.event.InternalFrameListener.internalFrameOpened.

Doc from javax.swing.event.InternalFrameListener.internalFrameOpened.

Invoked when a internal frame has been opened.

isDebugback to summary
public static boolean isDebug()
isLocalAttachAvailableback to summary
public static boolean isLocalAttachAvailable()

local attach is supported in this implementation as jdk.jconsole requires jdk.attach and jdk.management.agent

isProxyClientUsedback to summary
private boolean isProxyClientUsed(ProxyClient client)
isValidRemoteStringback to summary
pack-priv static boolean isValidRemoteString(String txt)
mainback to summary
public static void main(String[] args)
mainInitback to summary
private static void mainInit(final List<String> urls, final List<String> hostNames, final List<Integer> ports, final List<LocalVirtualMachine> vmids, final ProxyClient proxyClient, final boolean noTile, final boolean hotspot)
pathToURLsback to summary
private static URL[] pathToURLs(String path) throws MalformedURLException

Utility method for converting a search path string to an array of directory and JAR file URLs.

Parameters
path:String

the search path string

Returns:URL[]

the resulting array of directory and JAR file URLs

removeVMInternalFrameback to summary
private void removeVMInternalFrame(VMInternalFrame vmIF)
showConnectDialogback to summary
private void showConnectDialog(String url, String hostName, int port, String userName, String password, String msg)
showCreateMBeanDialogback to summary
private void showCreateMBeanDialog()
tileWindowsback to summary
public void tileWindows()
updateLafValuesback to summary
pack-priv static void updateLafValues()
usageback to summary
private static void usage()
sun.tools.jconsole back to summary

private Class JConsole.FixedJRootPane

extends JRootPane
Class Inheritance

Field Summary

Inherited from javax.swing.JRootPane:
COLOR_CHOOSER_DIALOGcontentPanedefaultButtonERROR_DIALOGFILE_CHOOSER_DIALOGFRAMEglassPaneINFORMATION_DIALOGlayeredPanemenuBarNONEPLAIN_DIALOGQUESTION_DIALOGWARNING_DIALOG

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
revalidate()

Overrides javax.swing.JComponent.revalidate.

The revalidate method seems to be the only one that gets called whenever there is a change of L&F; or change of theme in Windows L&F; and GTK L&F;.

public void
updateUI()

Overrides javax.swing.JRootPane.updateUI.

Resets the UI property to a value from the current look and feel.

Inherited from javax.swing.JRootPane:
addImpladdNotifycreateContentPanecreateGlassPanecreateLayeredPanecreateRootLayoutgetAccessibleContextgetContentPanegetDefaultButtongetGlassPanegetJMenuBargetLayeredPanegetMenuBargetUIgetUIClassIDgetWindowDecorationStyleisOptimizedDrawingEnabledisValidateRootparamStringremoveNotifysetContentPanesetDefaultButtonsetDoubleBufferedsetGlassPanesetJMenuBarsetLayeredPanesetMenuBarsetUIsetWindowDecorationStyle

Constructor Detail

FixedJRootPaneback to summary
private FixedJRootPane()

Method Detail

revalidateback to summary
public void revalidate()

Overrides javax.swing.JComponent.revalidate.

The revalidate method seems to be the only one that gets called whenever there is a change of L&F or change of theme in Windows L&F and GTK L&F.

Annotations
@Override
updateUIback to summary
public void updateUI()

Overrides javax.swing.JRootPane.updateUI.

Doc from javax.swing.JRootPane.updateUI.

Resets the UI property to a value from the current look and feel.

sun.tools.jconsole back to summary

private Class JConsole.WindowMenu

extends JMenu
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Rectangle
pack-priv int
pack-priv Rectangle
pack-priv Rectangle
pack-priv VMInternalFrame[]
Inherited from javax.swing.JMenu:
popupListener

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private void
Inherited from javax.swing.JMenu:
addaddaddaddaddaddMenuListeneraddSeparatorapplyComponentOrientationcreateActionChangeListenercreateActionComponentcreateWinListenerdoClickfireMenuCanceledfireMenuDeselectedfireMenuSelectedgetAccessibleContextgetComponentgetDelaygetItemgetItemCountgetMenuComponentgetMenuComponentCountgetMenuComponentsgetMenuListenersgetPopupMenugetPopupMenuOrigingetSubElementsgetUIClassIDinsertinsertinsertinsertSeparatorisMenuComponentisPopupMenuVisibleisSelectedisTearOffisTopLevelMenumenuSelectionChangedparamStringprocessKeyEventremoveremoveremoveremoveAllremoveMenuListenersetAcceleratorsetComponentOrientationsetDelaysetMenuLocationsetModelsetPopupMenuVisiblesetSelectedupdateUI

Field Detail

iconRback to summary
pack-priv Rectangle iconR
separatorPositionback to summary
pack-priv int separatorPosition
textRback to summary
pack-priv Rectangle textR
viewRback to summary
pack-priv Rectangle viewR
windowMenuWindowsback to summary
pack-priv VMInternalFrame[] windowMenuWindows

Constructor Detail

WindowMenuback to summary
pack-priv WindowMenu(String text)

Method Detail

addback to summary
private void add(VMInternalFrame vmIF)
removeback to summary
private void remove(VMInternalFrame vmIF)