当前位置: 首页>>代码示例>>Java>>正文


Java CacheException.printStackTrace方法代码示例

本文整理汇总了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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:19,代码来源:VfsCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:19,代码来源:TemplateTagCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:24,代码来源:NodeCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:19,代码来源:ContentModelCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:27,代码来源:ContentModelCache.java

示例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;
		}
		
	}
 
开发者ID:mgarber,项目名称:scriptureV2,代码行数:17,代码来源:JCSCache.java

示例7: JCSCache

import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public JCSCache() {
	try {
		cache = JCS.getInstance("OUR_REGION");
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:davy-zhang,项目名称:CodeForBlog,代码行数:8,代码来源:JCSCache.java

示例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();
	}
}
 
开发者ID:davy-zhang,项目名称:CodeForBlog,代码行数:9,代码来源:JCSCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:16,代码来源:BadwordsCache.java

示例10: remove

import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void remove(){
	try {
		badwordsCache.clear();
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:8,代码来源:BadwordsCache.java

示例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();
	}
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:8,代码来源:VfsCache.java

示例12: clearAll

import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void clearAll(){
	try {
		psnCache.remove(ALL_KEY);
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:8,代码来源:PsnCache.java

示例13: clear

import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void clear(){
	try {
		tplTagCache.remove("all");
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:8,代码来源:TemplateTagCache.java

示例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;
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:16,代码来源:KeywordsCache.java

示例15: remove

import org.apache.jcs.access.exception.CacheException; //导入方法依赖的package包/类
public static void remove(){
	try {
		keywordsCache.clear();
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:juweiping,项目名称:ocms,代码行数:8,代码来源:KeywordsCache.java


注:本文中的org.apache.jcs.access.exception.CacheException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。