Class EnvironmentAdapter

java.lang.Object
org.apache.dubbo.common.infra.support.EnvironmentAdapter
All Implemented Interfaces:
InfraAdapter, ScopeModelAware

@Activate public class EnvironmentAdapter extends Object implements InfraAdapter, ScopeModelAware
  • Constructor Details

    • EnvironmentAdapter

      public EnvironmentAdapter()
  • Method Details

    • setApplicationModel

      public void setApplicationModel(ApplicationModel applicationModel)
      Description copied from interface: ScopeModelAware
      Override this method if you just need application model
      Specified by:
      setApplicationModel in interface ScopeModelAware
      Parameters:
      applicationModel -
    • getExtraAttributes

      public Map<String,String> getExtraAttributes(Map<String,String> params)
      1. OS Environment: DUBBO_LABELS=tag=pre;key=value 2. JVM Options: -Denv_keys = DUBBO_KEY1, DUBBO_KEY2
      Specified by:
      getExtraAttributes in interface InfraAdapter
      Parameters:
      params - information of this Dubbo process, currently includes application name and host address.
      Returns:
    • getAttribute

      public String getAttribute(String key)
      Specified by:
      getAttribute in interface InfraAdapter
      Parameters:
      key -
      Returns: