if (!future.isSuccess()) {
logger.error("connect fail.", future.getCause());
AnalyzerUtil.sendOutAlert(Calendar.getInstance(), config.getAlertUrl(), config.getAlertFrom(),
config.getAlertModel(), config.getAlertWangWang(), "master " + address
+ " maybe down, please hava a check");
throw new AnalysisException("connect fail.", future.getCause());
}
channel = future.getChannel();
channels.put(address, channel);
}
else
throw new AnalysisException("can't get lock to create channel");
}
catch(InterruptedException e)
{
//do nothing
}