use of com.alibaba.otter.shared.communication.model.arbitrate.NodeAlarmEvent in project otter by alibaba.
the class AlarmClientService method sendAlarm.
public void sendAlarm(Long currentNid, Long pipelineId, String title, String msg) {
final NodeAlarmEvent event = new NodeAlarmEvent();
event.setNid(currentNid);
event.setTitle(MonitorName.EXCEPTION.name());
event.setMessage(MessageFormat.format(MESSAGE_FORMAT, title, msg));
event.setPipelineId(pipelineId);
arbitrateCommmunicationClient.callManager(event, new Callback<Object>() {
public void call(Object result) {
logger.info("##callManager successed! event:[{}]", event.toString());
}
});
}
Aggregations