private boolean reconnection() throws Exception {
int index = 0;
while (index < maxAttemptTime) {
index++;
LOG.error("try reconnection bitsflow agent "
+ BitsFlowConfig.YOYO_BITSFLOW_AGENT);
if (isAgentAvailable()) {
boolean isConnectioned = initBitsflowCommGroup();
if (isConnectioned) {
LOG.error("reconnection bitsflow anent success !");
break;
}
}
LOG.error("can not reconnection bitsflow anent ");
Thread.sleep(INTERVAL);
}
return true;
}
int index = 0;
while (index < maxAttemptTime) {
index++;
LOG.error("try reconnection bitsflow agent "
+ BitsFlowConfig.YOYO_BITSFLOW_AGENT);
if (isAgentAvailable()) {
boolean isConnectioned = initBitsflowCommGroup();
if (isConnectioned) {
LOG.error("reconnection bitsflow anent success !");
break;
}
}
LOG.error("can not reconnection bitsflow anent ");
Thread.sleep(INTERVAL);
}
return true;
}