dubbo Constants 源码

  • 2022-10-20
  • 浏览 (509)

dubbo Constants 代码

文件路径:/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Constants.java

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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 org.apache.dubbo.rpc.cluster;

public interface Constants {

    String FAIL_BACK_TASKS_KEY = "failbacktasks";

    int DEFAULT_FAILBACK_TASKS = 100;

    int DEFAULT_FORKS = 2;

    String WEIGHT_KEY = "weight";

    int DEFAULT_WEIGHT = 100;

    String MOCK_PROTOCOL = "mock";

    String FORCE_KEY = "force";

    String RAW_RULE_KEY = "rawRule";

    String VALID_KEY = "valid";

    String ENABLED_KEY = "enabled";

    String DYNAMIC_KEY = "dynamic";

    String SCOPE_KEY = "scope";

    String KEY_KEY = "key";

    String CONDITIONS_KEY = "conditions";

    String TAGS_KEY = "tags";

    /**
     * To decide whether to exclude unavailable invoker from the cluster
     */
    String CLUSTER_AVAILABLE_CHECK_KEY = "cluster.availablecheck";

    /**
     * The default value of cluster.availablecheck
     *
     * @see #CLUSTER_AVAILABLE_CHECK_KEY
     */
    boolean DEFAULT_CLUSTER_AVAILABLE_CHECK = true;

    /**
     * To decide whether to enable sticky strategy for cluster
     */
    String CLUSTER_STICKY_KEY = "sticky";

    /**
     * The default value of sticky
     *
     * @see #CLUSTER_STICKY_KEY
     */
    boolean DEFAULT_CLUSTER_STICKY = false;

    String ADDRESS_KEY = "address";

    /**
     * When this attribute appears in invocation's attachment, mock invoker will be used
     */
    String INVOCATION_NEED_MOCK = "invocation.need.mock";

    /**
     * when ROUTER_KEY's value is set to ROUTER_TYPE_CLEAR, RegistryDirectory will clean all current routers
     */
    String ROUTER_TYPE_CLEAR = "clean";

    String DEFAULT_SCRIPT_TYPE_KEY = "javascript";

    String PRIORITY_KEY = "priority";

    String RULE_KEY = "rule";

    String TYPE_KEY = "type";

    String RUNTIME_KEY = "runtime";

    String WARMUP_KEY = "warmup";

    int DEFAULT_WARMUP = 10 * 60 * 1000;

    String CONFIG_VERSION_KEY = "configVersion";

    String OVERRIDE_PROVIDERS_KEY = "providerAddresses";


    /**
     * key for router type, for e.g., "script"/"file",  corresponding to ScriptRouterFactory.NAME, FileRouterFactory.NAME
     */
    String ROUTER_KEY = "router";

    /**
     * The key name for reference URL in register center
     */
    String REFER_KEY = "refer";

    String ATTRIBUTE_KEY = "attribute";

    /**
     * The key name for export URL in register center
     */
    String EXPORT_KEY = "export";

    String PEER_KEY = "peer";

    String CONSUMER_URL_KEY = "CONSUMER_URL";

    /**
     * prefix of arguments router key
     */
    String ARGUMENTS = "arguments";

    String NEED_REEXPORT = "need-reexport";

    /**
     * The key of shortestResponseSlidePeriod
     */
    String SHORTEST_RESPONSE_SLIDE_PERIOD = "shortestResponseSlidePeriod";

    String SHOULD_FAIL_FAST_KEY = "dubbo.router.should-fail-fast";
}

相关信息

dubbo 源码目录

相关文章

dubbo CacheableRouterFactory 源码

dubbo Cluster 源码

dubbo ClusterInvoker 源码

dubbo ClusterScopeModelInitializer 源码

dubbo Configurator 源码

dubbo ConfiguratorFactory 源码

dubbo Directory 源码

dubbo LoadBalance 源码

dubbo Merger 源码

dubbo ProviderURLMergeProcessor 源码

0  赞