public class IndicesFieldDataCacheListener extends Object implements IndexFieldDataCache.Listener
IndexFieldDataCache.Listener
implementation that updates indices (node) level statistics / service about
field data entries being loaded and unloaded.
Currently it only decrements the memory used in the CircuitBreakerService
.Constructor and Description |
---|
IndicesFieldDataCacheListener(CircuitBreakerService circuitBreakerService) |
Modifier and Type | Method and Description |
---|---|
void |
onLoad(FieldMapper.Names fieldNames,
FieldDataType fieldDataType,
org.apache.lucene.util.Accountable fieldData) |
void |
onUnload(FieldMapper.Names fieldNames,
FieldDataType fieldDataType,
boolean wasEvicted,
long sizeInBytes) |
@Inject public IndicesFieldDataCacheListener(CircuitBreakerService circuitBreakerService)
public void onLoad(FieldMapper.Names fieldNames, FieldDataType fieldDataType, org.apache.lucene.util.Accountable fieldData)
onLoad
in interface IndexFieldDataCache.Listener
public void onUnload(FieldMapper.Names fieldNames, FieldDataType fieldDataType, boolean wasEvicted, long sizeInBytes)
onUnload
in interface IndexFieldDataCache.Listener
Copyright © 2009–2015. All rights reserved.