一致性Hash简单实现

package com.whereta.model;

import java.util.Map;

/**
 * Vincent 创建于 2016/4/19.
 */
public interface IServer {
    /**
     * 获取服务器key
     *
     * @return
     */
    int getServerKey();

    /**
     * 将对象存入服务器,返回旧的数据
     *
     * @param k 对象key
     * @param v 对象
     *
     * @return
     */
    Object put(int k, Object v);

    /**
     * 根据key获取对象
     *
     * @param k
     *
     * @return
     */
    Object get(int k);

    /**
     * 移除对象
     *
     * @param k
     *
     * @return
     */
    Object remove(int k);

    /**
     * 清空服务器所有数据
     */
    void clear();

    /**
     * 获取对象存储集合
     *
     * @return
     */
    Object getDataMap();

    /**
     * 获取该服务器里对象key小于等于指定key的数据集合
     *
     * @param key
     *
     * @return
     */
    Map<Integer, Object> getLessThanEqualKey(int key);

    /**
     * 批量添加数据
     *
     * @param map
     */
    void putAll(Map<Integer, Object> map);

}
package com.whereta.model;

import com.alibaba.fastjson.JSON;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

/**
 * Vincent 创建于 2016/4/19.
 * 服务器对象
 */
public class DefaultServer implements IServer {

    private static final Log log= LogFactory.getLog(DefaultServer.class);

    /**
     * 服务器key
     */
    private int serverKey;

    public DefaultServer(int serverKey) {
        this.serverKey = serverKey;
        if(log.isInfoEnabled()){
            log.info("初始化服务器:"+serverKey);
        }
    }

    public Object getDataMap() {
        if(log.isDebugEnabled()){
            log.debug("获取数据存储集合:"+dataMap);
        }
        return dataMap;
    }

    private ConcurrentMap<Integer, Object> dataMap = new ConcurrentHashMap<Integer, Object>();

    public int getServerKey() {
        if(log.isDebugEnabled()){
            log.debug("获取服务器key:"+serverKey);
        }
        return serverKey;
    }

    public Object put(int k, Object v) {
        if(log.isDebugEnabled()){
            log.debug("存储数据:serverKey="+serverKey+" k="+k+" v="+v);
        }
        Object put = dataMap.put(k, v);
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
        return put;
    }

    public Object get(int k) {
        Object v = dataMap.get(k);

        if(log.isDebugEnabled()){
            log.debug("获取数据:serverKey="+ serverKey+" k="+k+" v="+v);
        }
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
        return v;
    }

    public Object remove(int k) {
        Object remove = dataMap.remove(k);
        if(log.isDebugEnabled()){
            log.debug("删除数据:serverKey="+serverKey+"  k="+k+" v="+remove);
        }
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
        return remove;
    }

    public void clear() {
        dataMap.clear();
        if(log.isDebugEnabled()){
            log.debug("清空数据:"+serverKey);
        }
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
    }

    public Map<Integer, Object> getLessThanEqualKey(int key) {

        Map<Integer, Object> map = new HashMap<Integer, Object>();

        Set<Integer> keySet = dataMap.keySet();
        if (keySet.isEmpty()) {
            return map;
        }
        for (Integer k : keySet) {
            if (k <= key) {
                map.put(k, dataMap.get(k));
            }
        }

        if(log.isDebugEnabled()){
            log.debug("serverKey="+serverKey+" 获取小于等于"+key+" 的数据集合是:"+map);
        }
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
        return map;
    }

    public void putAll(Map<Integer, Object> map) {
        if(log.isDebugEnabled()){
            log.debug("serverKey="+serverKey+" 批量存入数据:"+map);
        }
        dataMap.putAll(map);
        if(log.isDebugEnabled()){
            log.debug("服务器数据:"+this.toString());
        }
    }

    @Override
    public String toString() {
        return "DefaultServer{" +
                "serverKey=" + serverKey +
                ", dataMap=" + JSON.toJSONString(dataMap) +
                '}';
    }
}
package com.whereta.model;

/**
 * Vincent 创建于 2016/4/19.
 */
public interface IServerFactory {

    IServer createServer(int serverKey);

}
package com.whereta.model;

/**
 * Vincent 创建于 2016/4/19.
 */
public class DefaultServerFactory implements IServerFactory {

    public IServer createServer(int serverKey) {
        return new DefaultServer(serverKey);
    }
}
package com.whereta.utils;

import com.whereta.model.IServer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArraySet;

/**
 * Vincent 创建于 2016/4/19.
 */
public class DataUtil {

    private static final Log log = LogFactory.getLog(DataUtil.class);

    /**
     * 存储服务器节点的code
     */
    private static final CopyOnWriteArraySet<Integer> serverCodeSet = new CopyOnWriteArraySet();
    /**
     * Server存储集合
     */
    private static final ConcurrentMap<Integer, IServer> serverMap = new ConcurrentHashMap<Integer, IServer>();

    /**
     * 添加服务器
     *
     * @param server
     */
    public static IServer addServer(IServer server) {
        int serverKey = server.getServerKey();
        if (log.isDebugEnabled()) {
            log.debug("添加新的服务器:" + server);
        }
        //如果服务器已经存在,则不添加新的服务器
        IServer oldServer = serverMap.putIfAbsent(serverKey, server);
        if (log.isDebugEnabled()) {
            log.debug("是否存在旧的服务器:" + (oldServer != null));
            if (oldServer != null) {
                log.debug("旧服务器信息:" + oldServer);
            }
        }
        if (oldServer != null) {
            return oldServer;
        }
        //获取旧的数据服务器
        //譬如现有服务器code是45,55,60,100
        //新加服务器code是80,那先获取100的服务器,将该服务器里对象key<=80的对象取出来存入新的服务器
        IServer commonServer = getServer(serverKey+1);
        if (commonServer != null) {
            Map<Integer, Object> lessThanEqualKeyMap = commonServer.getLessThanEqualKey(serverKey);
            server.putAll(lessThanEqualKeyMap);
            Set<Integer> keySet = lessThanEqualKeyMap.keySet();
            for(Integer k:keySet){
                commonServer.remove(k);
            }
        }

        return oldServer;
    }

    /**
     * 删除服务器
     *
     * @param serverKey
     *
     * @return
     */
    public static IServer remove(int serverKey) {
        IServer oldServer = serverMap.remove(serverKey);
        if (log.isDebugEnabled()) {
            log.debug("是否存在旧的服务器:" + (oldServer != null));
            if (oldServer != null) {
                log.debug("旧服务器信息:" + oldServer);
            }
        }
        if (oldServer != null) {
            Object dataMap = oldServer.getDataMap();
            Map<Integer, Object> map = (Map<Integer, Object>) dataMap;
            //删除服务器时应该讲该服务器数据保存到下一个服务器里
            IServer commonServer = getServer(serverKey);
            commonServer.putAll(map);
        }


        return oldServer;
    }

    /**
     * 根据key获取server
     *
     * @param objectKey
     *
     * @return
     */
    public static IServer getServer(int objectKey) {
        if(log.isDebugEnabled()){
            log.debug("获取key="+objectKey);
        }
        Set<Integer> keySet = serverMap.keySet();
        if (log.isDebugEnabled()) {
            log.debug("服务器是否存在:" + (!keySet.isEmpty()));
        }
        if (keySet.isEmpty()) {
            return null;
        }

        List<Integer> keyList = new ArrayList<Integer>(keySet);
        Collections.sort(keyList);
        int size = keyList.size();
        if (log.isDebugEnabled()) {
            log.debug("服务器key信息:" + keyList);
        }

        Integer firstKey = keyList.get(0);
        Integer lastKey = keyList.get(size - 1);
        if (size == 1) {
            //如果只有一个服务器,则直接返回
            return serverMap.get(firstKey);
        }



        if (objectKey >= 0 && objectKey <= firstKey) {
            return serverMap.get(firstKey);
        }
        if (objectKey > lastKey) {
            return serverMap.get(firstKey);
        }

        for (int i = 0; i < size - 1; i++) {
            Integer e = keyList.get(i);
            Integer next = keyList.get(i + 1);
            if (objectKey > e && objectKey <= next) {
                return serverMap.get(next);
            }
        }

        return null;
    }
}
package com.whereta;

import com.alibaba.fastjson.JSON;
import com.whereta.model.DefaultServerFactory;
import com.whereta.model.IServer;
import com.whereta.model.IServerFactory;
import com.whereta.utils.DataUtil;

import java.util.Random;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

/**
 * Vincent 创建于 2016/4/19.
 */
public class Main {
    public static void main(String[] args) {
        final IServerFactory serverFactory = new DefaultServerFactory();

        final int[] serverArray = {100, 500, 2500, 5000, 25000, 40000, 50000};

        for (Integer i : serverArray) {
            IServer server = serverFactory.createServer(i);
            DataUtil.addServer(server);
        }

        Executor executor = Executors.newCachedThreadPool();

        executor.execute(new Runnable() {
            public void run() {
                Random random = new Random();
                while (true) {
                    int i = random.nextInt(50000);
                    try {
                        TimeUnit.SECONDS.sleep(1);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    IServer server = DataUtil.getServer(i);
                    System.out.println(JSON.toJSONString(server));
                    if (server != null)
                        server.put(i, new Object());
                }
            }
        });

        executor.execute(new Runnable() {
            public void run() {
                try {
                    TimeUnit.SECONDS.sleep(20);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                IServer server = serverFactory.createServer(35000);
                DataUtil.addServer(server);
                System.out.println("---------------------------");
                System.out.println("添加服务器成功");
                System.out.println(JSON.toJSONString(server));
                try {
                    TimeUnit.SECONDS.sleep(5);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                DataUtil.remove(25000);
                System.out.println(JSON.toJSONString(server));

                System.out.println("---------------------------");
                System.out.println("删除服务器成功");
            }
        });
    }
}
[framework] 2016-04-19 14:07:30,371 - com.whereta.model.DefaultServer -0    [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:100
[framework] 2016-04-19 14:07:30,374 - com.whereta.model.DefaultServer -3    [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:100
[framework] 2016-04-19 14:07:30,421 - com.whereta.utils.DataUtil -50   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=100, dataMap={}}
[framework] 2016-04-19 14:07:30,422 - com.whereta.utils.DataUtil -51   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,422 - com.whereta.utils.DataUtil -51   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=101
[framework] 2016-04-19 14:07:30,422 - com.whereta.utils.DataUtil -51   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100]
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=100 批量存入数据:{}
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=100, dataMap={}}
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:500
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:500
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=500, dataMap={}}
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=501
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500]
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=500 批量存入数据:{}
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=500, dataMap={}}
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:2500
[framework] 2016-04-19 14:07:30,423 - com.whereta.model.DefaultServer -52   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:2500
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=2500, dataMap={}}
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=2501
[framework] 2016-04-19 14:07:30,423 - com.whereta.utils.DataUtil -52   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500]
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=2500 批量存入数据:{}
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=2500, dataMap={}}
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:5000
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:5000
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=5000, dataMap={}}
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=5001
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000]
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=5000 批量存入数据:{}
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=5000, dataMap={}}
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:25000
[framework] 2016-04-19 14:07:30,424 - com.whereta.model.DefaultServer -53   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=25000, dataMap={}}
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=25001
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,424 - com.whereta.utils.DataUtil -53   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000]
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=25000 批量存入数据:{}
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={}}
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:40000
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=40000, dataMap={}}
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=40001
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000]
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=40000 批量存入数据:{}
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={}}
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] INFO  com.whereta.model.DefaultServer  - 初始化服务器:50000
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:50000
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=50000, dataMap={}}
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 获取key=50001
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:30,425 - com.whereta.utils.DataUtil -54   [main] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - serverKey=50000 批量存入数据:{}
[framework] 2016-04-19 14:07:30,425 - com.whereta.model.DefaultServer -54   [main] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=50000, dataMap={}}
[framework] 2016-04-19 14:07:31,429 - com.whereta.utils.DataUtil -1058 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=7677
[framework] 2016-04-19 14:07:31,429 - com.whereta.utils.DataUtil -1058 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:31,429 - com.whereta.utils.DataUtil -1058 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:31,487 - com.whereta.model.DefaultServer -1116 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{}
[framework] 2016-04-19 14:07:31,488 - com.whereta.model.DefaultServer -1117 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
{"dataMap":{},"serverKey":25000}
[framework] 2016-04-19 14:07:31,489 - com.whereta.model.DefaultServer -1118 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=25000 k=7677 v=java.lang.Object@35f5e42b
[framework] 2016-04-19 14:07:31,489 - com.whereta.model.DefaultServer -1118 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={7677:{}}}
[framework] 2016-04-19 14:07:32,490 - com.whereta.utils.DataUtil -2119 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=7395
[framework] 2016-04-19 14:07:32,490 - com.whereta.utils.DataUtil -2119 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:32,490 - com.whereta.utils.DataUtil -2119 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:32,490 - com.whereta.model.DefaultServer -2119 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{7677=java.lang.Object@35f5e42b}
[framework] 2016-04-19 14:07:32,491 - com.whereta.model.DefaultServer -2120 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
{"dataMap":{7677:{}},"serverKey":25000}
[framework] 2016-04-19 14:07:32,491 - com.whereta.model.DefaultServer -2120 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=25000 k=7395 v=java.lang.Object@25398d43
[framework] 2016-04-19 14:07:32,491 - com.whereta.model.DefaultServer -2120 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={7677:{},7395:{}}}
[framework] 2016-04-19 14:07:33,491 - com.whereta.utils.DataUtil -3120 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=18531
[framework] 2016-04-19 14:07:33,491 - com.whereta.utils.DataUtil -3120 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:33,491 - com.whereta.utils.DataUtil -3120 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:33,491 - com.whereta.model.DefaultServer -3120 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{7677=java.lang.Object@35f5e42b, 7395=java.lang.Object@25398d43}
[framework] 2016-04-19 14:07:33,492 - com.whereta.model.DefaultServer -3121 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
{"dataMap":{7677:{},7395:{}},"serverKey":25000}
[framework] 2016-04-19 14:07:33,492 - com.whereta.model.DefaultServer -3121 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=25000 k=18531 v=java.lang.Object@65693ccc
[framework] 2016-04-19 14:07:33,492 - com.whereta.model.DefaultServer -3121 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={18531:{},7677:{},7395:{}}}
[framework] 2016-04-19 14:07:34,493 - com.whereta.utils.DataUtil -4122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=29261
[framework] 2016-04-19 14:07:34,493 - com.whereta.utils.DataUtil -4122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:34,493 - com.whereta.utils.DataUtil -4122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:34,493 - com.whereta.model.DefaultServer -4122 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{}
[framework] 2016-04-19 14:07:34,493 - com.whereta.model.DefaultServer -4122 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{},"serverKey":40000}
[framework] 2016-04-19 14:07:34,493 - com.whereta.model.DefaultServer -4122 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=29261 v=java.lang.Object@6d820beb
[framework] 2016-04-19 14:07:34,493 - com.whereta.model.DefaultServer -4122 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={29261:{}}}
[framework] 2016-04-19 14:07:35,493 - com.whereta.utils.DataUtil -5122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=36963
[framework] 2016-04-19 14:07:35,493 - com.whereta.utils.DataUtil -5122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:35,493 - com.whereta.utils.DataUtil -5122 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:35,493 - com.whereta.model.DefaultServer -5122 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:35,494 - com.whereta.model.DefaultServer -5123 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{29261:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:35,494 - com.whereta.model.DefaultServer -5123 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=36963 v=java.lang.Object@74dca977
[framework] 2016-04-19 14:07:35,494 - com.whereta.model.DefaultServer -5123 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={29261:{},36963:{}}}
[framework] 2016-04-19 14:07:36,495 - com.whereta.utils.DataUtil -6124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=34471
[framework] 2016-04-19 14:07:36,495 - com.whereta.utils.DataUtil -6124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:36,495 - com.whereta.utils.DataUtil -6124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:36,495 - com.whereta.model.DefaultServer -6124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:36,495 - com.whereta.model.DefaultServer -6124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:36,495 - com.whereta.model.DefaultServer -6124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=34471 v=java.lang.Object@42f9ff91
[framework] 2016-04-19 14:07:36,495 - com.whereta.model.DefaultServer -6124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={34471:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:37,495 - com.whereta.utils.DataUtil -7124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=34402
[framework] 2016-04-19 14:07:37,495 - com.whereta.utils.DataUtil -7124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:37,495 - com.whereta.utils.DataUtil -7124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:37,495 - com.whereta.model.DefaultServer -7124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{34471=java.lang.Object@42f9ff91, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:37,495 - com.whereta.model.DefaultServer -7124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{34471:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:37,495 - com.whereta.model.DefaultServer -7124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=34402 v=java.lang.Object@2af9aaf1
[framework] 2016-04-19 14:07:37,495 - com.whereta.model.DefaultServer -7124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={34471:{},34402:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:38,495 - com.whereta.utils.DataUtil -8124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=2519
[framework] 2016-04-19 14:07:38,495 - com.whereta.utils.DataUtil -8124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:38,495 - com.whereta.utils.DataUtil -8124 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:38,495 - com.whereta.model.DefaultServer -8124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{}
[framework] 2016-04-19 14:07:38,495 - com.whereta.model.DefaultServer -8124 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:5000
{"dataMap":{},"serverKey":5000}
[framework] 2016-04-19 14:07:38,496 - com.whereta.model.DefaultServer -8125 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=5000 k=2519 v=java.lang.Object@e1a973
[framework] 2016-04-19 14:07:38,496 - com.whereta.model.DefaultServer -8125 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=5000, dataMap={2519:{}}}
[framework] 2016-04-19 14:07:39,496 - com.whereta.utils.DataUtil -9125 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=15304
[framework] 2016-04-19 14:07:39,496 - com.whereta.utils.DataUtil -9125 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:39,496 - com.whereta.utils.DataUtil -9125 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:39,496 - com.whereta.model.DefaultServer -9125 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 7395=java.lang.Object@25398d43}
[framework] 2016-04-19 14:07:39,496 - com.whereta.model.DefaultServer -9125 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
{"dataMap":{18531:{},7677:{},7395:{}},"serverKey":25000}
[framework] 2016-04-19 14:07:39,497 - com.whereta.model.DefaultServer -9126 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=25000 k=15304 v=java.lang.Object@5f3bbd78
[framework] 2016-04-19 14:07:39,497 - com.whereta.model.DefaultServer -9126 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={18531:{},7677:{},15304:{},7395:{}}}
[framework] 2016-04-19 14:07:40,498 - com.whereta.utils.DataUtil -10127 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=49517
[framework] 2016-04-19 14:07:40,498 - com.whereta.utils.DataUtil -10127 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:40,498 - com.whereta.utils.DataUtil -10127 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:40,498 - com.whereta.model.DefaultServer -10127 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{}
[framework] 2016-04-19 14:07:40,498 - com.whereta.model.DefaultServer -10127 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:50000
{"dataMap":{},"serverKey":50000}
[framework] 2016-04-19 14:07:40,498 - com.whereta.model.DefaultServer -10127 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=50000 k=49517 v=java.lang.Object@1f016962
[framework] 2016-04-19 14:07:40,498 - com.whereta.model.DefaultServer -10127 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=50000, dataMap={49517:{}}}
[framework] 2016-04-19 14:07:41,499 - com.whereta.utils.DataUtil -11128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=29985
[framework] 2016-04-19 14:07:41,499 - com.whereta.utils.DataUtil -11128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:41,499 - com.whereta.utils.DataUtil -11128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:41,499 - com.whereta.model.DefaultServer -11128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:41,499 - com.whereta.model.DefaultServer -11128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{34471:{},34402:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:41,499 - com.whereta.model.DefaultServer -11128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=29985 v=java.lang.Object@15adb0d5
[framework] 2016-04-19 14:07:41,499 - com.whereta.model.DefaultServer -11128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:42,499 - com.whereta.utils.DataUtil -12128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=28754
[framework] 2016-04-19 14:07:42,499 - com.whereta.utils.DataUtil -12128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:42,499 - com.whereta.utils.DataUtil -12128 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:42,499 - com.whereta.model.DefaultServer -12128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:42,499 - com.whereta.model.DefaultServer -12128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{34471:{},34402:{},29985:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:42,499 - com.whereta.model.DefaultServer -12128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=28754 v=java.lang.Object@3e347b11
[framework] 2016-04-19 14:07:42,499 - com.whereta.model.DefaultServer -12128 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:43,500 - com.whereta.utils.DataUtil -13129 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=33084
[framework] 2016-04-19 14:07:43,500 - com.whereta.utils.DataUtil -13129 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:43,500 - com.whereta.utils.DataUtil -13129 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:43,500 - com.whereta.model.DefaultServer -13129 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:43,501 - com.whereta.model.DefaultServer -13130 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:43,501 - com.whereta.model.DefaultServer -13130 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=33084 v=java.lang.Object@677bb8fe
[framework] 2016-04-19 14:07:43,501 - com.whereta.model.DefaultServer -13130 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:44,502 - com.whereta.utils.DataUtil -14131 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=42530
[framework] 2016-04-19 14:07:44,502 - com.whereta.utils.DataUtil -14131 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:44,502 - com.whereta.utils.DataUtil -14131 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:44,502 - com.whereta.model.DefaultServer -14131 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{49517=java.lang.Object@1f016962}
[framework] 2016-04-19 14:07:44,503 - com.whereta.model.DefaultServer -14132 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:50000
{"dataMap":{49517:{}},"serverKey":50000}
[framework] 2016-04-19 14:07:44,503 - com.whereta.model.DefaultServer -14132 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=50000 k=42530 v=java.lang.Object@6bae60c5
[framework] 2016-04-19 14:07:44,503 - com.whereta.model.DefaultServer -14132 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=50000, dataMap={49517:{},42530:{}}}
[framework] 2016-04-19 14:07:45,504 - com.whereta.utils.DataUtil -15133 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=38611
[framework] 2016-04-19 14:07:45,504 - com.whereta.utils.DataUtil -15133 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:45,504 - com.whereta.utils.DataUtil -15133 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:45,504 - com.whereta.model.DefaultServer -15133 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:45,505 - com.whereta.model.DefaultServer -15134 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{33084:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:45,505 - com.whereta.model.DefaultServer -15134 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=38611 v=java.lang.Object@5535cbe
[framework] 2016-04-19 14:07:45,505 - com.whereta.model.DefaultServer -15134 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},38611:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:46,506 - com.whereta.utils.DataUtil -16135 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=37182
[framework] 2016-04-19 14:07:46,506 - com.whereta.utils.DataUtil -16135 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:46,506 - com.whereta.utils.DataUtil -16135 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:46,507 - com.whereta.model.DefaultServer -16136 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 38611=java.lang.Object@5535cbe, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:46,507 - com.whereta.model.DefaultServer -16136 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{33084:{},38611:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:46,508 - com.whereta.model.DefaultServer -16137 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=37182 v=java.lang.Object@23edc0ad
[framework] 2016-04-19 14:07:46,509 - com.whereta.model.DefaultServer -16138 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},37182:{},38611:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:47,509 - com.whereta.utils.DataUtil -17138 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=38839
[framework] 2016-04-19 14:07:47,509 - com.whereta.utils.DataUtil -17138 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:47,509 - com.whereta.utils.DataUtil -17138 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:47,510 - com.whereta.model.DefaultServer -17139 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 37182=java.lang.Object@23edc0ad, 38611=java.lang.Object@5535cbe, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:47,510 - com.whereta.model.DefaultServer -17139 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{33084:{},37182:{},38611:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:47,510 - com.whereta.model.DefaultServer -17139 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=38839 v=java.lang.Object@4e04b048
[framework] 2016-04-19 14:07:47,511 - com.whereta.model.DefaultServer -17140 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},37182:{},38611:{},38839:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:48,511 - com.whereta.utils.DataUtil -18140 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=338
[framework] 2016-04-19 14:07:48,511 - com.whereta.utils.DataUtil -18140 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:48,511 - com.whereta.utils.DataUtil -18140 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:48,511 - com.whereta.model.DefaultServer -18140 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{}
[framework] 2016-04-19 14:07:48,511 - com.whereta.model.DefaultServer -18140 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:500
{"dataMap":{},"serverKey":500}
[framework] 2016-04-19 14:07:48,512 - com.whereta.model.DefaultServer -18141 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=500 k=338 v=java.lang.Object@68cd6d94
[framework] 2016-04-19 14:07:48,512 - com.whereta.model.DefaultServer -18141 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=500, dataMap={338:{}}}
[framework] 2016-04-19 14:07:49,512 - com.whereta.utils.DataUtil -19141 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=47979
[framework] 2016-04-19 14:07:49,512 - com.whereta.utils.DataUtil -19141 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:49,512 - com.whereta.utils.DataUtil -19141 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 40000, 50000]
[framework] 2016-04-19 14:07:49,513 - com.whereta.model.DefaultServer -19142 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{49517=java.lang.Object@1f016962, 42530=java.lang.Object@6bae60c5}
[framework] 2016-04-19 14:07:49,513 - com.whereta.model.DefaultServer -19142 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:50000
{"dataMap":{49517:{},42530:{}},"serverKey":50000}
[framework] 2016-04-19 14:07:49,513 - com.whereta.model.DefaultServer -19142 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=50000 k=47979 v=java.lang.Object@6d5454d
[framework] 2016-04-19 14:07:49,514 - com.whereta.model.DefaultServer -19143 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=50000, dataMap={49517:{},42530:{},47979:{}}}
[framework] 2016-04-19 14:07:50,429 - com.whereta.model.DefaultServer -20058 [pool-1-thread-2] INFO  com.whereta.model.DefaultServer  - 初始化服务器:35000
[framework] 2016-04-19 14:07:50,429 - com.whereta.model.DefaultServer -20058 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
[framework] 2016-04-19 14:07:50,429 - com.whereta.utils.DataUtil -20058 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 添加新的服务器:DefaultServer{serverKey=35000, dataMap={}}
[framework] 2016-04-19 14:07:50,429 - com.whereta.utils.DataUtil -20058 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:false
[framework] 2016-04-19 14:07:50,429 - com.whereta.utils.DataUtil -20058 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 获取key=35001
[framework] 2016-04-19 14:07:50,430 - com.whereta.utils.DataUtil -20059 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:50,430 - com.whereta.utils.DataUtil -20059 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:50,430 - com.whereta.model.DefaultServer -20059 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - serverKey=40000 获取小于等于35000 的数据集合是:{34402=java.lang.Object@2af9aaf1, 28754=java.lang.Object@3e347b11, 33084=java.lang.Object@677bb8fe, 34471=java.lang.Object@42f9ff91, 29261=java.lang.Object@6d820beb, 29985=java.lang.Object@15adb0d5}
[framework] 2016-04-19 14:07:50,431 - com.whereta.model.DefaultServer -20060 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},37182:{},38611:{},38839:{},28754:{},34471:{},34402:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:50,431 - com.whereta.model.DefaultServer -20060 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - serverKey=35000 批量存入数据:{34402=java.lang.Object@2af9aaf1, 28754=java.lang.Object@3e347b11, 33084=java.lang.Object@677bb8fe, 34471=java.lang.Object@42f9ff91, 29261=java.lang.Object@6d820beb, 29985=java.lang.Object@15adb0d5}
[framework] 2016-04-19 14:07:50,431 - com.whereta.model.DefaultServer -20060 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={33084:{},28754:{},34471:{},34402:{},29985:{},29261:{}}}
[framework] 2016-04-19 14:07:50,432 - com.whereta.model.DefaultServer -20061 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=34402 v=java.lang.Object@2af9aaf1
[framework] 2016-04-19 14:07:50,432 - com.whereta.model.DefaultServer -20061 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},37182:{},38611:{},38839:{},28754:{},34471:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:50,432 - com.whereta.model.DefaultServer -20061 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=28754 v=java.lang.Object@3e347b11
[framework] 2016-04-19 14:07:50,433 - com.whereta.model.DefaultServer -20062 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={33084:{},37182:{},38611:{},38839:{},34471:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:50,433 - com.whereta.model.DefaultServer -20062 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=33084 v=java.lang.Object@677bb8fe
[framework] 2016-04-19 14:07:50,433 - com.whereta.model.DefaultServer -20062 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37182:{},38611:{},38839:{},34471:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:50,433 - com.whereta.model.DefaultServer -20062 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=34471 v=java.lang.Object@42f9ff91
[framework] 2016-04-19 14:07:50,434 - com.whereta.model.DefaultServer -20063 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37182:{},38611:{},38839:{},29985:{},29261:{},36963:{}}}
[framework] 2016-04-19 14:07:50,434 - com.whereta.model.DefaultServer -20063 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=29261 v=java.lang.Object@6d820beb
[framework] 2016-04-19 14:07:50,434 - com.whereta.model.DefaultServer -20063 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37182:{},38611:{},38839:{},29985:{},36963:{}}}
[framework] 2016-04-19 14:07:50,435 - com.whereta.model.DefaultServer -20064 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 删除数据:serverKey=40000  k=29985 v=java.lang.Object@15adb0d5
[framework] 2016-04-19 14:07:50,435 - com.whereta.model.DefaultServer -20064 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37182:{},38611:{},38839:{},36963:{}}}
---------------------------
添加服务器成功
[framework] 2016-04-19 14:07:50,435 - com.whereta.model.DefaultServer -20064 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:50,436 - com.whereta.model.DefaultServer -20065 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{33084:{},28754:{},34471:{},34402:{},29985:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:50,514 - com.whereta.utils.DataUtil -20143 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=3297
[framework] 2016-04-19 14:07:50,514 - com.whereta.utils.DataUtil -20143 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:50,515 - com.whereta.utils.DataUtil -20144 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:50,515 - com.whereta.model.DefaultServer -20144 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{2519=java.lang.Object@e1a973}
[framework] 2016-04-19 14:07:50,515 - com.whereta.model.DefaultServer -20144 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:5000
{"dataMap":{2519:{}},"serverKey":5000}
[framework] 2016-04-19 14:07:50,515 - com.whereta.model.DefaultServer -20144 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=5000 k=3297 v=java.lang.Object@12d04843
[framework] 2016-04-19 14:07:50,516 - com.whereta.model.DefaultServer -20145 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=5000, dataMap={2519:{},3297:{}}}
[framework] 2016-04-19 14:07:51,516 - com.whereta.utils.DataUtil -21145 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=29550
[framework] 2016-04-19 14:07:51,516 - com.whereta.utils.DataUtil -21145 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:51,516 - com.whereta.utils.DataUtil -21145 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:51,516 - com.whereta.model.DefaultServer -21145 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:51,517 - com.whereta.model.DefaultServer -21146 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{33084:{},28754:{},34471:{},34402:{},29985:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:51,517 - com.whereta.model.DefaultServer -21146 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=29550 v=java.lang.Object@2838305b
[framework] 2016-04-19 14:07:51,517 - com.whereta.model.DefaultServer -21146 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={33084:{},29550:{},28754:{},34471:{},34402:{},29985:{},29261:{}}}
[framework] 2016-04-19 14:07:52,518 - com.whereta.utils.DataUtil -22147 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=37479
[framework] 2016-04-19 14:07:52,518 - com.whereta.utils.DataUtil -22147 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:52,519 - com.whereta.utils.DataUtil -22148 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:52,519 - com.whereta.model.DefaultServer -22148 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{37182=java.lang.Object@23edc0ad, 38611=java.lang.Object@5535cbe, 38839=java.lang.Object@4e04b048, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:52,519 - com.whereta.model.DefaultServer -22148 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{37182:{},38611:{},38839:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:52,519 - com.whereta.model.DefaultServer -22148 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=37479 v=java.lang.Object@eebafe
[framework] 2016-04-19 14:07:52,520 - com.whereta.model.DefaultServer -22149 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37479:{},37182:{},38611:{},38839:{},36963:{}}}
[framework] 2016-04-19 14:07:53,520 - com.whereta.utils.DataUtil -23149 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=26139
[framework] 2016-04-19 14:07:53,520 - com.whereta.utils.DataUtil -23149 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:53,520 - com.whereta.utils.DataUtil -23149 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:53,520 - com.whereta.model.DefaultServer -23149 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{33084=java.lang.Object@677bb8fe, 29550=java.lang.Object@2838305b, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:53,520 - com.whereta.model.DefaultServer -23149 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{33084:{},29550:{},28754:{},34471:{},34402:{},29985:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:53,521 - com.whereta.model.DefaultServer -23150 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=26139 v=java.lang.Object@39367a2c
[framework] 2016-04-19 14:07:53,521 - com.whereta.model.DefaultServer -23150 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={33084:{},29550:{},28754:{},34471:{},34402:{},29985:{},26139:{},29261:{}}}
[framework] 2016-04-19 14:07:54,521 - com.whereta.utils.DataUtil -24150 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=21468
[framework] 2016-04-19 14:07:54,521 - com.whereta.utils.DataUtil -24150 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:54,521 - com.whereta.utils.DataUtil -24150 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 25000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:54,521 - com.whereta.model.DefaultServer -24150 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 15304=java.lang.Object@5f3bbd78, 7395=java.lang.Object@25398d43}
[framework] 2016-04-19 14:07:54,522 - com.whereta.model.DefaultServer -24151 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:25000
{"dataMap":{18531:{},7677:{},15304:{},7395:{}},"serverKey":25000}
[framework] 2016-04-19 14:07:54,522 - com.whereta.model.DefaultServer -24151 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=25000 k=21468 v=java.lang.Object@278efc0c
[framework] 2016-04-19 14:07:54,522 - com.whereta.model.DefaultServer -24151 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=25000, dataMap={18531:{},7677:{},21468:{},15304:{},7395:{}}}
[framework] 2016-04-19 14:07:55,436 - com.whereta.utils.DataUtil -25065 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 是否存在旧的服务器:true
[framework] 2016-04-19 14:07:55,436 - com.whereta.utils.DataUtil -25065 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 旧服务器信息:DefaultServer{serverKey=25000, dataMap={18531:{},7677:{},21468:{},15304:{},7395:{}}}
[framework] 2016-04-19 14:07:55,436 - com.whereta.model.DefaultServer -25065 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 15304=java.lang.Object@5f3bbd78, 7395=java.lang.Object@25398d43}
[framework] 2016-04-19 14:07:55,437 - com.whereta.utils.DataUtil -25066 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 获取key=25000
[framework] 2016-04-19 14:07:55,437 - com.whereta.utils.DataUtil -25066 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:55,437 - com.whereta.utils.DataUtil -25066 [pool-1-thread-2] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:55,437 - com.whereta.model.DefaultServer -25066 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - serverKey=35000 批量存入数据:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 15304=java.lang.Object@5f3bbd78, 7395=java.lang.Object@25398d43}
[framework] 2016-04-19 14:07:55,438 - com.whereta.model.DefaultServer -25067 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={18531:{},7677:{},21468:{},33084:{},29550:{},15304:{},28754:{},34471:{},34402:{},29985:{},7395:{},26139:{},29261:{}}}
[framework] 2016-04-19 14:07:55,438 - com.whereta.model.DefaultServer -25067 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 33084=java.lang.Object@677bb8fe, 29550=java.lang.Object@2838305b, 15304=java.lang.Object@5f3bbd78, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 7395=java.lang.Object@25398d43, 26139=java.lang.Object@39367a2c, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:55,438 - com.whereta.model.DefaultServer -25067 [pool-1-thread-2] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{18531:{},7677:{},21468:{},33084:{},29550:{},15304:{},28754:{},34471:{},34402:{},29985:{},7395:{},26139:{},29261:{}},"serverKey":35000}
---------------------------
删除服务器成功
[framework] 2016-04-19 14:07:55,523 - com.whereta.utils.DataUtil -25152 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=49522
[framework] 2016-04-19 14:07:55,524 - com.whereta.utils.DataUtil -25153 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:55,524 - com.whereta.utils.DataUtil -25153 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:55,524 - com.whereta.model.DefaultServer -25153 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{49517=java.lang.Object@1f016962, 42530=java.lang.Object@6bae60c5, 47979=java.lang.Object@6d5454d}
[framework] 2016-04-19 14:07:55,524 - com.whereta.model.DefaultServer -25153 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:50000
{"dataMap":{49517:{},42530:{},47979:{}},"serverKey":50000}
[framework] 2016-04-19 14:07:55,525 - com.whereta.model.DefaultServer -25154 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=50000 k=49522 v=java.lang.Object@529b9e76
[framework] 2016-04-19 14:07:55,525 - com.whereta.model.DefaultServer -25154 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=50000, dataMap={49517:{},49522:{},42530:{},47979:{}}}
[framework] 2016-04-19 14:07:56,525 - com.whereta.utils.DataUtil -26154 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=22691
[framework] 2016-04-19 14:07:56,525 - com.whereta.utils.DataUtil -26154 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:56,525 - com.whereta.utils.DataUtil -26154 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:56,525 - com.whereta.model.DefaultServer -26154 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 33084=java.lang.Object@677bb8fe, 29550=java.lang.Object@2838305b, 15304=java.lang.Object@5f3bbd78, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 7395=java.lang.Object@25398d43, 26139=java.lang.Object@39367a2c, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:56,526 - com.whereta.model.DefaultServer -26155 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{18531:{},7677:{},21468:{},33084:{},29550:{},15304:{},28754:{},34471:{},34402:{},29985:{},7395:{},26139:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:56,526 - com.whereta.model.DefaultServer -26155 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=22691 v=java.lang.Object@66c07f58
[framework] 2016-04-19 14:07:56,527 - com.whereta.model.DefaultServer -26156 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={18531:{},7677:{},21468:{},33084:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},29261:{}}}
[framework] 2016-04-19 14:07:57,527 - com.whereta.utils.DataUtil -27156 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=32584
[framework] 2016-04-19 14:07:57,527 - com.whereta.utils.DataUtil -27156 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:57,528 - com.whereta.utils.DataUtil -27157 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:57,528 - com.whereta.model.DefaultServer -27157 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 33084=java.lang.Object@677bb8fe, 29550=java.lang.Object@2838305b, 15304=java.lang.Object@5f3bbd78, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 22691=java.lang.Object@66c07f58, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 7395=java.lang.Object@25398d43, 26139=java.lang.Object@39367a2c, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:57,529 - com.whereta.model.DefaultServer -27158 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{18531:{},7677:{},21468:{},33084:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:57,529 - com.whereta.model.DefaultServer -27158 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=32584 v=java.lang.Object@67e89f1b
[framework] 2016-04-19 14:07:57,529 - com.whereta.model.DefaultServer -27158 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={18531:{},7677:{},21468:{},33084:{},32584:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},29261:{}}}
[framework] 2016-04-19 14:07:58,530 - com.whereta.utils.DataUtil -28159 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=27032
[framework] 2016-04-19 14:07:58,530 - com.whereta.utils.DataUtil -28159 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:58,530 - com.whereta.utils.DataUtil -28159 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:58,531 - com.whereta.model.DefaultServer -28160 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 33084=java.lang.Object@677bb8fe, 32584=java.lang.Object@67e89f1b, 29550=java.lang.Object@2838305b, 15304=java.lang.Object@5f3bbd78, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 22691=java.lang.Object@66c07f58, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 7395=java.lang.Object@25398d43, 26139=java.lang.Object@39367a2c, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:07:58,531 - com.whereta.model.DefaultServer -28160 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{18531:{},7677:{},21468:{},33084:{},32584:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:07:58,531 - com.whereta.model.DefaultServer -28160 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=27032 v=java.lang.Object@5925dae8
[framework] 2016-04-19 14:07:58,532 - com.whereta.model.DefaultServer -28161 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={18531:{},7677:{},21468:{},33084:{},32584:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},27032:{},29261:{}}}
[framework] 2016-04-19 14:07:59,532 - com.whereta.utils.DataUtil -29161 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=37314
[framework] 2016-04-19 14:07:59,532 - com.whereta.utils.DataUtil -29161 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:07:59,532 - com.whereta.utils.DataUtil -29161 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:07:59,532 - com.whereta.model.DefaultServer -29161 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{37479=java.lang.Object@eebafe, 37182=java.lang.Object@23edc0ad, 38611=java.lang.Object@5535cbe, 38839=java.lang.Object@4e04b048, 36963=java.lang.Object@74dca977}
[framework] 2016-04-19 14:07:59,533 - com.whereta.model.DefaultServer -29162 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:40000
{"dataMap":{37479:{},37182:{},38611:{},38839:{},36963:{}},"serverKey":40000}
[framework] 2016-04-19 14:07:59,533 - com.whereta.model.DefaultServer -29162 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=40000 k=37314 v=java.lang.Object@4446e311
[framework] 2016-04-19 14:07:59,533 - com.whereta.model.DefaultServer -29162 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=40000, dataMap={37479:{},37182:{},38611:{},38839:{},37314:{},36963:{}}}
[framework] 2016-04-19 14:08:00,534 - com.whereta.utils.DataUtil -30163 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 获取key=6887
[framework] 2016-04-19 14:08:00,534 - com.whereta.utils.DataUtil -30163 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器是否存在:true
[framework] 2016-04-19 14:08:00,534 - com.whereta.utils.DataUtil -30163 [pool-1-thread-1] DEBUG com.whereta.utils.DataUtil  - 服务器key信息:[100, 500, 2500, 5000, 35000, 40000, 50000]
[framework] 2016-04-19 14:08:00,535 - com.whereta.model.DefaultServer -30164 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取数据存储集合:{18531=java.lang.Object@65693ccc, 7677=java.lang.Object@35f5e42b, 21468=java.lang.Object@278efc0c, 33084=java.lang.Object@677bb8fe, 32584=java.lang.Object@67e89f1b, 29550=java.lang.Object@2838305b, 15304=java.lang.Object@5f3bbd78, 28754=java.lang.Object@3e347b11, 34471=java.lang.Object@42f9ff91, 22691=java.lang.Object@66c07f58, 34402=java.lang.Object@2af9aaf1, 29985=java.lang.Object@15adb0d5, 7395=java.lang.Object@25398d43, 26139=java.lang.Object@39367a2c, 27032=java.lang.Object@5925dae8, 29261=java.lang.Object@6d820beb}
[framework] 2016-04-19 14:08:00,535 - com.whereta.model.DefaultServer -30164 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 获取服务器key:35000
{"dataMap":{18531:{},7677:{},21468:{},33084:{},32584:{},29550:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},27032:{},29261:{}},"serverKey":35000}
[framework] 2016-04-19 14:08:00,535 - com.whereta.model.DefaultServer -30164 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 存储数据:serverKey=35000 k=6887 v=java.lang.Object@9e5941c
[framework] 2016-04-19 14:08:00,536 - com.whereta.model.DefaultServer -30165 [pool-1-thread-1] DEBUG com.whereta.model.DefaultServer  - 服务器数据:DefaultServer{serverKey=35000, dataMap={18531:{},7677:{},21468:{},33084:{},32584:{},29550:{},6887:{},15304:{},28754:{},34471:{},22691:{},34402:{},29985:{},7395:{},26139:{},27032:{},29261:{}}}
Disconnected from the target VM, address: '127.0.0.1:56841', transport: 'socket'

Process finished with exit code -1

参考文章:http://blog.csdn.net/cywosp/article/details/23397179

个人博客:http://www.whereta.com

你可能感兴趣的:(一致性Hash简单实现)