钱能钱包 v3.10.2版本的 MD5 值为:339a4b585ef2aa3bfaf7e4baeb254647
以下内容为反编译后的 AcceleratorConf.java 源代码,内容仅作参考
package com.netease.cloud.nos.yidun.core;
import cn.jiguang.internal.JConstants;
import com.luck.picture.lib.tools.PictureFileUtils;
import com.netease.cloud.nos.yidun.exception.InvalidChunkSizeException;
import com.netease.cloud.nos.yidun.exception.InvalidParameterException;
import com.netease.cloud.nos.yidun.utils.LogUtil;
import com.netease.cloud.nos.yidun.utils.Util;
import okhttp3.OkHttpClient;
public class AcceleratorConf {
private static final String LOGTAG = LogUtil.makeLogTag(AcceleratorConf.class);
private String lbsHost = "https://wannos.127.net/lbs;https://wannos-hz.127.net/lbs;https://wannos-bj.127.net/lbs;https://wannos-oversea.127.net/lbs";
private String lbsIP = "http://223.252.196.38/lbs";
private String monitorHost = "https://wannos.127.net";
private String charset = "utf-8";
private int connectionTimeout = 10000;
private int soTimeout = 30000;
private int lbsConnectionTimeout = 10000;
private int lbsSoTimeout = 10000;
private int chunkSize = 32768;
private int chunkRetryCount = 2;
private int queryRetryCount = 2;
private long refreshInterval = 7200000;
private long monitorInterval = 120000;
private boolean isPipelineEnabled = true;
private long pipelineFailoverPeriod = 300000;
private int md5FileMaxSize = PictureFileUtils.MB;
private OkHttpClient httpClient = null;
private boolean monitorThreadEnable = false;
public String getCharset() {
return this.charset;
}
public int getChunkRetryCount() {
return this.chunkRetryCount;
}
public int getChunkSize() {
return this.chunkSize;
}
public int getConnectionTimeout() {
return this.connectionTimeout;
}
public OkHttpClient getHttpClient() {
return this.httpClient;
}
public int getLbsConnectionTimeout() {
return this.lbsConnectionTimeout;
}
public String getLbsHost() {
return this.lbsHost;
}
public String getLbsIP() {
return this.lbsIP;
}
public int getLbsSoTimeout() {
return this.lbsSoTimeout;
}
public int getMd5FileMaxSize() {
return this.md5FileMaxSize;
}
public String getMonitorHost() {
return this.monitorHost;
}
public long getMonitorInterval() {
return this.monitorInterval;
}
public long getPipelineFailoverPeriod() {
return this.pipelineFailoverPeriod;
}
public int getQueryRetryCount() {
return this.queryRetryCount;
}
public long getRefreshInterval() {
return this.refreshInterval;
}
public int getSoTimeout() {
return this.soTimeout;
}
public boolean isMonitorThreadEnabled() {
return this.monitorThreadEnable;
}
public boolean isPipelineEnabled() {
return this.isPipelineEnabled;
}
public void setChunkRetryCount(int i2) {
if (i2 > 0) {
this.chunkRetryCount = i2;
return;
}
throw new InvalidParameterException("Invalid chunkRetryCount:" + i2);
}
public void setChunkSize(int i2) {
if (i2 <= 4194304 && i2 >= 4096) {
this.chunkSize = i2;
return;
}
throw new InvalidChunkSizeException();
}
public void setConnectionTimeout(int i2) {
if (i2 > 0) {
this.connectionTimeout = i2;
return;
}
throw new InvalidParameterException("Invalid ConnectionTimeout:" + i2);
}
public void setHttpClient(OkHttpClient okHttpClient) {
this.httpClient = okHttpClient;
}
public void setLbsConnectionTimeout(int i2) {
if (i2 > 0) {
this.lbsConnectionTimeout = i2;
return;
}
throw new InvalidParameterException("Invalid lbsConnectionTimeout:" + i2);
}
public void setLbsHost(String str) {
this.lbsHost = str;
}
public void setLbsIP(String str) {
if (Util.isValidLbsIP(str)) {
this.lbsIP = str;
return;
}
throw new InvalidParameterException("Invalid LbsIP");
}
public void setLbsSoTimeout(int i2) {
if (i2 > 0) {
this.lbsSoTimeout = i2;
return;
}
throw new InvalidParameterException("Invalid lbsSoTimeout:" + i2);
}
public void setMd5FileMaxSize(int i2) {
if (i2 >= 0) {
this.md5FileMaxSize = i2;
return;
}
throw new InvalidParameterException("Invalid md5FileMaxSize:" + i2);
}
public void setMonitorHost(String str) {
this.monitorHost = str;
}
public void setMonitorInterval(long j2) {
if (j2 < JConstants.MIN) {
String str = LOGTAG;
LogUtil.w(str, "Invalid monitorInterval:" + j2);
return;
}
this.monitorInterval = j2;
}
public void setMonitorThread(boolean z) {
this.monitorThreadEnable = z;
}
public void setMontiroHost(String str) {
this.monitorHost = str;
}
public void setPipelineEnabled(boolean z) {
this.isPipelineEnabled = z;
}
public void setPipelineFailoverPeriod(long j2) {
if (j2 < 0) {
String str = LOGTAG;
LogUtil.w(str, "Invalid pipelineFailoverPeriod:" + j2);
return;
}
this.pipelineFailoverPeriod = j2;
}
public void setQueryRetryCount(int i2) {
if (i2 > 0) {
this.queryRetryCount = i2;
return;
}
throw new InvalidParameterException("Invalid queryRetryCount:" + i2);
}
public void setRefreshInterval(long j2) {
if (j2 < JConstants.MIN) {
String str = LOGTAG;
LogUtil.w(str, "Invalid refreshInterval:" + j2);
return;
}
this.refreshInterval = j2;
}
public void setSoTimeout(int i2) {
if (i2 > 0) {
this.soTimeout = i2;
return;
}
throw new InvalidParameterException("Invalid soTimeout:" + i2);
}
}