org.apache.archiva.rest.api.model
Class CacheEntry
java.lang.Object
org.apache.archiva.rest.api.model.CacheEntry
- All Implemented Interfaces:
- Serializable, Comparable
public class CacheEntry
- extends Object
- implements Serializable, Comparable
- Since:
- 1.4-M3
- Author:
- Olivier Lamy
- See Also:
- Serialized Form
CacheEntry
public CacheEntry()
CacheEntry
public CacheEntry(String key,
long size,
long cacheHits,
long cacheMiss,
String cacheHitRate,
long inMemorySize)
getKey
public String getKey()
setKey
public void setKey(String key)
getSize
public long getSize()
setSize
public void setSize(long size)
getCacheHits
public long getCacheHits()
setCacheHits
public void setCacheHits(long cacheHits)
getCacheMiss
public long getCacheMiss()
setCacheMiss
public void setCacheMiss(long cacheMiss)
getCacheHitRate
public String getCacheHitRate()
setCacheHitRate
public void setCacheHitRate(String cacheHitRate)
getInMemorySize
public long getInMemorySize()
- Returns:
- cache size in kb
setInMemorySize
public void setInMemorySize(long inMemorySize)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.