/** * Passes the monitoring record to the registered pipe reader. * * @param monitoringRecord * The monitoring record to write into the pipe. * * @return true on success; false otherwise. */ public boolean writeMonitoringRecord(final IMonitoringRecord monitoringRecord) { if (this.closed) { LOGGER.error("trying to write to closed pipe"); return false; } if (this.pipeReader == null) { LOGGER.error("pipeReader is null, i.e., no pipe reader has been registered."); return false; } return this.pipeReader.newMonitoringRecord(monitoringRecord); }
/** * Passes the monitoring record to the registered pipe reader. * * @param monitoringRecord * The monitoring record to write into the pipe. * * @return true on success; false otherwise. */ public boolean writeMonitoringRecord(final IMonitoringRecord monitoringRecord) { if (this.closed) { LOG.error("trying to write to closed pipe"); return false; } if (this.pipeReader == null) { LOG.error("pipeReader is null, i.e., no pipe reader has been registered."); return false; } return this.pipeReader.newMonitoringRecord(monitoringRecord); }