类 CommonParams

java.lang.Object
com.weicoder.common.params.CommonParams

public final class CommonParams extends Object
Common包参数读取类
作者:
WD
  • 字段详细资料

    • LOG_CLASS

      public static final String LOG_CLASS
      log实现
    • IO_BUFFERSIZE

      public static final int IO_BUFFERSIZE
      IO缓冲区大小
    • IO_MODE

      public static final String IO_MODE
      IO模式
    • ENCODING

      public static final String ENCODING
      默认编码
    • DATE_FORMAT

      public static final String DATE_FORMAT
      日期格式
    • BYTES

      public static final String BYTES
      转换字节数组算法
    • ENCRYPT_KEY

      public static final String ENCRYPT_KEY
      加密使用的密钥 字符串
    • ENCRYPT_ALGO

      public static final String ENCRYPT_ALGO
      加密使用的算法
    • ENCRYPT_DIGEST

      public static final String ENCRYPT_DIGEST
      加密使用摘要算法
    • IPS

      public static final String[] IPS
      获得ips过滤组
    • TOKEN_KEY

      public static final String TOKEN_KEY
      token 验证KEY
    • TOKEN_LENGHT

      public static final int TOKEN_LENGHT
      token 验证长度
    • TOKEN_SIGN

      public static final short TOKEN_SIGN
      token 标记
    • TOKEN_EXPIRE

      public static final int TOKEN_EXPIRE
      token 有效期
    • LOGS_LEN

      public static final int LOGS_LEN
      截取日志长度
    • TOKEN_SERVERS

      public static final Set<String> TOKEN_SERVERS
      token 发放服务器
    • HTTP_CONNECT_TIMEOUT

      public static final int HTTP_CONNECT_TIMEOUT
      http连接超时时间
    • HTTP_READ_TIMEOUT

      public static final int HTTP_READ_TIMEOUT
      http读取超时时间
    • PAGE_SIZE

      public static final int PAGE_SIZE
      分页每页大小 默认20
    • VERIFY_CODE

      public static final char[] VERIFY_CODE
      验证码出现的字符集
    • VERIFY_LENGTH

      public static final int VERIFY_LENGTH
      验证码长度
    • MAIN

      public static final boolean MAIN
      是否驻留程序
    • PACKAGES

      public static final String PACKAGES
    • CLASS_NAMES

      public static final String[] CLASS_NAMES
      ClassUtil 排除Bean名称尾缀
  • 方法详细资料

    • power

      public static boolean power(String name)
      获得初始化开关
      参数:
      name - 初始化的模块
      返回:
      true 初始化 false 不执行
    • getPackages

      public static String getPackages(String name)
      获得包名
      参数:
      name - 名称
      返回:
      名称下的包名
    • getScheduledPool

      public static int getScheduledPool(String name)
      获得定时任务池
      参数:
      name - 名称
      返回:
      数量
    • getScheduledDaemon

      public static boolean getScheduledDaemon(String name)
      获得定时任务池是否守护线程
      参数:
      name - 名称
      返回:
      数量
    • getExecutorPool

      public static int getExecutorPool(String name)
      获得线程池
      参数:
      name - 名称
      返回:
      数量
    • getExecutorDaemon

      public static boolean getExecutorDaemon(String name)
      获得线程是否守护线程
      参数:
      name - 名称
      返回:
      数量