001package net.gdface.codegen.thrift; 002 003/** 004 * @author guyadong 005 * 006 */ 007public interface ThriftConstants { 008 009 final String SCHEMA_INFO = "schemainfo"; 010 final String CXX_HELPER= "cxxhelper"; 011 final String DIR_SCHEMA = "schema"; 012 final String DIR_PERSERVICE = "perservice"; 013 final String DIR_PERSTRUCT = "perstruct"; 014 final String TASK_TYPE_OPTION = "gt"; 015 final String TASK_TYPE_OPTION_LONG = "task-type"; 016 final String TASK_TYPE_OPTION_DESC = "thrift gernerate task type: SERVICE,CLIENT,CLIENT_THRIFTY,ERPC_PROXY"; 017 final String THRIFT_CLIENT_PKG_OPTION_LONG = "thrift-package"; 018 final String THRIFT_CLIENT_PKG_OPTION_DESC = "package of thrift client code generated by swift-generator,required by CLIENT task"; 019 final String LANGUAGE_OPTION = "lg"; 020 final String LANGUAGE_OPTION_LONG = "language"; 021 final String LANGUAGE_OPTION_DESC = "gernerate language: JAVA,CPP,C_GLIB,default: JAVA"; 022 final String CONFIG_OPTION = "cg"; 023 final String CONFIG_OPTION_LONG = "config"; 024 final String CONFIG_OPTION_DESC = "config file (.properties)"; 025 final String TAGS_OPTION_LONG = "tags"; 026 final String TAGS_OPTION_DESC = "comma separated tag list for filtering service port,default:empty"; 027 final String COMMON_TYPES_OPTION_LONG = "common-types"; 028 final String COMMON_TYPES_OPTION_DESC = "common types which will be skip for generation,splited with [,]without blank space"; 029 final String ERPC_PROGRAM_OPTION_LONG = "erpc-program"; 030 final String ERPC_PROGRAM_OPTION_DESC = "program name for ERPC_PROXY task"; 031 final String ERPC_PORT_PREFIX_OPTION_LONG = "erpc-port-prefix"; 032 final String ERPC_PORT_PREFIX_OPTION_DESC = "prefix for service method name for ERPC_PROXY task"; 033 final String EXCLUDE_METHODS_OPTION_LONG = "exclude-methods"; 034 final String EXCLUDE_METHODS_OPTION_DESC = "exclude service methods names,splited with [,]without blank space"; 035 final String INCLUDE_METHODS_OPTION_LONG = "include-methods"; 036 final String INCLUDE_METHODS_OPTION_DESC = "include service methods names,splited with [,]without blank space"; 037 final String EXCLUDE_FIELDS_OPTION_LONG = "exclude-fields"; 038 final String EXCLUDE_FIELDS_OPTION_DESC = "exclude fields of struct class name,such as '$classname1:user,age'"; 039 final String THRIFT_SERVICE_CLASS_OPTION_LONG = "thrift-service-class"; 040 final String THRIFT_SERVICE_CLASS_OPTION_DESC = "thrift service class with @ThriftService annotation"; 041 final String ERPC_FORWARD_PORT_OPTION_LONG = "erpc-forward-port"; 042 final String ERPC_FORWARD_PORT_OPTION_DESC = "thrift service port that erpc proxy forward request to,required by ERPC_PROXY task"; 043 final String ERPC_PROXY_PORT_OPTION_LONG = "erpc-proxy-port"; 044 final String ERPC_PROXY_PORT_OPTION_DESC = "service port for erpc porxy,required by ERPC_PROXY task"; 045 final String ERPC_DEFAULT_MAX_LENGTH_OPTION_LONG = "erpc-default-max-length"; 046 final String ERPC_DEFAULT_MAX_LENGTH_OPTION_DESC = "default value for annotation @max_length,default 256,used by ERPC_PROXY task"; 047 final String ERPC_ERRMSG_MAX_LENGTH_OPTION_LONG = "erpc-errmsg-max-length"; 048 final String ERPC_ERRMSG_MAX_LENGTH_OPTION_DESC = "max length for output error message buffer of each service port,default 256,used by ERPC_PROXY task"; 049 final String ERPC_BINARY_OUTPUT_SIZE_OPTION_LONG = "erpc-binary-output-size"; 050 final String ERPC_BINARY_OUTPUT_SIZE_OPTION_DESC = "output size for binary_t,default 256,used by ERPC_PROXY task"; 051 052}