private void readRegularRecord(final ByteBuffer buffer) { final long registryId = buffer.getLong(); final int classId = buffer.getInt(); final long loggingTimestamp = buffer.getLong(); final ReaderRegistry<String> stringRegistry = this.getStringRegistry(registryId); try { final String recordClassName = stringRegistry.get(classId); final IRecordFactory<? extends IMonitoringRecord> recordFactory = this.cachedRecordFactoryCatalog.get(recordClassName); final IMonitoringRecord record = recordFactory.create(BinaryValueDeserializer.create(buffer, stringRegistry)); record.setLoggingTimestamp(loggingTimestamp); this.reader.deliverRecord(record); } catch (final RecordInstantiationException e) { LOGGER.error("Error instantiating record", e); } }
private void readRegularRecord(final ByteBuffer buffer) { final long registryId = buffer.getLong(); final int classId = buffer.getInt(); final long loggingTimestamp = buffer.getLong(); final ILookup<String> stringRegistry = this.getStringRegistry(registryId); try { final String recordClassName = stringRegistry.get(classId); final IRecordFactory<? extends IMonitoringRecord> recordFactory = this.cachedRecordFactoryCatalog.get(recordClassName); final IMonitoringRecord record = recordFactory.create(DefaultValueDeserializer.create(buffer, stringRegistry)); record.setLoggingTimestamp(loggingTimestamp); this.reader.deliverRecord(record); } catch (final RecordInstantiationException e) { LOG.error("Error instantiating record", e); } }