public class DruidSqlDetailFrame extends JFrame
{
"ResultCode": 1,
"Content": {
"ExecuteCount": 15,
"ReadStringLength": 0,
"LastSlowParameters": null,
"BlobOpenCount": 0,
"InputStreamOpenCount": 0,
"DbType": "mysql",
"DataSource": null,
"RunningCount": 0,
"parsedRelationships": "[]",
"ConcurrentMax": 1,
"LastErrorClass": null,
"MaxTimespan": 125,
"InTransactionCount": 0,
"ID": 3,
"parsedFields": "[]",
"EffectedRowCount": 0,
"BatchSizeTotal": 0,
"URL": null,
"ExecuteAndResultSetHoldTime": 0,
"LastErrorMessage": null,
"FetchRowCountHistogram": [
0,
0,
0,
0,
0,
0
],
"FetchRowCountMax": 0,
"Histogram": [
0,
0,
13,
2,
0,
0,
0,
0
],
"parsedOrderbycolumns": "[]",
"ErrorCount": 0,
"SQL": "DROP TABLE t_big",
"ClobOpenCount": 0,
"LastTime": "2012-09-14 21:35:10",
"File": null,
"LastErrorStackTrace": null,
"LastError": null,
"EffectedRowCountHistogram": [
15,
0,
0,
0,
0,
0
],
"TotalTime": 742,
"formattedSql": "DROP TABLE t_big",
"Name": null,
"MaxTimespanOccurTime": "2012/09/14 09:35:00:758",
"parsedTable": "{t_big=Drop}",
"BatchSizeMax": 0,
"ReadBytesLength": 0,
"EffectedRowCountMax": 0,
"FetchRowCount": 0,
"parsedConditions": "[]",
"ResultSetHoldTime": 0,
"ReaderOpenCount": 0,
"ExecuteAndResultHoldTimeHistogram": [
0,
0,
13,
2,
0,
0,
0,
0
],
"LastErrorTime": null
}
}
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainer| 限定符和类型 | 字段和说明 |
|---|---|
private static String |
BASE_URL
service的地址的根路径.
|
private MBeanServerConnection |
conn
MBeanServerConnection对象.
|
private String |
formatSql
格式化好的sql语句内容.
|
private static int |
HEIGHT
窗体的高度.
|
private String |
id
sql语句的索引.
|
private static String |
KEY_FORMAT_SQL
json中格式化sql的键名.
|
private static String |
KEY_SQL
json中sql的键名.
|
private static ArrayList<String> |
LAST_ERROR_TITLE_LIST
错误信息表格的标题列.
|
private static ArrayList<String> |
LAST_SLOW_TITLE_LIST
慢查询信息表格的标题列.
|
private ArrayList<LinkedHashMap<String,Object>> |
lastErrorData
错误信息数据.
|
private ArrayList<LinkedHashMap<String,Object>> |
lastSlowData
慢查询信息数据.
|
private static Log |
LOG
The Constant LOG.
|
private int |
maxListLen
各个数据表格中最大的数据列长度.
|
private static ArrayList<String> |
OTHER_ERROR_TITLE_LIST
其他信息表格的标题列.
|
private ArrayList<LinkedHashMap<String,Object>> |
otherData
其他信息数据.
|
private static ArrayList<String> |
PARESE_TITLE_LIST
解析信息内容表格的标题列.
|
private ArrayList<LinkedHashMap<String,Object>> |
parseData
解析信息数据.
|
private static long |
serialVersionUID
The Constant serialVersionUID.
|
private String |
sql
未格式化的sql语句内容.
|
private static int |
WIDTH
窗体的宽度.
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS| 构造器和说明 |
|---|
DruidSqlDetailFrame(String id,
MBeanServerConnection conn)
Instantiates a new druid sql detail frame.
|
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
addComponentsToPane(Container pane)
将各个界面添加到JFrame中
|
private void |
addTable(JPanel contentPanel,
String title,
ArrayList<LinkedHashMap<String,Object>> data)
将表格添加到contentPanel对象内部。
|
private void |
getMaxListLen()
获取各个数据表格中最大的数据列长度
|
private void |
init()
初始化数据,得到四个表格的数据
|
private void |
start()
显示JFrame
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventprivate static final long serialVersionUID
private String id
private MBeanServerConnection conn
private ArrayList<LinkedHashMap<String,Object>> parseData
private ArrayList<LinkedHashMap<String,Object>> lastSlowData
private ArrayList<LinkedHashMap<String,Object>> lastErrorData
private ArrayList<LinkedHashMap<String,Object>> otherData
private int maxListLen
private String formatSql
private String sql
private static final int WIDTH
private static final int HEIGHT
private static final Log LOG
public DruidSqlDetailFrame(String id, MBeanServerConnection conn)
id - sql语句索引conn - MBeanServerConnection对象private void getMaxListLen()
private void init()
private void addTable(JPanel contentPanel, String title, ArrayList<LinkedHashMap<String,Object>> data)
contentPanel - JPanel对象当前表格的标题 - data - 当前表格的数据private void addComponentsToPane(Container pane)
pane - JFrame内部的Container对象private void start()
Copyright © 2013–2019 Alibaba Group. All rights reserved.