blob: 4cc41773479614a0ff518c71602b4f062e8e56e6 [file] [log] [blame]
/*
* Copyright 2019 WeBank
*
* 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.webank.wedatasphere.linkis.message.conf;
import com.webank.wedatasphere.linkis.common.conf.CommonVars;
import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.TypeAnnotationsScanner;
/**
* @date 2020/7/14
*/
public class MessageSchedulerConf {
public final static String SERVICE_SCAN_PACKAGE = CommonVars.apply("wds.linkis.ms.service.scan.package", "com.webank.wedatasphere").getValue();
public final static Reflections REFLECTIONS = new Reflections(SERVICE_SCAN_PACKAGE, new MethodAnnotationsScanner(), new TypeAnnotationsScanner(), new SubTypesScanner());
public final static String USER_KEY = "_username_";
public final static String REQUEST_KEY = "_req_";
public final static String RESULT_KEY = "_result_";
public final static String CONTEXT_KEY = "_context_";
public final static String SENDER_KEY = "_sender_";
public final static String TIMEOUT_POLICY = "_timeout_policy_";
public final static String DURATION_KEY = "_duration_";
}