Class EnvironmentAdapter
java.lang.Object
org.apache.dubbo.common.infra.support.EnvironmentAdapter
- All Implemented Interfaces:
InfraAdapter,ScopeModelAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) getExtraAttributes(Map<String, String> params) 1.voidsetApplicationModel(ApplicationModel applicationModel) Override this method if you just need application modelMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setFrameworkModel, setModuleModel, setScopeModel
-
Constructor Details
-
EnvironmentAdapter
public EnvironmentAdapter()
-
-
Method Details
-
setApplicationModel
Description copied from interface:ScopeModelAwareOverride this method if you just need application model- Specified by:
setApplicationModelin interfaceScopeModelAware- Parameters:
applicationModel-
-
getExtraAttributes
1. OS Environment: DUBBO_LABELS=tag=pre;key=value 2. JVM Options: -Denv_keys = DUBBO_KEY1, DUBBO_KEY2- Specified by:
getExtraAttributesin interfaceInfraAdapter- Parameters:
params- information of this Dubbo process, currently includes application name and host address.- Returns:
-
getAttribute
- Specified by:
getAttributein interfaceInfraAdapter- Parameters:
key-- Returns:
-