org.apache.archiva.rest.api.model
Class CacheEntry

java.lang.Object
  extended by 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

Field Summary
private  String cacheHitRate
           
private  long cacheHits
           
private  long cacheMiss
           
private  long inMemorySize
           
private  String key
           
private  long size
           
 
Constructor Summary
CacheEntry()
           
CacheEntry(String key, long size, long cacheHits, long cacheMiss, String cacheHitRate, long inMemorySize)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String getCacheHitRate()
           
 long getCacheHits()
           
 long getCacheMiss()
           
 long getInMemorySize()
           
 String getKey()
           
 long getSize()
           
 int hashCode()
           
 void setCacheHitRate(String cacheHitRate)
           
 void setCacheHits(long cacheHits)
           
 void setCacheMiss(long cacheMiss)
           
 void setInMemorySize(long inMemorySize)
           
 void setKey(String key)
           
 void setSize(long size)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

private String key

size

private long size

cacheHits

private long cacheHits

cacheMiss

private long cacheMiss

cacheHitRate

private String cacheHitRate

inMemorySize

private long inMemorySize
Constructor Detail

CacheEntry

public CacheEntry()

CacheEntry

public CacheEntry(String key,
                  long size,
                  long cacheHits,
                  long cacheMiss,
                  String cacheHitRate,
                  long inMemorySize)
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.