public class CacheRegistration extends java.lang.Object implements ICacheRegistration
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR |
| Constructor and Description |
|---|
CacheRegistration(ICacheMonitor cacheMonitor,
ICache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
elementCached(int elementSize) |
void |
elementEvicted(int elementSize) |
void |
elementReconstructed(long reconstructionTime) |
long |
getAverageElementSize() |
ICache |
getCache() |
ICacheMonitor |
getCacheMonitor() |
long |
getCacheSize() |
int |
getElementCount() |
long |
getReconstructionCost() |
protected float |
getReconstructionCostDecayFactor() |
boolean |
isDisposed() |
public static final float DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR
public CacheRegistration(ICacheMonitor cacheMonitor, ICache cache)
public void dispose()
dispose in interface ICacheRegistrationpublic boolean isDisposed()
isDisposed in interface ICacheProbepublic ICacheMonitor getCacheMonitor()
getCacheMonitor in interface ICacheRegistrationpublic ICache getCache()
getCache in interface ICacheRegistrationpublic int getElementCount()
getElementCount in interface ICacheProbepublic long getCacheSize()
getCacheSize in interface ICacheProbepublic long getAverageElementSize()
getAverageElementSize in interface ICacheProbepublic long getReconstructionCost()
getReconstructionCost in interface ICacheProbepublic void elementCached(int elementSize)
elementCached in interface ICacheProbepublic void elementEvicted(int elementSize)
elementEvicted in interface ICacheProbepublic void elementReconstructed(long reconstructionTime)
elementReconstructed in interface ICacheProbeprotected float getReconstructionCostDecayFactor()
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html