类 TenantUtil

java.lang.Object
com.alibaba.nacos.client.utils.TenantUtil

public class TenantUtil extends Object
Tenant Util.
作者:
Nacos
  • 字段详细资料

    • USER_TENANT

      private static final String USER_TENANT
    • DEFAULT_ACM_NAMESPACE

      private static final String DEFAULT_ACM_NAMESPACE
      另请参阅:
    • TENANT_ID

      private static final String TENANT_ID
      另请参阅:
    • ACM_NAMESPACE_PROPERTY

      private static final String ACM_NAMESPACE_PROPERTY
      另请参阅:
  • 构造器详细资料

    • TenantUtil

      public TenantUtil()
  • 方法详细资料

    • getUserTenantForAcm

      public static String getUserTenantForAcm()
      Adapt the way ACM gets tenant on the cloud.

      Note the difference between getting and getting ANS. Since the processing logic on the server side is different, the default value returns differently.

      返回:
      user tenant for acm
    • getUserTenantForAns

      public static String getUserTenantForAns()
      Adapt the way ANS gets tenant on the cloud.
      返回:
      user tenant for ans