connector=new MemcachedConnector(bind_addr, port, null);
connector.setThreadPoolCoreThreads(min_threads);
connector.setThreadPoolMaxThreads(max_threads);
JmxConfigurator.register(connector, server, BASENAME + ":name=connector");
cache=new PartitionedHashMap(props, "memcached-cluster");
cache.setCallTimeout(rpc_timeout);
cache.setCachingTime(caching_time);
cache.setMigrateData(migrate_data);
JmxConfigurator.register(cache, server, BASENAME + ":name=cache");
JmxConfigurator.register(cache.getL2Cache(), server, BASENAME + ":name=l2-cache");