}
@Override
protected void onReceiveFail(final ProbContext probContext) {
final ReveiceResult revResult = probContext.getReveiceResult();
final String exception =
revResult.getException() != null ? revResult.getException().getMessage() : StringUtils.EMPTY;
final String msg =
String
.format(
"fail on receive message from[%s].\n %s second passed since last send msg;\n topic[%s];\n partition[%s];\n offset[%s];\n exception[%s]",
revResult.getServerUrl(), probContext.getSendRevInterval(), revResult.getTopic(),
revResult.getPartition(), revResult.getOffset(), exception);
this.getLogger().warn("alarm...");
Alarm.alert(msg, monitorConfig);
}