當前位置: 首頁>>代碼示例>>Java>>正文


Java ListValue.getInt方法代碼示例

本文整理匯總了Java中scouter.lang.value.ListValue.getInt方法的典型用法代碼示例。如果您正苦於以下問題:Java ListValue.getInt方法的具體用法?Java ListValue.getInt怎麽用?Java ListValue.getInt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在scouter.lang.value.ListValue的用法示例。


在下文中一共展示了ListValue.getInt方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_UA_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<SummaryData> list = new ArrayList<SummaryData>();
		MapPack m = (MapPack) p;
		ListValue idLv = m.getList("id");
		ListValue countLv = m.getList("count");
		for (int i = 0; i < idLv.size(); i++) {
			SummaryData data = new SummaryData();
			data.hash = idLv.getInt(i);
			data.count = countLv.getInt(i);
			list.add(data);
		}
		TextProxy.userAgent.load(date, idLv, serverId);
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:34,代碼來源:UserAgentSummaryComposite.java

示例2: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_ALERT_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<AlertData> list = new ArrayList<AlertData>();
		MapPack m = (MapPack) p;
		ListValue titleLv = m.getList("title");
		ListValue levelLv = m.getList("level");
		ListValue countLv = m.getList("count");
		for (int i = 0; i < titleLv.size(); i++) {
			AlertData data = new AlertData();
			data.title = titleLv.getString(i);
			data.level = (byte) levelLv.getInt(i);
			data.count = countLv.getInt(i);
			list.add(data);
		}
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:35,代碼來源:AlertSummaryComposite.java

示例3: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_SQL_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<SummaryData> list = new ArrayList<SummaryData>();
		MapPack m = (MapPack) p;
		ListValue idLv = m.getList("id");
		ListValue countLv = m.getList("count");
		ListValue errorLv = m.getList("error");
		ListValue elapsedLv = m.getList("elapsed");
		for (int i = 0; i < idLv.size(); i++) {
			SummaryData data = new SummaryData();
			data.hash = idLv.getInt(i);
			data.count = countLv.getInt(i);
			data.errorCount = errorLv.getInt(i);
			data.elapsedSum = elapsedLv.getLong(i);
			list.add(data);
		}
		TextProxy.sql.load(date, idLv, serverId);
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:38,代碼來源:SqlSummaryComposite.java

示例4: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_APICALL_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<SummaryData> list = new ArrayList<SummaryData>();
		MapPack m = (MapPack) p;
		ListValue idLv = m.getList("id");
		ListValue countLv = m.getList("count");
		ListValue errorLv = m.getList("error");
		ListValue elapsedLv = m.getList("elapsed");
		for (int i = 0; i < idLv.size(); i++) {
			SummaryData data = new SummaryData();
			data.hash = idLv.getInt(i);
			data.count = countLv.getInt(i);
			data.errorCount = errorLv.getInt(i);
			data.elapsedSum = elapsedLv.getLong(i);
			list.add(data);
		}
		TextProxy.apicall.load(date, idLv, serverId);
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:38,代碼來源:ApicallSummaryComposite.java

示例5: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_IP_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<SummaryData> list = new ArrayList<SummaryData>();
		MapPack m = (MapPack) p;
		ListValue idLv = m.getList("id");
		ListValue countLv = m.getList("count");
		for (int i = 0; i < idLv.size(); i++) {
			SummaryData data = new SummaryData();
			data.hash = idLv.getInt(i);
			data.count = countLv.getInt(i);
			list.add(data);
		}
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:33,代碼來源:IpSummaryComposite.java

示例6: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_SERVICE_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<SummaryData> list = new ArrayList<SummaryData>();
		MapPack m = (MapPack) p;
		ListValue idLv = m.getList("id");
		ListValue countLv = m.getList("count");
		ListValue errorLv = m.getList("error");
		ListValue elapsedLv = m.getList("elapsed");
		ListValue cpuLv = m.getList("cpu");
		ListValue memLv = m.getList("mem");
		for (int i = 0; i < idLv.size(); i++) {
			SummaryData data = new SummaryData();
			data.hash = idLv.getInt(i);
			data.count = countLv.getInt(i);
			data.errorCount = errorLv.getInt(i);
			data.elapsedSum = elapsedLv.getLong(i);
			data.cpu = cpuLv.getLong(i);
			data.mem = memLv.getLong(i);
			list.add(data);
		}
		TextProxy.service.load(date, idLv, serverId);
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:42,代碼來源:ServiceSummaryComposite.java

示例7: run

import scouter.lang.value.ListValue; //導入方法依賴的package包/類
protected IStatus run(IProgressMonitor monitor) {
	TcpProxy tcp = TcpProxy.getTcpProxy(serverId);
	Pack p = null;
	try {
		p = tcp.getSingle(RequestCmd.LOAD_SERVICE_ERROR_SUMMARY, param);
	} catch (Exception e) {
		e.printStackTrace();
		return Status.CANCEL_STATUS;
	} finally {
		TcpProxy.putTcpProxy(tcp);
	}
	
	if (p != null) {
		final List<ErrorData> list = new ArrayList<ErrorData>();
		MapPack m = (MapPack) p;
		ListValue errorLv = m.getList("error");
		ListValue serviceLv = m.getList("service");
		ListValue messageLv = m.getList("message");
		ListValue countLv = m.getList("count");
		ListValue txidLv = m.getList("txid");
		ListValue sqlLv = m.getList("sql");
		ListValue apiLv = m.getList("apicall");
		ListValue stackLv = m.getList("fullstack");
		for (int i = 0; i < errorLv.size(); i++) {
			ErrorData data = new ErrorData();
			data.error = errorLv.getInt(i);
			data.service = serviceLv.getInt(i);
			data.message = messageLv.getInt(i);
			data.count = countLv.getInt(i);
			data.txid = txidLv.getLong(i);
			data.sql = sqlLv.getInt(i);
			data.apicall = apiLv.getInt(i);
			data.fullstack = stackLv.getInt(i);
			list.add(data);
		}
		
		TextProxy.error.load(date, errorLv, serverId);
		TextProxy.service.load(date, serviceLv, serverId);
		TextProxy.error.load(date, messageLv, serverId);
		TextProxy.sql.load(date, sqlLv, serverId);
		TextProxy.apicall.load(date, apiLv, serverId);
		TextProxy.error.load(date, stackLv, serverId);
		
		ExUtil.exec(viewer.getTable(), new Runnable() {
			public void run() {
				viewer.setInput(list);
			}
		});
	}
	 
	return Status.OK_STATUS;
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:53,代碼來源:ErrorSummaryComposite.java


注:本文中的scouter.lang.value.ListValue.getInt方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。