|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.PageSourcePool
public final class PageSourcePool
pool to handle pages
Constructor Summary | |
---|---|
PageSourcePool()
constructor of the class |
Method Summary | |
---|---|
void |
clear()
|
void |
clearPages(ClassLoader cl)
remove all Page from Pool using this classloader |
void |
clearUnused(ConfigImpl config)
clear unused pages from page pool |
boolean |
exists(Object key)
returns if page object exists |
int |
getMaxSize()
|
PageSource |
getPageSource(Object key,
boolean updateAccesTime)
return pages matching to key |
boolean |
isEmpty()
|
Object[] |
keys()
|
boolean |
remove(Object key)
removes a page from the page pool |
void |
setPage(Object key,
PageSource ps)
sts a page object to the page pool |
int |
size()
|
long |
sizeOf()
return the size of the object |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageSourcePool()
Method Detail |
---|
public PageSource getPageSource(Object key, boolean updateAccesTime)
key
- key for the pageupdateAccesTime
- define if do update access time
public void setPage(Object key, PageSource ps)
key
- key reference to store page objectps
- pagesource to storepublic boolean exists(Object key)
key
- key reference to a page object
public Object[] keys()
public boolean remove(Object key)
key
- key reference to page object
public int size()
public boolean isEmpty()
public void clearUnused(ConfigImpl config)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public void clearPages(ClassLoader cl)
cl
- public void clear()
public int getMaxSize()
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |