/** * Handles the given raw data for a registry record. * * @param buffer * Byte buffer containing the raw data for the record */ protected void handleRegistryRecord(final ByteBuffer buffer) { this.registryRecordHandler.enqueueRegistryRecord(buffer); }
private AbstractStringRegistryReaderPlugin(final Configuration configuration, final IProjectContext projectContext, final long cacheExpirationDuration, final TimeUnit cacheExpirationTimeUnit) { super(configuration, projectContext); this.stringRegistryLookup = this.createCache(cacheExpirationDuration, cacheExpirationTimeUnit); }
/** * This method sends a given records directly to the output port. * * @param rec * The new record object. * @return true if and only if the record has been delivered. */ @Override public boolean newMonitoringRecord(final IMonitoringRecord rec) { return super.deliver(OUTPUT_PORT_NAME_RECORDS, rec); }
private ILookup<String> getStringRegistry(final long registryId) { return this.stringRegistryCache.getOrCreateRegistry(registryId); }
/** * Handles the given raw data for a regular record. * * @param buffer * Byte buffer containing the raw data for the record */ protected void handleRegularRecord(final ByteBuffer buffer) { this.regularRecordHandler.enqueueRegularRecord(buffer); }
/** * Creates a new registry cache using the given cache duration configuration. * * @param expirationDuration * The duration until a registry is evicted * @param expirationTimeUnit * The time unit for the expiration duration */ public StringRegistryCache(final long expirationDuration, final TimeUnit expirationTimeUnit) { this.cache = this.createCache(expirationDuration, expirationTimeUnit); }
/** * Creates the cache to be used for storing string registries. This method can be overriden * to use a particular cache implementation. * * @param expirationDuration * The duration until a cache entry expires * @param expirationTimeUnit * The time unit for the cache expiration * @return An appropriate cache instance */ protected StringRegistryCache createCache(final long expirationDuration, final TimeUnit expirationTimeUnit) { return new StringRegistryCache(expirationDuration, expirationTimeUnit); }
/** * This method sends a given records directly to the output port. * * @param rec * The new record object. * @return true if and only if the record has been delivered. */ @Override public boolean newMonitoringRecord(final IMonitoringRecord rec) { return super.deliver(OUTPUT_PORT_NAME_RECORDS, rec); }
private ILookup<String> getStringRegistry(final long registryId) { return this.stringRegistryCache.getOrCreateRegistry(registryId); }
/** * Handles the given raw data for a registry record. * * @param buffer * Byte buffer containing the raw data for the record */ protected void handleRegistryRecord(final ByteBuffer buffer) { this.registryRecordHandler.enqueueRegistryRecord(buffer); }
private AbstractStringRegistryReaderPlugin(final Configuration configuration, final IProjectContext projectContext, final long cacheExpirationDuration, final TimeUnit cacheExpirationTimeUnit) { super(configuration, projectContext); this.stringRegistryLookup = this.createCache(cacheExpirationDuration, cacheExpirationTimeUnit); }
/** * Handles the given raw data for a regular record. * * @param buffer * Byte buffer containing the raw data for the record */ protected void handleRegularRecord(final ByteBuffer buffer) { this.regularRecordHandler.enqueueRegularRecord(buffer); }
/** * Creates a new registry cache using the given cache duration configuration. * * @param expirationDuration * The duration until a registry is evicted * @param expirationTimeUnit * The time unit for the expiration duration */ public StringRegistryCache(final long expirationDuration, final TimeUnit expirationTimeUnit) { this.cache = this.createCache(expirationDuration, expirationTimeUnit); }
/** * Creates the cache to be used for storing string registries. This method can be overriden * to use a particular cache implementation. * * @param expirationDuration * The duration until a cache entry expires * @param expirationTimeUnit * The time unit for the cache expiration * @return An appropriate cache instance */ protected StringRegistryCache createCache(final long expirationDuration, final TimeUnit expirationTimeUnit) { return new StringRegistryCache(expirationDuration, expirationTimeUnit); }
@Override public void onRecordReceived(final IMonitoringRecord record) { super.deliver(OUTPUT_PORT_NAME_RECORDS, record); }
private ReaderRegistry<String> getStringRegistry(final long registryId) { return this.stringRegistryCache.getOrCreateRegistry(registryId); }
@Override public void onRecordReceived(final IMonitoringRecord record) { super.deliver(OUTPUT_PORT_NAME_RECORDS, record); }
final boolean deliverIndirect(final String outputPortName, final Object data) { // NOPMD (package visible for inner class) return super.deliver(outputPortName, data); }
final boolean deliverIndirect(final String outputPortName, final Object data) { // NOPMD (package visible for inner class) return super.deliver(outputPortName, data); }
final boolean deliverIndirect(final String outputPortName, final Object data) { // NOPMD (package visible for inner class) return super.deliver(outputPortName, data); }