private String alarmDistPollerLocation(OnmsAlarm onmsAlarm) { if ( onmsAlarm == null ) { return null; } OnmsMonitoringSystem distPoller = onmsAlarm.getDistPoller(); if ( distPoller == null ) { return null; } String location = distPoller.getLocation(); if ( location == null ) { return null; } return location; }
private String eventDistPollerLocation(OnmsEvent onmsEvent) { if ( onmsEvent == null ) { return null; } OnmsMonitoringSystem distPoller = onmsEvent.getDistPoller(); if ( distPoller == null ) { return null; } String location = distPoller.getLocation(); if ( location == null ) { return null; } return location; }
private String eventDistPollerLocation(OnmsEvent onmsEvent) { if ( onmsEvent == null ) { return null; } OnmsMonitoringSystem distPoller = onmsEvent.getDistPoller(); if ( distPoller == null ) { return null; } String location = distPoller.getLocation(); if ( location == null ) { return null; } return location; }
private String alarmDistPollerLocation(OnmsAlarm onmsAlarm) { if ( onmsAlarm == null ) { return null; } OnmsMonitoringSystem distPoller = onmsAlarm.getDistPoller(); if ( distPoller == null ) { return null; } String location = distPoller.getLocation(); if ( location == null ) { return null; } return location; }
/** * <p>toString</p> * * @return a {@link java.lang.String} object. */ @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", getId()) .add("label", getLabel()) .add("location", getLocation()) .add("type", getType()) //.add("ipAddress", str(getIpAddress())) .toString(); } }
final OnmsMonitoringSystem monitoringSystem = monitoringSystemDao.get(event.getDistPoller()); if (monitoringSystem != null) { effectiveLocation = monitoringSystem.getLocation(); } else { LOG.info("newSuspect event references monitoring system with id {}, but this system was not found. Using the default location.",
final OnmsMonitoringSystem monitoringSystem = monitoringSystemDao.get(event.getDistPoller()); if (monitoringSystem != null) { effectiveLocation = monitoringSystem.getLocation(); } else { LOG.info("newSuspect event references monitoring system with id {}, but this system was not found. Using the default location.",