Commit 9749278e by 胡青青

feat:[none]添加热点key采集日志方法

parent 57964442
...@@ -51,7 +51,7 @@ public class JedisClusterAspect { ...@@ -51,7 +51,7 @@ public class JedisClusterAspect {
BufferedWriter out = null; BufferedWriter out = null;
try { try {
Thread.sleep(60*60 * 1000); Thread.sleep(60*60 * 1000);
tempMap = solfDistributedMap; tempMap.putAll(solfDistributedMap);
solfDistributedMap.clear(); solfDistributedMap.clear();
String fileName = "hotkey" + DateUtils.getYmdHmsTime() + ".log"; String fileName = "hotkey" + DateUtils.getYmdHmsTime() + ".log";
out = new BufferedWriter(new FileWriter(path + fileName)); out = new BufferedWriter(new FileWriter(path + fileName));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment