/* Copyright 2020 The FedLearn Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.jdt.fedlearn.common.constant;

/**
 * @Description: app常量
 */
public class AppConstant {
    /**
     * @分隔符
     */
    public static final String AT_SPLIT = "@";
    /**
     * 逗号分隔符
     */
    public static final String COMMA = ",";
    /**
     * 逗号分隔符
     */
    public static final String SPLIT = ";";
    /**
     * 冒号分隔符
     */
    public static final String COLON = ":";
    /**
     * url /分隔符
     */
    public static final String SLASH = "/";
    /**
     * 服务器配置
     */

    public static final String DEFAULT_MANAGER_CONF = "/conf/manager.properties";
    /**
     * 客户端配置
     */
    public static String DEFAULT_WORKER_CONF = "/conf/worker.properties";

    public static final String INIT_SUCCESS = "init_success";

    public static final String INIT_FAILED = "init_failed";

    public static final String MANAGER_CACHE_TYPE = "cacheType";

    public static final String MANAGER_CACHE_KEY = "cacheKey";

    public static final String MANAGER_CACHE_VALUE = "cacheValue";

    public static final String MANAGER_CACHE_MODEL_TOKEN = "cacheModelToken";

    public static final String MODEL_ADDRESS_CACHE = "modelAddressCache";

    public static final String MODEL_MESSAGE_CACHE = "modelMessageCache";

    public static final String SUB_MESSAGE_CACHE = "subMessageCache";

    public static final String MODEL_COUNT_CACHE = "modelCount";

    public static final String RESULT_ADDRESS_CACHE = "resultAddressCache";

    public static final String HTTP_PREFIX = "http://";

    public static final String MODEL_KEY = "model";

    public static final String TRAIN_DATA_KEY = "trainData";

    public static final String MODEL_UPDATE_KEY = "modelUpdateKey";

    public static final String MODEL_UPDATE_VALUE = "modelUpdateValue";

    public static final String MODEL_SAVE_KEY = "modelSaveKey";

    public static final String MODEL_SAVE_VALUE = "modelSaveValue";

    public static final String DATA_UPDATE_KEY = "dataUpdateKey";

    public static final String DATA_UPDATE_VALUE = "dataUpdateValue";

    public static final String NETTY_CONNECT = "connect";

    public static final String NETWORK_TYPE_NETTY = "netty";


}
