|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.mdex.cache.NaiveEternalCacheManager
public class NaiveEternalCacheManager
EXPERIMENTAL AND UNSUPPORTED!!!! This cache manager uses ehcache to store query results for as long as possible. Configure ehcache using Liferay's configuration files. This class is GUARANTEED to return incorrect results in the face of data updates to the MDEX Engine. Furthermore, due to the toJSON/toXML methods required to generate a cache key, this manager is expensive and slow. Finally, since MDEX Engine queries are extremely varied, this class is likely to be a resource hog, to the point of hurting overall performance of your server. This class is provided as a proof of concept only.
Constructor Summary | |
---|---|
NaiveEternalCacheManager()
|
Method Summary | |
---|---|
void |
cacheResults(com.endeca.mdex.conversation.ConversationPort port,
com.endeca.mdex.conversation.Request query,
com.endeca.mdex.conversation.Results results)
Put results into the cache for MDEX 7 queries |
void |
cacheResults(com.endeca.navigation.HttpENEConnection connection,
com.endeca.navigation.ENEQuery query,
com.endeca.navigation.ENEQueryResults results)
Put results into the cache for MDEX 6 queries |
com.endeca.mdex.conversation.Results |
getCachedResults(com.endeca.mdex.conversation.ConversationPort port,
com.endeca.mdex.conversation.Request query)
Get the cached version of results for MDEX 7 queries |
com.endeca.navigation.ENEQueryResults |
getCachedResults(com.endeca.navigation.HttpENEConnection connection,
com.endeca.navigation.ENEQuery query)
Get the cached version of results for MDEX 6 queries |
boolean |
isQueryCached(com.endeca.mdex.conversation.ConversationPort port,
com.endeca.mdex.conversation.Request query)
|
boolean |
isQueryCached(com.endeca.navigation.HttpENEConnection connection,
com.endeca.navigation.ENEQuery query)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NaiveEternalCacheManager()
Method Detail |
---|
public boolean isQueryCached(com.endeca.navigation.HttpENEConnection connection, com.endeca.navigation.ENEQuery query)
public com.endeca.navigation.ENEQueryResults getCachedResults(com.endeca.navigation.HttpENEConnection connection, com.endeca.navigation.ENEQuery query)
MDEXCacheManager
getCachedResults
in interface MDEXCacheManager
public void cacheResults(com.endeca.navigation.HttpENEConnection connection, com.endeca.navigation.ENEQuery query, com.endeca.navigation.ENEQueryResults results)
MDEXCacheManager
cacheResults
in interface MDEXCacheManager
public boolean isQueryCached(com.endeca.mdex.conversation.ConversationPort port, com.endeca.mdex.conversation.Request query)
public com.endeca.mdex.conversation.Results getCachedResults(com.endeca.mdex.conversation.ConversationPort port, com.endeca.mdex.conversation.Request query)
MDEXCacheManager
getCachedResults
in interface MDEXCacheManager
public void cacheResults(com.endeca.mdex.conversation.ConversationPort port, com.endeca.mdex.conversation.Request query, com.endeca.mdex.conversation.Results results)
MDEXCacheManager
cacheResults
in interface MDEXCacheManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |