程序要求: 1. 用Rabbit MQ实现RPC 1. 可以异步地执行多条命令 2. 可以对一次性对多个机器执行命令 程序效果: 》run dir host1 host2 。。。。 》get task_id 》taskId:xxxx host: xxxxxx 》check task_id >打印结果 ...
分类:
编程语言 时间:
2019-02-12 13:15:07
阅读次数:
416
import com.jayway.jsonpath.JsonPath; import com.jayway.jsonpath.Predicate; import net.minidev.json.JSONArray; public class Test { public static String ...
分类:
Web程序 时间:
2019-02-12 00:27:01
阅读次数:
386
A. Got Any Grapes? 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int x, y, z, a, b, c; 5 bool solve() 6 { 7 if (a < x) return false; 8 a -= ...
分类:
其他好文 时间:
2019-02-11 16:49:31
阅读次数:
149
开闭原则(Open Closed Principle,OCP) 一个软件实体如类、模块和函数应该对扩展开放,对修改关闭。模块应尽量在不修改原(是“原”,指原来的代码)代码的情况下进行扩展。 优点 : 可复用性,可维护性 ...
分类:
其他好文 时间:
2019-02-11 12:23:51
阅读次数:
144
1、新建一个java请求执行加法类 public class TestDemo { public int Tdemo(int a,int b){ int sum = 0; sum = a+b; return sum; } } 2、再建一个jmeter的java请求类 import org.apach ...
分类:
编程语言 时间:
2019-02-10 23:23:18
阅读次数:
302
String [] str ={"1","2","3"}; vars.putObject("strArray",str); int length=str.length ; log.info("length "+length); //vars.putObject("index",0); //vars. ...
分类:
其他好文 时间:
2019-02-10 23:22:19
阅读次数:
146
在没有 精确或模糊查询的接口时可以使用jmeter 获取指定的值的ID import java.lang.String ; String getTargetName="iphone632g"; //判读相应结果中是否包含指定值:iphone632g boolean containsCategory= ...
分类:
Web程序 时间:
2019-02-10 23:16:36
阅读次数:
394
半平面交+二分 二分最远距离把每个直线往里移这个距离然后看一下半平面交是否存在就好 然后注意精度问题 【poj G++需要用%f C++没有问题 //Love and Freedom. #include<cstdio> #include<cstring> #include<algorithm> #i ...
分类:
其他好文 时间:
2019-02-10 20:17:40
阅读次数:
170
传送门:https://www.lydsy.com/JudgeOnline/problem.php?id=1485 【题解】 Catalan数,注意不能直接用逆元,需要分解质因数。 1 # include <bits/stdc++.h> 2 using namespace std; 3 4 cons ...
分类:
其他好文 时间:
2019-02-10 15:05:59
阅读次数:
184
1584:骑士 时间限制: 1000 ms 内存限制: 524288 KB 题目描述 原题来自:ZJOI 2008 Z 国的骑士团是一个很有势力的组织,帮会中聚集了来自各地的精英。他们劫富济贫,惩恶扬善,受到了社会各界的赞扬。 可是,最近发生了一件很可怕的事情:邪恶的 Y 国发起了一场针对 Z 国的 ...
分类:
其他好文 时间:
2019-02-10 13:42:20
阅读次数:
272