// Path: src/main/java/io/mycat/jcache/enums/protocol/Protocol.java
// public enum Protocol {
//     binary( 0 ),
//     negotiating( 0 ), /* Discovering the protocol */
//     ascii( 3 ), /* arbitrary value. */
// 	resp(4);/* redis protocol */
// 	
// 	private int value = 0;
// 
// 	private Protocol(int value) {
// 		this.value = value;
// 	}
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// 	public void setValue( int value ) {
// 		this.value = value;
// 	}
// }
// 
// Path: src/main/java/io/mycat/jcache/net/JcacheGlobalConfig.java
// public final class JcacheGlobalConfig {
// 	
// 	/**
// 	 * 默认reactor pool 大小
// 	 */
// 	public static int defaulePoolSize = Runtime.getRuntime().availableProcessors();
// 	
// 	/**
// 	 * 默认 reactor pool 绑定地址
// 	 */
// 	public static final String defaultPoolBindIp = "0.0.0.0";
// 	
// 	/**
// 	 * 默认 reactor 选择策略
// 	 */
// 	public static final String defaultReactorSelectStrategy = "ROUND_ROBIN";
// 	
// 	/**
// 	 * 
// 	 */
// 	public static final int defaultMaxAcceptNum = 10000;
// 	
// 	/**
// 	 * 默认字符编码
// 	 */
// 	public static final String defaultCahrset = "UTF-8";
// 	
// 	/** Maximum length of a key */
// 	public static final int KEY_MAX_LENGTH = 250;
// 
// 
// 	/** Maximum length of a value */
// 	public static final long VALUE_MAX_LENGTH=1024*1024;
// 	
// 	/** current version */
// 	public static final String version = "0.5.0";
// 	
// 	/** How long an object can reasonably be assumed to be locked before
//     	harvesting it on a low memory condition. Default: disabled. */
// 	public static final int TAIL_REPAIR_TIME_DEFAULT = 0;
// 	
// 	/** Size of an incr buf. */
// 	public static final int INCR_MAX_STORAGE_LEN = 24;
// 	
// }


import java.util.Date;
import io.mycat.jcache.enums.protocol.Protocol;
import io.mycat.jcache.net.JcacheGlobalConfig;
import sun.misc.VM;

/*
 *  文件创建时间： 2016年11月29日
 *  文件创建者: tangww
 *  所属工程: JCache
 *  CopyRights Received EMail Dev. Dept. 21CN 
 *
 *  备注: 
 */
package io.mycat.jcache.setting;



/**
 * 
 * 类功能描述：TODO
 * @author <a href="mailto:tangww@corp.21cn.com">tangww</a>
 * @version newEDM
 * @since 2016年11月29日 
 *
 */
@SuppressWarnings("restriction")
public class Settings {
	public static boolean useCas = true;
	public static String access = "0700";
	public static int port = 11211;
	public static int udpport = 11211;
	public static int redis_port=6378;
	public static String inter = null;
	
	public static long maxbytes = VM.maxDirectMemory()>0?VM.maxDirectMemory():64*1024*1024; //64M
	public static int maxConns = 1024;
	public static short verbose = 2;
	public static long oldestLive = 0;
	public static long oldestCas = 0;
	public static short evictToFree = 1;  /* push old items out of cache when memory runs out */
	public static String socketPath = null;
	public static boolean prealloc = true;
	public static double factor = 1.25;
	public static int chunkSize = 48;
	public static int numThreads = 4; /* N workers */
	public static int numThreadsPerUdp = 0;
	public static String prefixDelimiter = ":";
	public static boolean detailEnabled = false;
	public static int reqsPerEvent = 20;
	public static int backLog = 1024;

// Path: src/main/java/io/mycat/jcache/enums/protocol/Protocol.java
// public enum Protocol {
//     binary( 0 ),
//     negotiating( 0 ), /* Discovering the protocol */
//     ascii( 3 ), /* arbitrary value. */
// 	resp(4);/* redis protocol */
// 	
// 	private int value = 0;
// 
// 	private Protocol(int value) {
// 		this.value = value;
// 	}
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// 	public void setValue( int value ) {
// 		this.value = value;
// 	}
// }
// 
// Path: src/main/java/io/mycat/jcache/net/JcacheGlobalConfig.java
// public final class JcacheGlobalConfig {
// 	
// 	/**
// 	 * 默认reactor pool 大小
// 	 */
// 	public static int defaulePoolSize = Runtime.getRuntime().availableProcessors();
// 	
// 	/**
// 	 * 默认 reactor pool 绑定地址
// 	 */
// 	public static final String defaultPoolBindIp = "0.0.0.0";
// 	
// 	/**
// 	 * 默认 reactor 选择策略
// 	 */
// 	public static final String defaultReactorSelectStrategy = "ROUND_ROBIN";
// 	
// 	/**
// 	 * 
// 	 */
// 	public static final int defaultMaxAcceptNum = 10000;
// 	
// 	/**
// 	 * 默认字符编码
// 	 */
// 	public static final String defaultCahrset = "UTF-8";
// 	
// 	/** Maximum length of a key */
// 	public static final int KEY_MAX_LENGTH = 250;
// 
// 
// 	/** Maximum length of a value */
// 	public static final long VALUE_MAX_LENGTH=1024*1024;
// 	
// 	/** current version */
// 	public static final String version = "0.5.0";
// 	
// 	/** How long an object can reasonably be assumed to be locked before
//     	harvesting it on a low memory condition. Default: disabled. */
// 	public static final int TAIL_REPAIR_TIME_DEFAULT = 0;
// 	
// 	/** Size of an incr buf. */
// 	public static final int INCR_MAX_STORAGE_LEN = 24;
// 	
// }


// Path: src/main/java/io/mycat/jcache/setting/Settings.java
import java.util.Date;
import io.mycat.jcache.enums.protocol.Protocol;
import io.mycat.jcache.net.JcacheGlobalConfig;
import sun.misc.VM;

/*
 *  文件创建时间： 2016年11月29日
 *  文件创建者: tangww
 *  所属工程: JCache
 *  CopyRights Received EMail Dev. Dept. 21CN 
 *
 *  备注: 
 */
package io.mycat.jcache.setting;



/**
 * 
 * 类功能描述：TODO
 * @author <a href="mailto:tangww@corp.21cn.com">tangww</a>
 * @version newEDM
 * @since 2016年11月29日 
 *
 */
@SuppressWarnings("restriction")
public class Settings {
	public static boolean useCas = true;
	public static String access = "0700";
	public static int port = 11211;
	public static int udpport = 11211;
	public static int redis_port=6378;
	public static String inter = null;
	
	public static long maxbytes = VM.maxDirectMemory()>0?VM.maxDirectMemory():64*1024*1024; //64M
	public static int maxConns = 1024;
	public static short verbose = 2;
	public static long oldestLive = 0;
	public static long oldestCas = 0;
	public static short evictToFree = 1;  /* push old items out of cache when memory runs out */
	public static String socketPath = null;
	public static boolean prealloc = true;
	public static double factor = 1.25;
	public static int chunkSize = 48;
	public static int numThreads = 4; /* N workers */
	public static int numThreadsPerUdp = 0;
	public static String prefixDelimiter = ":";
	public static boolean detailEnabled = false;
	public static int reqsPerEvent = 20;
	public static int backLog = 1024;

	public static Protocol binding_protocol = Protocol.negotiating;
