⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpperfresult.java

📁 利用Java Socket写的一段通讯协议
💻 JAVA
字号:
package com.ict.netcom2.result;

public class HttpPerfResult extends MeasureResult {
	/**
	 * test return code
	 */
	public int rstCode;

	/**
	 * test start time
	 */
	public long testTime;

	/**
	 * connect setup time
	 */
	public long connectTime;

	/**
	 * user perceive http connect time
	 */
	public long usrConnTime;

	/**
	 * http server response time
	 */
	public long responseTime;

	/**
	 * user download index html time
	 */
	public long indexGotTime;

	/**
	 * user perceive download index html time
	 */
	public long usrGotTime;

	/**
	 * web page download rate
	 */
	public float downloadRate;
	
	public String toString() {
		String ret = "\n";
		ret += "[HttpPerfResult]*************************************\n";
		ret += "Test return code: "+this.rstCode+"\n";
		ret += "Test start time: "+this.testTime+"\n";
		ret += "Connect setup time: "+this.connectTime+" ms\n";
		ret += "User perceive http connect time: "+this.usrConnTime+" ms\n";
		ret += "Http server response time: "+this.responseTime+" ms\n";
		ret += "User download index html time: "+this.indexGotTime+" ms\n";
		ret += "User perceive download index html time: "+this.usrGotTime+" ms\n";
		ret += "Web page download rate: "+this.downloadRate+" kb/s\n";
		ret += "*****************************************************";
		return ret;
	}

	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -