|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.eval.prefetch.lib.PrefetchCacheImpl
Constructor Summary | |
PrefetchCacheImpl()
|
|
PrefetchCacheImpl(Logger logger)
|
Method Summary | |
PrefetchBuffer |
createPrefetchBuffer(java.lang.Object cat,
java.lang.Object ctxt,
int indexpos)
Allocates a prefetched buffer for the object category and the connection context in order to register prefetched tuples. |
PrefetchBuffer |
createPrefetchBuffer(java.lang.Object cat,
java.lang.Object ctxt,
int indexpos,
boolean multithread)
Allocates a prefetched buffer for the object category and the connection context in order to register prefetched tuples. |
Logger |
getLogger()
|
Tuple |
getPrefetchTuple(java.lang.Object index,
java.lang.Object cat,
java.lang.Object ctxt)
Retrieves the prefetched tuple from this cache associated with this index information, within the given caching context. |
void |
invalidatePrefetchBuffer(java.lang.Object ctxt)
Invalidates all the prefetched tuples that are associated with the given caching connection context. |
protected static java.lang.String |
printTuple(Tuple t)
|
void |
setLogger(Logger logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrefetchCacheImpl()
public PrefetchCacheImpl(Logger logger)
Method Detail |
public Logger getLogger()
public void setLogger(Logger logger)
public Tuple getPrefetchTuple(java.lang.Object index, java.lang.Object cat, java.lang.Object ctxt) throws MedorException
PrefetchCache
getPrefetchTuple
in interface PrefetchCache
index
- The index that allows the yielded prefetched data item to be
identified into the cache.cat
- The category (e.g., class) to which the objects, that can be
built using the prefetched data, belong to.ctxt
- The caching context within which the data has been
prefetched.
MedorException
public void invalidatePrefetchBuffer(java.lang.Object ctxt)
PrefetchCache
invalidatePrefetchBuffer
in interface PrefetchCache
ctxt
- The invalid caching context.public PrefetchBuffer createPrefetchBuffer(java.lang.Object cat, java.lang.Object ctxt, int indexpos) throws MedorException
PrefetchCache
createPrefetchBuffer
in interface PrefetchCache
cat
- The associated object category.ctxt
- The associated caching context.indexpos
- The position of the index field within the prefetched
tuples.
MedorException
public PrefetchBuffer createPrefetchBuffer(java.lang.Object cat, java.lang.Object ctxt, int indexpos, boolean multithread) throws MedorException
PrefetchCache
createPrefetchBuffer
in interface PrefetchCache
cat
- The associated object category.ctxt
- The associated caching context.indexpos
- The position of the index field within the prefetchedmultithread
- indicates if the context is used by several threads
MedorException
protected static java.lang.String printTuple(Tuple t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |