当前位置: 首页>>代码示例>>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;未经允许,请勿转载。