本文整理汇总了Java中org.apache.jcs.access.exception.CacheException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java CacheException.printStackTrace方法的具体用法?Java CacheException.printStackTrace怎么用?Java CacheException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jcs.access.exception.CacheException
的用法示例。
在下文中一共展示了CacheException.printStackTrace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAllFtpSetting
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static List<FtpSetting> getAllFtpSetting() {
Object obj = vfsCache.get(FTP_SETTING_CACHE);
if (obj == null) {
FtpSettingManager tplTagManager = (FtpSettingManager) ObjectLocator
.lookup("ftpSettingManager", CmsPlugin.PLUGIN_ID);
if (tplTagManager != null) {
obj=tplTagManager.getAllFtpSettings();
if(obj!=null){
try {
vfsCache.put(FTP_SETTING_CACHE, obj);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
}
return (List) obj;
}
示例2: getAllTags
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static List getAllTags() {
Object obj = tplTagCache.get("all");
if (obj == null) {
TemplateTagManager tplTagManager = (TemplateTagManager) ObjectLocator
.lookup("templateTagManager", CmsPlugin.PLUGIN_ID);
if (tplTagManager != null) {
obj=tplTagManager.getAllTags();
if(obj!=null){
try {
tplTagCache.put("all", obj);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
}
return (List) obj;
}
示例3: getAllNodes
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
/**
* 从缓存中获取所有结点
*
* @return
*/
public static List<Node> getAllNodes() {
Object obj = nodeCache.get("all");
if (obj == null) {
NodeDao nodeDao = (NodeDao) ObjectLocator.lookup("nodeDao",
CmsPlugin.PLUGIN_ID);
if (nodeDao != null) {
obj = nodeDao.getAllNodes();
if (obj != null) {
try {
nodeCache.put("all", obj);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
}
return (List) obj;
}
示例4: getAllContentTables
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static List getAllContentTables() {
Object obj = cmCache.get("all");
if (obj == null) {
ContentTableManager ctManager = (ContentTableManager) ObjectLocator
.lookup("contentTableManager", CmsPlugin.PLUGIN_ID);
if (ctManager != null) {
obj = ctManager.getAllContentTable();
if (obj != null) {
try {
cmCache.put("all", obj);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
}
return (List) obj;
}
示例5: getFieldsMap
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
/**
* 获得内容域Map对象
*
* @param alias
* @return
*/
public static Map<String, ContentField> getFieldsMap(String alias) {
Object rs = cmCache.get(alias + "-map");
if (rs == null) {
ContentTable ct = getContentTable(alias);
if (ct != null) {
Map<String, ContentField> fieldMap = new HashMap<String, ContentField>();
List<ContentField> fields = getContentFields(ct.getTableId());
for (ContentField field : fields) {
fieldMap.put(field.getFieldName(), field);
}
try {
cmCache.put(alias + "-map", fieldMap);
} catch (CacheException e) {
e.printStackTrace();
}
rs = fieldMap;
}
}
return (Map<String, ContentField>) rs;
}
示例6: query
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public FilteredIterator query(Annotation window, boolean fullyContained, CoordinateSpace cs) {
try {
CloseableIterator<AlignmentCount> iter = query(window, fullyContained);
// logger.info("In query for window:"+window.toBED());
FilteredIterator filtered=model.new FilteredIterator(iter, window, cs, fullyContained);
return filtered;
} catch (CacheException e) {
// TODO Auto-generated catch block
e.printStackTrace();
// FilteredIterator filtered = model.new FilteredIterator(new CloseableIterator(Collections.<AlignmentCount>emptyList().iterator()));
//TODO: FIX
return null;
}
}
示例7: JCSCache
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public JCSCache() {
try {
cache = JCS.getInstance("OUR_REGION");
} catch (CacheException e) {
e.printStackTrace();
}
}
示例8: put
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
@Override
public void put(K k, V v) {
try {
cache.put(k, v);
} catch (CacheException e) {
e.printStackTrace();
}
}
示例9: getAllBadwords
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static List<Badwords> getAllBadwords(String scope) {
List<Badwords> badwordList = (List<Badwords>) badwordsCache.get("badwords-"+scope);
if(badwordList==null){
BadwordsManager badwordsManager = getBadWordsManager();
if (badwordsManager != null) {
badwordList = badwordsManager.getBadwordsByScope(scope);
try {
badwordsCache.put("badwords-"+scope, badwordList);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
return badwordList;
}
示例10: remove
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void remove(){
try {
badwordsCache.clear();
} catch (CacheException e) {
e.printStackTrace();
}
}
示例11: clearFtpSetting
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void clearFtpSetting(){
try {
vfsCache.remove(FTP_SETTING_CACHE);
} catch (CacheException e) {
e.printStackTrace();
}
}
示例12: clearAll
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void clearAll(){
try {
psnCache.remove(ALL_KEY);
} catch (CacheException e) {
e.printStackTrace();
}
}
示例13: clear
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void clear(){
try {
tplTagCache.remove("all");
} catch (CacheException e) {
e.printStackTrace();
}
}
示例14: getAllKeywords
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static List<Keywords> getAllKeywords(String scope) {
List<Keywords> keywordList = (List<Keywords>) keywordsCache.get("keywords-"+scope);
if(keywordList==null){
KeywordsManager keywordsManager = getKeywordsManager();
if (keywordsManager != null) {
keywordList = keywordsManager.getKeywordsByScope(scope);
try {
keywordsCache.put("keywords-"+scope, keywordList);
} catch (CacheException e) {
e.printStackTrace();
}
}
}
return keywordList;
}
示例15: remove
import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void remove(){
try {
keywordsCache.clear();
} catch (CacheException e) {
e.printStackTrace();
}
}