com.deep007.goniub.proxy.test.ProxyReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of goniub Show documentation
Show all versions of goniub Show documentation
基于selenium、browserproxy、okhttp等研发的工具包,方便使用。够牛逼!
package com.deep007.goniub.proxy.test;
import java.util.ArrayList;
import java.util.List;
public class ProxyReport {
public String proxyIp;
public int proxyPort;
public long totalUseTime;
public long averageUseTime;
public int successTimes;
public int failureTimes;
public int totalTimes;
private List list = new ArrayList<>();
public void addRequestReport(RequestReport testReport) {
if (testReport != null) {
if (testReport.success) {
totalUseTime += testReport.useTime;
successTimes ++;
if (successTimes > 0) {
averageUseTime = totalUseTime / successTimes;
}
}else {
failureTimes ++;
}
totalTimes ++;
list.add(testReport);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy