uk.ac.ic.doc.automed.qproc.cache
Interface CachePolicy
- All Known Implementing Classes:
- CachePolicy2, CachePolicy3, DefaultCachePolicy
public interface CachePolicy
CachePolicy.java
- Author:
- Duc M Le dmle@doc.ic.ac.uk
|
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 |
USE_CACHE_ONLY
static final int USE_CACHE_ONLY
- See Also:
- Constant Field Values
PREFER_CACHE_RESULT
static final int PREFER_CACHE_RESULT
- See Also:
- Constant Field Values
PREFER_LIVE_DATA
static final int PREFER_LIVE_DATA
- See Also:
- Constant Field Values
DO_NOT_USE_CACHE
static final int DO_NOT_USE_CACHE
- See Also:
- Constant Field Values
CACHE_RESULT
static final int CACHE_RESULT
- See Also:
- Constant Field Values
USE_LIVE_DATA_ONLY
static final int USE_LIVE_DATA_ONLY
- See Also:
- Constant Field Values
AD_CHECK_CONTAINMENT
static final int AD_CHECK_CONTAINMENT
- See Also:
- Constant Field Values
AD_CHECK_CACHE_FIRST
static final int AD_CHECK_CACHE_FIRST
- See Also:
- Constant Field Values
AD_CHECK_CACHE_LAST
static final int AD_CHECK_CACHE_LAST
- See Also:
- Constant Field Values
CX_GUI
static final java.lang.String CX_GUI
- See Also:
- Constant Field Values
CX_QUERY_REFORMULATOR
static final java.lang.String CX_QUERY_REFORMULATOR
- See Also:
- Constant Field Values
CX_QUERY_OPTIMISER
static final java.lang.String CX_QUERY_OPTIMISER
- See Also:
- Constant Field Values
CX_QUERY_EVALUATOR
static final java.lang.String CX_QUERY_EVALUATOR
- See Also:
- Constant Field Values
CX_WRAPPER
static final java.lang.String CX_WRAPPER
- See Also:
- Constant Field Values
EV_BEFORE_EXECUTION
static final int EV_BEFORE_EXECUTION
- See Also:
- Constant Field Values
EV_AFTER_EXECUTION
static final int EV_AFTER_EXECUTION
- See Also:
- Constant Field Values
EV_FAIL_TO_COMMUNICATE
static final int EV_FAIL_TO_COMMUNICATE
- See Also:
- Constant Field Values
EV_SOURCE_SCHEMA_NOT_AVAILABLE
static final int EV_SOURCE_SCHEMA_NOT_AVAILABLE
- See Also:
- Constant Field Values
EV_REMOTE_PEER_NOT_AVAILABLE
static final int EV_REMOTE_PEER_NOT_AVAILABLE
- See Also:
- Constant Field Values
evaluateAction
int evaluateAction(java.lang.String context,
int eventType,
QueryProcessorConfiguration qpc)
- Evalute a set of of conditions to produce the appropriate cache actions
- Parameters:
context - 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
- Returns:
- int the action code (see the public constants of this class)
getName
java.lang.String getName()
- Return a default name of a cache policy