|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is management-related. Application code should not use this interface. Further, this interface is intended to be used by service tuning through Ping provided tools. This is the first draft for the this interface and it is likely to evolve.
Field Summary | |
static int |
NO_LIMIT
|
Method Summary | |
java.lang.String |
getAutoCleanSize()
|
java.lang.String |
getAutoCleanThreshold()
|
java.util.Collection |
getCurrentEntryIdentifiers()
|
int |
getCurrentMemorySize()
|
int |
getCurrentSize()
|
int |
getMaxObjects()
This method retrieves the maximum number of objects to be held by the cache. |
int |
getMemorySize()
This method returns the maximum main-memory size allocated to the cache. |
void |
setAutoCleanSize(java.lang.String size)
Assignes the number of element which can be removed when the cache is full. |
void |
setAutoCleanThreshold(java.lang.String size)
Assignes the cache size value since the cache try to decrease the number of entries. |
void |
setMaxObjects(int size)
This method allows to set the maximum number of objects to be held by the cache manager. |
void |
setMemorySize(int size)
This method allows to set the maximum main-memory size allocated to the cache. |
Field Detail |
public static final int NO_LIMIT
Method Detail |
public void setMaxObjects(int size) throws java.lang.IllegalArgumentException, CacheException
size
- The maximum number of objects to be held in cache.
(It must be a positive number).
java.lang.IllegalArgumentException
- if the size is invalid (e.g. negative).
CacheException
- if it is not possible to reduce the cache size
because all entries are fixed.public int getMaxObjects()
public void setMemorySize(int size) throws java.lang.IllegalArgumentException
size
- The maximum memory size.
(It must be a positive number).
java.lang.IllegalArgumentException
- if the size is invalid (e.g. negative).public int getMemorySize()
public void setAutoCleanSize(java.lang.String size)
public java.lang.String getAutoCleanSize()
public void setAutoCleanThreshold(java.lang.String size)
public java.lang.String getAutoCleanThreshold()
public int getCurrentSize()
public int getCurrentMemorySize()
public java.util.Collection getCurrentEntryIdentifiers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |