ITeye博客

2014 年文章归档

共 19 篇文章

AccessToken

package com.yulong.weixin.pojo; /** 微信通用接口凭证 @author yinqundi @date 2013-11-11 */ public class AccessToken { // 获取到的凭证 private String token; // 凭证有效时间,单位:秒 private int expiresIn; public String getToken() { return token; } public void setToken(String token) { this.token = token; } public int getExpi…

2014-11-13 09:23 · WeiXin

MemcachedClient

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-12 09:24 · memcached

NativeHandler

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-12 09:24 · memcached

NestedIOException

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-12 09:24 · memcached

SockIOPool

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-12 09:24 · memcached

TestAddMemcacheMemberAddress

package com.yulong.memcached; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import com.yulong.businessCache.UserCache; import com.yulong.businessCache.UserRushCache; import com.yulong.businessCache.vo.Address; public class Test…

2014-11-12 09:23 · memcached

TestDropMemcacheUser

package com.yulong.memcached; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import com.yulong.businessCache.UserCache; import com.yulong.businessCache.UserRushCache; import com.yulong.businessCache.vo.Address; public class Test…

2014-11-10 09:10 · memcached

MemcachedService

package com.yulong.memcached.service; import java.io.InputStream; import java.net.URL; import java.util.Date; import java.util.LinkedHashMap; import java.util.Map; import java.util.Properties; import org.apache.log4j.Logger; import com.danga.MemCached.MemCachedClient; import com.danga.MemCached.Soc…

2014-11-10 09:10 · memcached

MemcachedBench

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-10 09:09 · memcached

MemcachedTest

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-10 09:08 · memcached

TestMemcached

/** Copyright (c) 2008 Greg Whalin All rights reserved. * This library is free software; you can redistribute it and/or modify it under the terms of the BSD license * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH…

2014-11-10 09:08 · memcached

LucenePool

package com.yulong.lucene.core; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apache.lucene.index.CorruptIndexException; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.store.Directory; imp…

2014-11-07 11:36 · luence

LuceneContacts

package com.yulong.lucene.core; import net.teamhot.lucene.ThesaurusAnalyzer; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.cjk.CJKAnalyzer; import org.apache.lucene.analysis.cn.ChineseAnalyzer; import org.wltea.analyzer.lucene.IKAnalyzer; public class LuceneContacts …

2014-11-07 11:36 · luence

WriteLucene

package com.yulong.lucene.biz; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexWriter; import com.yulong.lucene.core.Lucen…

2014-11-07 11:35 · luence

SearchLuceneForCmsLog

package com.yulong.lucene.biz; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.log4j.Logger; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; …

2014-11-07 11:35

RebuildLucene

package com.yulong.lucene.biz; import java.io.IOException; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.CorruptIndexExceptio…

2014-11-07 11:32 · luence

MoveLuceneSmall

package com.yulong.lucene.biz; import java.io.File; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.store.Directory; import org.apache.lucene.store.FSDirectory; import com.yulong.lucene.core.LuceneContacts; import com.yulong.lucene.util.RequestUtil; /** LUCENE小文件移动到大文件中的任务调度 * …

2014-11-06 10:01 · luence

MoveLuceneRebuild

package com.yulong.lucene.biz; import java.io.File; import java.io.IOException; import org.apache.lucene.index.CorruptIndexException; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.store.Directory; import org.apache.lucene.store.FSDirectory; import com.yulong.lucene.core.Lucen…

2014-11-06 09:59 · luence

luence

@SuppressWarnings({ "unchecked", "deprecation" }) public static List SearchForContent(String indexPath, String keyword, int start, int max, String orderByField, String orderByType) throws Exception { List<Goods> goodsList = new ArrayList<Goods>(); String path = indexPath + "index"; IndexSearcher in…

2014-11-06 09:54 · luence