package com.qihoo.finance.chronus.common;

/**
 * Created by xiongpu on 2018/5/18.
 */
public class ChronusConstants {
    public static final String Y = "Y";
    public static final String N = "N";
    public static final String DEF_TAG = "default";
    public static final String DEF_CLUSTER = "default";
    public static final String API_TOKEN_KEY = "x-auth-token";
    public static final String REGISTER_TIME = "registerTime";
    public static final String CLUSTER = "cluster";
    public static final String DATA_VERSION = "dataVersion";
    public static final String IS_MASTER = "isMaster";
    public static final String ENABLE_MASTER = "enableMaster";
    public static final String ENABLE_WORKER = "enableWorker";
    public static final String STATE = "state";
    public static final String ADDRESS = "address";
    public static final String TAG = "tag";
    public static final String HOST_NAME = "hostName";
    public static final String NODE_NAME_CHRONUS = "chronus";

    public static final String GLOBAL_REGISTRY_ADDRESS = "globalRegistryAddress";
    public static final String GLOBAL_SERVICE_URL = "globalServiceUrl";
    public static final String CHRONUS_SDK_FACADE_FACTORY = "chronusSdkFacadeFactory";
    public static final String DEFAULT_SDK_FACTORY = "DUBBO";

    public static final String MONITOR_LOGGER_PATTERN = "{}|{}-{}|{}|{}|{}ms";
    public static final String DATE_FORMAT_YYYYMMDDHHMMSS = "yyyy-MM-dd HH:mm:ss";

    public static final String ADMIN = "admin";
    public static final String GUEST = "guest";
    public static final String ALL = "ALL";
    public static final String PUBLIC = "PUBLIC";

    public static final int MILLISECOND_2_SECOND = 1000;
}
