001package net.gdface.cli;
002
003import net.gdface.cli.CommonCliConstants;
004
005/**
006 * 常量定义
007 * @author guyadong
008 *
009 */
010public interface ThriftServiceConstants extends CommonCliConstants {
011        public static final int DEFAULT_CONNECTION_LIMIT = 32;
012        public static final int DEFAULT_IDLE_TIMEOUT = 60;
013        public static final String DEFAULT_STATIC_METHOD = "getInstance";
014        public static final String SERVICE_PORT_OPTION_LONG = "port";
015        public static final String SERVICE_PORT_OPTION_DESC = "service port number,default: ";
016        public static final String WORK_THREADS_OPTION_LONG = "threads";
017        public static final String WORK_THREADS_OPTION_DESC = "work thread number,default: count of available processors";
018        public static final String CONNECTION_LIMIT_OPTION_LONG = "connectionLimit";
019        public static final String CONNECTION_LIMIT_OPTION_DESC = "an upper bound on the number of concurrent connections the server will accept.default:" + DEFAULT_CONNECTION_LIMIT;
020        public static final String IDLE_CONNECTION_TIMEOUT_OPTION_LONG = "idleConnectionTimeout";
021        public static final String IDLE_CONNECTION_TIMEOUT_OPTION_DESC = "Sets a timeout(seconds) period between receiving requests from a client connection. If the timeout is exceeded (no complete requests have arrived from the client within the timeout), the server will disconnect the idle client.default:" + DEFAULT_IDLE_TIMEOUT + " seconds";
022        
023}