亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? profilerevent.java

?? mysql jdbc驅(qū)動程序 mysql jdbc驅(qū)動程序 mysql jdbc驅(qū)動程序 mysql jdbc驅(qū)動程序
?? JAVA
字號:
/* Copyright (C) 2002-2007 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program 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 for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.mysql.jdbc.profiler;import java.util.Date;import com.mysql.jdbc.Util;/** * @author mmatthew */public class ProfilerEvent {	/**	 * A Profiler warning event	 */	public static final byte TYPE_WARN = 0;	/**	 * Profiler creating object type event	 */	public static final byte TYPE_OBJECT_CREATION = 1;	/**	 * Profiler event for prepared statements being prepared	 */	public static final byte TYPE_PREPARE = 2;	/**	 * Profiler event for a query being executed	 */	public static final byte TYPE_QUERY = 3;	/**	 * Profiler event for prepared statements being executed	 */	public static final byte TYPE_EXECUTE = 4;	/**	 * Profiler event for result sets being retrieved	 */	public static final byte TYPE_FETCH = 5;	/**	 * Profiler event for slow query	 */	public static final byte TYPE_SLOW_QUERY = 6;		/**	 * Type of event	 */	protected byte eventType;	/**	 * Associated connection (-1 for none)	 */	protected long connectionId;	/**	 * Associated statement (-1 for none)	 */	protected int statementId;	/**	 * Associated result set (-1 for none)	 */	protected int resultSetId;	/**	 * When was the event created?	 */	protected long eventCreationTime;	/**	 * How long did the event last?	 */	protected long eventDuration;	/**	 * What units was the duration measured in?	 */	protected String durationUnits;		/**	 * The hostname the event occurred on (as an index into a dictionary, used	 * by 'remote' profilers for efficiency)?	 */	protected int hostNameIndex;	/**	 * The hostname the event occurred on	 */	protected String hostName;	/**	 * The catalog the event occurred on (as an index into a dictionary, used by	 * 'remote' profilers for efficiency)?	 */	protected int catalogIndex;	/**	 * The catalog the event occurred on	 */	protected String catalog;	/**	 * Where was the event created (as an index into a dictionary, used by	 * 'remote' profilers for efficiency)?	 */	protected int eventCreationPointIndex;	/**	 * Where was the event created (as a Throwable)?	 */	protected Throwable eventCreationPoint;	/**	 * Where was the event created (as a string description of the	 * eventCreationPoint)?	 */	protected String eventCreationPointDesc;	/**	 * Optional event message	 */	protected String message;	/**	 * Creates a new profiler event	 * 	 * @param eventType	 *            the event type (from the constants TYPE_????)	 * @param hostName	 *            the hostname where the event occurs	 * @param catalog	 *            the catalog in use	 * @param connectionId	 *            the connection id (-1 if N/A)	 * @param statementId	 *            the statement id (-1 if N/A)	 * @param resultSetId	 *            the result set id (-1 if N/A)	 * @param eventCreationTime	 *            when was the event created?	 * @param eventDurationMillis	 *            how long did the event last?	 * @param eventCreationPointDesc	 *            event creation point as a string	 * @param eventCreationPoint	 *            event creation point as a Throwable	 * @param message	 *            optional message	 */	public ProfilerEvent(byte eventType, String hostName, String catalog,			long connectionId, int statementId, int resultSetId,			long eventCreationTime, long eventDuration, String durationUnits,			String eventCreationPointDesc, Throwable eventCreationPoint,			String message) {		this.eventType = eventType;		this.connectionId = connectionId;		this.statementId = statementId;		this.resultSetId = resultSetId;		this.eventCreationTime = eventCreationTime;		this.eventDuration = eventDuration;		this.durationUnits = durationUnits;		this.eventCreationPoint = eventCreationPoint;		this.eventCreationPointDesc = eventCreationPointDesc;		this.message = message;	}	/**	 * Returns the description of when this event was created.	 * 	 * @return a description of when this event was created.	 */	public String getEventCreationPointAsString() {		if (this.eventCreationPointDesc == null) {			this.eventCreationPointDesc = Util					.stackTraceToString(this.eventCreationPoint);		}		return this.eventCreationPointDesc;	}	/**	 * Returns a representation of this event as a String.	 * 	 * @return a String representation of this event.	 */	public String toString() {		StringBuffer buf = new StringBuffer(32);		switch (this.eventType) {		case TYPE_EXECUTE:			buf.append("EXECUTE");			break;		case TYPE_FETCH:			buf.append("FETCH");			break;		case TYPE_OBJECT_CREATION:			buf.append("CONSTRUCT");			break;		case TYPE_PREPARE:			buf.append("PREPARE");			break;		case TYPE_QUERY:			buf.append("QUERY");			break;		case TYPE_WARN:			buf.append("WARN");			break;		case TYPE_SLOW_QUERY:			buf.append("SLOW QUERY");			break;		default:			buf.append("UNKNOWN");		}		buf.append(" created: ");		buf.append(new Date(this.eventCreationTime));		buf.append(" duration: ");		buf.append(this.eventDuration);		buf.append(" connection: ");		buf.append(this.connectionId);		buf.append(" statement: ");		buf.append(this.statementId);		buf.append(" resultset: ");		buf.append(this.resultSetId);		if (this.message != null) {			buf.append(" message: ");			buf.append(this.message);		}		if (this.eventCreationPointDesc != null) {			buf.append("\n\nEvent Created at:\n");			buf.append(this.eventCreationPointDesc);		}		return buf.toString();	}	/**	 * Unpacks a binary representation of this event.	 * 	 * @param buf	 *            the binary representation of this event	 * @return the unpacked Event	 * @throws Exception	 *             if an error occurs while unpacking the event	 */	public static ProfilerEvent unpack(byte[] buf) throws Exception {		int pos = 0;		byte eventType = buf[pos++];		long connectionId = readInt(buf, pos);		pos += 8;		int statementId = readInt(buf, pos);		pos += 4;		int resultSetId = readInt(buf, pos);		pos += 4;		long eventCreationTime = readLong(buf, pos);		pos += 8;		long eventDuration = readLong(buf, pos);		pos += 4;				byte[] eventDurationUnits = readBytes(buf, pos);		pos += 4;				if (eventDurationUnits != null) {			pos += eventDurationUnits.length;		}				int eventCreationPointIndex = readInt(buf, pos);		pos += 4;		byte[] eventCreationAsBytes = readBytes(buf, pos);		pos += 4;		if (eventCreationAsBytes != null) {			pos += eventCreationAsBytes.length;		}		byte[] message = readBytes(buf, pos);		pos += 4;		if (message != null) {			pos += message.length;		}		return new ProfilerEvent(eventType, "", "", connectionId, statementId,				resultSetId, eventCreationTime, eventDuration,				new String(eventDurationUnits, "ISO8859_1"),				new String(eventCreationAsBytes, "ISO8859_1"), null,				new String(message, "ISO8859_1"));	}	/**	 * Creates a binary representation of this event.	 * 	 * @return a binary representation of this event	 * @throws Exception	 *             if an error occurs while packing this event.	 */	public byte[] pack() throws Exception {		int len = 1 + 4 + 4 + 4 + 8 + 4 + 4;		byte[] eventCreationAsBytes = null;		getEventCreationPointAsString();		if (this.eventCreationPointDesc != null) {			eventCreationAsBytes = this.eventCreationPointDesc					.getBytes("ISO8859_1");			len += (4 + eventCreationAsBytes.length);		} else {			len += 4;		}		byte[] messageAsBytes = null;		if (messageAsBytes != null) {			messageAsBytes = this.message.getBytes("ISO8859_1");			len += (4 + messageAsBytes.length);		} else {			len += 4;		}				byte[] durationUnitsAsBytes = null;				if (durationUnits != null) {			durationUnitsAsBytes = this.durationUnits.getBytes("ISO8859_1");			len += (4 + durationUnitsAsBytes.length);		} else {			len += 4;		}		byte[] buf = new byte[len];		int pos = 0;		buf[pos++] = this.eventType;		pos = writeLong(this.connectionId, buf, pos);		pos = writeInt(this.statementId, buf, pos);		pos = writeInt(this.resultSetId, buf, pos);		pos = writeLong(this.eventCreationTime, buf, pos);		pos = writeLong(this.eventDuration, buf, pos);		pos = writeBytes(durationUnitsAsBytes, buf, pos);		pos = writeInt(this.eventCreationPointIndex, buf, pos);		if (eventCreationAsBytes != null) {			pos = writeBytes(eventCreationAsBytes, buf, pos);		} else {			pos = writeInt(0, buf, pos);		}		if (messageAsBytes != null) {			pos = writeBytes(messageAsBytes, buf, pos);		} else {			pos = writeInt(0, buf, pos);		}		return buf;	}	private static int writeInt(int i, byte[] buf, int pos) {		buf[pos++] = (byte) (i & 0xff);		buf[pos++] = (byte) (i >>> 8);		buf[pos++] = (byte) (i >>> 16);		buf[pos++] = (byte) (i >>> 24);		return pos;	}	private static int writeLong(long l, byte[] buf, int pos) {		buf[pos++] = (byte) (l & 0xff);		buf[pos++] = (byte) (l >>> 8);		buf[pos++] = (byte) (l >>> 16);		buf[pos++] = (byte) (l >>> 24);		buf[pos++] = (byte) (l >>> 32);		buf[pos++] = (byte) (l >>> 40);		buf[pos++] = (byte) (l >>> 48);		buf[pos++] = (byte) (l >>> 56);		return pos;	}	private static int writeBytes(byte[] msg, byte[] buf, int pos) {		pos = writeInt(msg.length, buf, pos);		System.arraycopy(msg, 0, buf, pos, msg.length);		return pos + msg.length;	}	private static int readInt(byte[] buf, int pos) {		return (buf[pos++] & 0xff) | ((buf[pos++] & 0xff) << 8)				| ((buf[pos++] & 0xff) << 16) | ((buf[pos++] & 0xff) << 24);	}	private static long readLong(byte[] buf, int pos) {		return (long) (buf[pos++] & 0xff) | ((long) (buf[pos++] & 0xff) << 8)				| ((long) (buf[pos++] & 0xff) << 16)				| ((long) (buf[pos++] & 0xff) << 24)				| ((long) (buf[pos++] & 0xff) << 32)				| ((long) (buf[pos++] & 0xff) << 40)				| ((long) (buf[pos++] & 0xff) << 48)				| ((long) (buf[pos++] & 0xff) << 56);	}	private static byte[] readBytes(byte[] buf, int pos) {		int length = readInt(buf, pos);		pos += 4;		byte[] msg = new byte[length];		System.arraycopy(buf, pos, msg, 0, length);		return msg;	}	/**	 * Returns the catalog in use	 * 	 * @return the catalog in use	 */	public String getCatalog() {		return this.catalog;	}	/**	 * Returns the id of the connection in use when this event was created.	 * 	 * @return the connection in use	 */	public long getConnectionId() {		return this.connectionId;	}	/**	 * Returns the point (as a Throwable stacktrace) where this event was	 * created.	 * 	 * @return the point where this event was created	 */	public Throwable getEventCreationPoint() {		return this.eventCreationPoint;	}	/**	 * Returns the time (in System.currentTimeMillis() form) when this event was	 * created	 * 	 * @return the time this event was created	 */	public long getEventCreationTime() {		return this.eventCreationTime;	}	/**	 * Returns the duration of the event in milliseconds	 * 	 * @return the duration of the event in milliseconds	 */	public long getEventDuration() {		return this.eventDuration;	}	/**	 * Returns the units for getEventDuration()	 */	public String getDurationUnits() {		return this.durationUnits;	}		/**	 * Returns the event type flag	 * 	 * @return the event type flag	 */	public byte getEventType() {		return this.eventType;	}	/**	 * Returns the id of the result set in use when this event was created.	 * 	 * @return the result set in use	 */	public int getResultSetId() {		return this.resultSetId;	}	/**	 * Returns the id of the statement in use when this event was created.	 * 	 * @return the statement in use	 */	public int getStatementId() {		return this.statementId;	}	/**	 * Returns the optional message for this event	 * 	 * @return the message stored in this event	 */	public String getMessage() {		return this.message;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产自产在线 | 欧美艳星brazzers| 国产一区激情在线| 日日夜夜精品免费视频| 亚洲伊人伊色伊影伊综合网| 最新国产精品久久精品| 国产精品久久久爽爽爽麻豆色哟哟| 久久这里只有精品视频网| 精品国产髙清在线看国产毛片| 91精品国产品国语在线不卡| 777午夜精品视频在线播放| 欧美午夜精品理论片a级按摩| 欧美在线观看一区| 欧美伦理影视网| 91精品欧美综合在线观看最新| 3atv一区二区三区| 日韩一区二区免费在线电影| 日韩欧美国产1| 久久午夜羞羞影院免费观看| 国产视频一区在线观看| 国产精品国产三级国产aⅴ原创| 亚洲天堂av一区| 亚洲国产你懂的| 美女在线视频一区| 韩国三级电影一区二区| 岛国精品在线播放| 在线视频你懂得一区| 欧美日韩情趣电影| 日韩精品一区二区三区在线 | 久久精品欧美一区二区三区麻豆| 精品国产乱码久久久久久牛牛| 久久精品无码一区二区三区| 中文字幕免费不卡在线| 亚洲精品乱码久久久久久黑人| 亚洲一卡二卡三卡四卡五卡| 日本成人在线视频网站| 国产在线精品一区二区不卡了| 成人一区二区在线观看| 欧美色图一区二区三区| 精品国产91久久久久久久妲己| 国产精品久久精品日日| 天天免费综合色| 国产一区二区免费视频| 色视频欧美一区二区三区| 欧美一区二区在线免费观看| 欧美国产禁国产网站cc| 亚洲成a人v欧美综合天堂下载| 国产一区免费电影| 在线看不卡av| 欧美精品一区二区三区在线| 亚洲欧美另类小说| 精品一区二区三区久久久| 91国产福利在线| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲欧美另类小说| 极品美女销魂一区二区三区免费| 色婷婷香蕉在线一区二区| 欧美va亚洲va香蕉在线| 一区二区免费在线| 国产99久久久久久免费看农村| 欧美日本韩国一区二区三区视频 | 久久蜜桃av一区二区天堂| 亚洲免费av网站| 国产成人综合网站| 91精品国产一区二区三区香蕉| 国产精品视频麻豆| 国模少妇一区二区三区| 欧美日韩亚洲不卡| 亚洲同性gay激情无套| 国产乱子伦视频一区二区三区| 欧美亚洲日本国产| 国产精品久久久久久久久免费桃花| 蜜桃免费网站一区二区三区| 91成人在线免费观看| 亚洲国产精品ⅴa在线观看| 麻豆成人免费电影| 欧美性一级生活| 中文字幕中文字幕中文字幕亚洲无线| 热久久久久久久| 91浏览器入口在线观看| 国产精品视频观看| 国产传媒一区在线| 精品日韩av一区二区| 日韩精品一区第一页| 色88888久久久久久影院野外 | 捆绑变态av一区二区三区| 色婷婷综合久色| 国产精品久久久久久福利一牛影视 | 国产亚洲人成网站| 免费在线视频一区| 欧美色综合网站| 一区二区久久久| 色偷偷88欧美精品久久久| 中文字幕不卡在线观看| 国产最新精品免费| www一区二区| 国产一区激情在线| 久久久久97国产精华液好用吗| 精一区二区三区| 精品国产乱码久久久久久久| 老鸭窝一区二区久久精品| 欧美精品日韩一区| 秋霞av亚洲一区二区三| 欧美乱熟臀69xxxxxx| 污片在线观看一区二区| 欧美三级日韩三级| 日韩影院在线观看| 日韩天堂在线观看| 久久精品久久99精品久久| 精品国产亚洲在线| 国产一区二区三区黄视频 | 美女尤物国产一区| 精品国产乱码久久久久久免费| 久久99九九99精品| 精品sm捆绑视频| 高清beeg欧美| 中文字幕一区二区三区在线观看| 99久久精品免费看| 一区二区三区蜜桃网| 91成人在线免费观看| 亚洲国产日韩a在线播放性色| 欧美三级日韩三级国产三级| 婷婷中文字幕一区三区| 欧美一区二区美女| 国产在线精品一区二区不卡了 | 亚洲国产成人精品视频| 欧美日韩国产区一| 麻豆精品国产91久久久久久| 久久综合999| 91免费观看视频在线| 亚洲无人区一区| 日韩小视频在线观看专区| 国产精品一级在线| 一区二区在线免费观看| 9191久久久久久久久久久| 激情深爱一区二区| 亚洲欧美中日韩| 欧美日韩国产大片| 国产高清精品在线| 亚洲综合丝袜美腿| 日韩免费视频一区二区| 不卡电影免费在线播放一区| 亚洲一区免费视频| 337p粉嫩大胆噜噜噜噜噜91av| 91麻豆自制传媒国产之光| 日韩精品久久理论片| 欧美激情艳妇裸体舞| 欧美日韩中文字幕一区| 久久成人免费日本黄色| 亚洲日本丝袜连裤袜办公室| 91精品婷婷国产综合久久| 国产成+人+日韩+欧美+亚洲| 亚洲大型综合色站| 欧美经典一区二区| 欧美日韩成人在线一区| 国产成人丝袜美腿| 污片在线观看一区二区| 中文字幕一区二区三中文字幕| 51久久夜色精品国产麻豆| 国产福利一区在线观看| 亚洲一区在线观看免费观看电影高清| 精品国产一区二区在线观看| 91国偷自产一区二区开放时间| 久久国产欧美日韩精品| 亚洲一区二区三区在线| 国产视频一区在线观看| 678五月天丁香亚洲综合网| bt欧美亚洲午夜电影天堂| 蜜桃免费网站一区二区三区| 亚洲女同一区二区| 国产亚洲一区二区三区在线观看 | 欧美日韩电影一区| 春色校园综合激情亚洲| 日本人妖一区二区| 亚洲色图欧洲色图| 26uuu国产电影一区二区| 欧美日韩精品三区| 97精品久久久久中文字幕| 激情综合一区二区三区| 三级精品在线观看| 亚洲欧美日韩一区| 国产精品理论片| 国产欧美日韩三级| 日韩精品最新网址| 欧美麻豆精品久久久久久| 色综合久久99| 成人黄色在线网站| 国产成人日日夜夜| 国产在线精品一区二区| 免费高清视频精品| 天涯成人国产亚洲精品一区av| 最近日韩中文字幕| 国产精品久线在线观看| 久久久不卡网国产精品一区| 日韩精品中午字幕| 欧美二区三区的天堂| 欧美特级限制片免费在线观看| 色婷婷精品久久二区二区蜜臂av | 日韩一区二区中文字幕| 欧美人与禽zozo性伦|