// 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;

	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;
	public static int itemSizeMax = 1024*1024; /* The famous 1MB upper limit. */
	public static int slabPageSize = 1024 * 1024; /* chunks are split from 1MB pages. */
	public static int slabChunkSizeMax = slabPageSize;
	public static boolean sasl = false;  /* SASL on/off */
	public static boolean maxConnsFast = false;
	public static boolean lruCrawler = false;
	public static int lruCrawlerSleep = 100;
	public static int lruCrawlerTocrawl = 0;
	public static boolean lruMaintainerThread = false; /* LRU maintainer background thread */
	public static int hotLruPct = 32;
	public static int warmLruPct = 32;
	public static boolean expireZeroDoesNotEvict = false;
	public static int idleTimeout = 0;
	public static int hashpower_default = 16; /* Initial power multiplier for the hash table */
	public static int hashPowerInit = hashpower_default;
	public static boolean slabReassign = false; /* Whether or not slab reassignment is allowed */
	public static short slabAutoMove = 0; /* Whether or not to automatically move slabs */
	public static boolean shutdownCommand = false; /* allow shutdown command */

// 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;

	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;
	public static int itemSizeMax = 1024*1024; /* The famous 1MB upper limit. */
	public static int slabPageSize = 1024 * 1024; /* chunks are split from 1MB pages. */
	public static int slabChunkSizeMax = slabPageSize;
	public static boolean sasl = false;  /* SASL on/off */
	public static boolean maxConnsFast = false;
	public static boolean lruCrawler = false;
	public static int lruCrawlerSleep = 100;
	public static int lruCrawlerTocrawl = 0;
	public static boolean lruMaintainerThread = false; /* LRU maintainer background thread */
	public static int hotLruPct = 32;
	public static int warmLruPct = 32;
	public static boolean expireZeroDoesNotEvict = false;
	public static int idleTimeout = 0;
	public static int hashpower_default = 16; /* Initial power multiplier for the hash table */
	public static int hashPowerInit = hashpower_default;
	public static boolean slabReassign = false; /* Whether or not slab reassignment is allowed */
	public static short slabAutoMove = 0; /* Whether or not to automatically move slabs */
	public static boolean shutdownCommand = false; /* allow shutdown command */

	public static long tailRepairTime = JcacheGlobalConfig.TAIL_REPAIR_TIME_DEFAULT; /* LRU tail refcount leak repair time */
