|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.qproc.cache.DefaultCachePolicy
uk.ac.ic.doc.automed.qproc.cache.CachePolicy3
public class CachePolicy3
CachePolicy3.java Only use the case, do not cache at GUI
| Field Summary | |
|---|---|
static int |
DEF_WRAPPER_ACTION
|
| Fields inherited from interface uk.ac.ic.doc.automed.qproc.cache.CachePolicy |
|---|
AD_CHECK_CACHE_FIRST, AD_CHECK_CACHE_LAST, AD_CHECK_CONTAINMENT, CACHE_RESULT, CX_GUI, CX_QUERY_EVALUATOR, CX_QUERY_OPTIMISER, CX_QUERY_REFORMULATOR, CX_WRAPPER, DO_NOT_USE_CACHE, EV_AFTER_EXECUTION, EV_BEFORE_EXECUTION, EV_FAIL_TO_COMMUNICATE, EV_REMOTE_PEER_NOT_AVAILABLE, EV_SOURCE_SCHEMA_NOT_AVAILABLE, PREFER_CACHE_RESULT, PREFER_LIVE_DATA, USE_CACHE_ONLY, USE_LIVE_DATA_ONLY |
| Constructor Summary | |
|---|---|
CachePolicy3()
Creates a new instance of CachePolicy |
|
| Method Summary | |
|---|---|
int |
evaluateAction(java.lang.String context,
int eventType,
QueryProcessorConfiguration qpc)
Evalute a set of of conditions to produce the appropriate cache actions |
java.lang.String |
getName()
Return a default name of a cache policy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEF_WRAPPER_ACTION
| Constructor Detail |
|---|
public CachePolicy3()
| Method Detail |
|---|
public int evaluateAction(java.lang.String context,
int eventType,
QueryProcessorConfiguration qpc)
evaluateAction in interface CachePolicyevaluateAction in class DefaultCachePolicycontext - The context at which the a cache action is to be producedeventType - The event (in the specified context) which desires a cache actionqpc - the QueryProcessorConfiguration class which provides
user-specified parameters for the evaluation
public java.lang.String getName()
CachePolicy
getName in interface CachePolicygetName in class DefaultCachePolicy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||