Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.util
Class AdminCacheInfo.CacheWrapper

java.lang.Object
  extended by com.jivesoftware.forum.util.AdminCacheInfo.CacheWrapper
Enclosing class:
AdminCacheInfo

public static class AdminCacheInfo.CacheWrapper
extends java.lang.Object

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

AdminCacheInfo.CacheWrapper

public AdminCacheInfo.CacheWrapper(Cache cache,
                                   int smallSize,
                                   int mediumSize,
                                   int largeSize)
Sizes are in K for convenience. The getXSize() methods return sizes in bytes.

Parameters:
cache -
smallSize -
mediumSize -
largeSize -
Method Detail

getCache

public Cache getCache()
Returns the wrapped cache.

Returns:
the wrapped cache.

getSize

public int getSize(int preset)
Returns the size of this cache in the specified preset in bytes.


getSizeInMB

public double getSizeInMB(int preset)
Returns the size of this cache in the specified preset in MB.


Jive Forums Project Page

Copyright © 1999-2006 Jive Software.