|
|
|
@ -65,6 +65,7 @@ public class MicroPhotoContext {
|
|
|
|
|
public int[] absHeartbeats; // second
|
|
|
|
|
public int separateNetwork;
|
|
|
|
|
public int mpappMonitorTimeout = 30 * 60000; // 30 minutes
|
|
|
|
|
public int timeForKeepingLogs = 15; // Unit day
|
|
|
|
|
|
|
|
|
|
public String getUrl() {
|
|
|
|
|
if (TextUtils.isEmpty(server)) {
|
|
|
|
@ -298,6 +299,8 @@ public class MicroPhotoContext {
|
|
|
|
|
masterConfig.quickHbMode = jsonObject.optInt("quickHbMode", 0);
|
|
|
|
|
masterConfig.usingAbsHbTime = jsonObject.optInt("usingAbsHbTime", 0);
|
|
|
|
|
masterConfig.separateNetwork = jsonObject.optInt("separateNetwork", 0);
|
|
|
|
|
masterConfig.timeForKeepingLogs = jsonObject.optInt("timeForKeepingLogs", 15);
|
|
|
|
|
|
|
|
|
|
// masterConfig.mpappMonitorTimeout = jsonObject.optInt("mpappMonitorTimeout", 30 * 60000);
|
|
|
|
|
int mpappMonitorTimeout = jsonObject.optInt("mpappMonitorTimeout", 30 * 60000);
|
|
|
|
|
if (mpappMonitorTimeout >= 4 * 60000 && mpappMonitorTimeout <= 35 * 60000) {
|
|
|
|
|