|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.util.AdminCacheInfo.CacheWrapper
public static class AdminCacheInfo.CacheWrapper
A simple class which wraps a standard Jive cache object. This class provides a convenience method to get its size in bytes and in megs for a specified preset.
Constructor Summary | |
---|---|
AdminCacheInfo.CacheWrapper(Cache cache,
int smallSize,
int mediumSize,
int largeSize)
Sizes are in K for convenience. |
Method Summary | |
---|---|
Cache |
getCache()
Returns the wrapped cache. |
int |
getSize(int preset)
Returns the size of this cache in the specified preset in bytes. |
double |
getSizeInMB(int preset)
Returns the size of this cache in the specified preset in MB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminCacheInfo.CacheWrapper(Cache cache, int smallSize, int mediumSize, int largeSize)
cache
- smallSize
- mediumSize
- largeSize
- Method Detail |
---|
public Cache getCache()
public int getSize(int preset)
public double getSizeInMB(int preset)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |