|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.cache.jcs.GlueJCSCacheManager
public class GlueJCSCacheManager
ij½¬¿¡ °ü·ÃµÈ ¼ºñ½º¸¦ Á¦°øÇϱâ À§ÇØ JCS¸¦ »ç¿ëÇØ ±¸ÇöÇÔ. ij½¬ ¿µ¿ªº°·Î ij½¬´ë»ó ¿ÀºêÁ§Æ®¸¦ ÀúÀå/ÃßÃâ/»èÁ¦ ¿ÀÆÛ·¹À̼ÇÀ» Á¦°øÇÑ´Ù. ¶ÇÇÑ Àüü ij½¬¿µ¿ªÀ» ÃʱâÈÇÏ´Â ¿ÀÆÛ·¹À̼ǵµ Á¦°øÇÑ´Ù. Apache Project ÀÇ Java Object
Cache ¿ÀǼҽº ij½¬ ÇÁ·¹ÀÓ¿öÅ©¸¦ »ç¿ëÇÏ¿© ±¸ÇöµÊ. GlueJCSCacheManager
¿ÀºêÁ§Æ®¸¦ ½Ì±ÛÅÏÀ¸·Î »ç¿ëÇϵµ·Ï ±ÇÀåÇÔ. Spring Framework ¿¡¼ Á¦°øÇÏ´Â Dependency Injection ÆÐÅÏ
±ÇÀå. ½ÇÇàÇϱâ À§Çؼ´Â cache.ccf ÆÄÀÏÀ» Ŭ·¡½ºÆнº ·çÆ®¿¡ À§Ä¡ ½ÃÄѾßÇÑ´Ù.
bean property : ¾øÀ½ [sample] »ç¿ë ¿¹cache.ccf ÆÄÀÏ ³»¿ë # DEFAULT CACHE REGION # sets the default aux value for any non configured caches jcs.default= jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=1000000 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=false jcs.default.elementattributes.MaxLifeSeconds=-1 jcs.default.elementattributes.IdleTime=1 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=false jcs.default.elementattributes.IsLateral=true
Field Summary | |
---|---|
protected GlueJCSCacheHolder |
cacheHolder
ij½¬ ¿µ¿ªÀ» °ü¸®Çϴ Ȧ´õ (singleton object) |
protected org.slf4j.Logger |
logger
logger |
Constructor Summary | |
---|---|
GlueJCSCacheManager()
|
Method Summary | ||
---|---|---|
void |
afterPropertiesSet()
|
|
void |
clear()
µðÆúÆ® ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
clear(String regionName)
ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
destroy()
|
|
Object |
getCacheObject(Object cacheKey)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
Class<T> valueClass)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
Object |
getCacheObject(Object cacheKey,
String regionName)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
String regionName,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
Object |
getCacheObject(Object cacheKey,
String regionName,
GlueCacheLoader loader)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
|
getCacheObject(Object cacheKey,
String regionName,
GlueCacheLoader loader,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ. |
|
boolean |
isPresent(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ |
|
boolean |
isPresent(Object cacheKey,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ |
|
void |
putCacheObject(Object cacheKey,
Object cacheObject)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ |
|
void |
putCacheObject(Object cacheKey,
Object cacheObject,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ |
|
void |
removeCacheObject(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
|
void |
removeCacheObject(Object cacheKey,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
protected GlueJCSCacheHolder cacheHolder
Constructor Detail |
---|
public GlueJCSCacheManager()
Method Detail |
---|
public Object getCacheObject(Object cacheKey)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°
public <T> T getCacheObject(Object cacheKey, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°valueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public Object getCacheObject(Object cacheKey, String regionName)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸í
public <T> T getCacheObject(Object cacheKey, String regionName, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ívalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public Object getCacheObject(Object cacheKey, String regionName, GlueCacheLoader loader)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õ
public <T> T getCacheObject(Object cacheKey, String regionName, GlueCacheLoader loader, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õvalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½º
public void putCacheObject(Object cacheKey, Object cacheObject)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®public void putCacheObject(Object cacheKey, Object cacheObject, String regionName)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®regionName
- ij½¬ ¿µ¿ª¸ípublic boolean isPresent(Object cacheKey)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°
public boolean isPresent(Object cacheKey, String regionName)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸í
public void removeCacheObject(Object cacheKey)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public void removeCacheObject(Object cacheKey, String regionName)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ípublic void clear()
GlueCacheManager
clear
in interface GlueCacheManager
public void clear(String regionName)
GlueCacheManager
clear
in interface GlueCacheManager
regionName
- ij½¬ ¿µ¿ª¸ípublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |