@Singleton
public class ConfigBasedDeploymentContext
extends java.lang.Object
implements com.netflix.config.DeploymentContext
| Constructor and Description |
|---|
ConfigBasedDeploymentContext(com.netflix.archaius.api.Config config,
com.netflix.archaius.api.config.SettableConfig override) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationId() |
java.lang.String |
getDeploymentDatacenter() |
java.lang.String |
getDeploymentEnvironment() |
java.lang.String |
getDeploymentRegion() |
java.lang.String |
getDeploymentServerId() |
java.lang.String |
getDeploymentStack() |
java.lang.String |
getValue(com.netflix.config.DeploymentContext.ContextKey key) |
void |
setApplicationId(java.lang.String appId) |
void |
setDeploymentDatacenter(java.lang.String deployedAt) |
void |
setDeploymentEnvironment(java.lang.String env) |
void |
setDeploymentRegion(java.lang.String region) |
void |
setDeploymentServerId(java.lang.String serverId) |
void |
setDeploymentStack(java.lang.String stack) |
void |
setValue(com.netflix.config.DeploymentContext.ContextKey key,
java.lang.String value) |
@Inject
public ConfigBasedDeploymentContext(com.netflix.archaius.api.Config config,
com.netflix.archaius.api.config.SettableConfig override)
public java.lang.String getDeploymentEnvironment()
getDeploymentEnvironment in interface com.netflix.config.DeploymentContextpublic void setDeploymentEnvironment(java.lang.String env)
setDeploymentEnvironment in interface com.netflix.config.DeploymentContextpublic java.lang.String getDeploymentDatacenter()
getDeploymentDatacenter in interface com.netflix.config.DeploymentContextpublic void setDeploymentDatacenter(java.lang.String deployedAt)
setDeploymentDatacenter in interface com.netflix.config.DeploymentContextpublic java.lang.String getApplicationId()
getApplicationId in interface com.netflix.config.DeploymentContextpublic void setApplicationId(java.lang.String appId)
setApplicationId in interface com.netflix.config.DeploymentContextpublic void setDeploymentServerId(java.lang.String serverId)
setDeploymentServerId in interface com.netflix.config.DeploymentContextpublic java.lang.String getDeploymentServerId()
getDeploymentServerId in interface com.netflix.config.DeploymentContextpublic java.lang.String getDeploymentStack()
getDeploymentStack in interface com.netflix.config.DeploymentContextpublic java.lang.String getValue(com.netflix.config.DeploymentContext.ContextKey key)
getValue in interface com.netflix.config.DeploymentContextpublic void setValue(com.netflix.config.DeploymentContext.ContextKey key,
java.lang.String value)
setValue in interface com.netflix.config.DeploymentContextpublic void setDeploymentStack(java.lang.String stack)
setDeploymentStack in interface com.netflix.config.DeploymentContextpublic java.lang.String getDeploymentRegion()
getDeploymentRegion in interface com.netflix.config.DeploymentContextpublic void setDeploymentRegion(java.lang.String region)
setDeploymentRegion in interface com.netflix.config.DeploymentContext