|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.config.SimpleDeploymentContext
com.netflix.config.ConfigurationBasedDeploymentContext
public class ConfigurationBasedDeploymentContext
An implementation of DeploymentContext based on system wide configuration set with
ConfigurationManager. All the getters will first consult corresponding property
and return the value if set.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.netflix.config.DeploymentContext |
|---|
DeploymentContext.ContextKey |
| Field Summary | |
|---|---|
static java.lang.String |
DEPLOYMENT_APPLICATION_ID_PROPERTY
Deprecated. |
static java.lang.String |
DEPLOYMENT_DATACENTER_PROPERTY
Deprecated. |
static java.lang.String |
DEPLOYMENT_ENVIRONMENT_PROPERTY
Deprecated. |
static java.lang.String |
DEPLOYMENT_REGION_PROPERTY
Deprecated. |
static java.lang.String |
DEPLOYMENT_SERVER_ID_PROPERTY
Deprecated. |
static java.lang.String |
DEPLOYMENT_STACK_PROPERTY
Deprecated. |
| Constructor Summary | |
|---|---|
ConfigurationBasedDeploymentContext()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getApplicationId()
Get the deployment environment. |
java.lang.String |
getDeploymentDatacenter()
Get the deployment environment. |
java.lang.String |
getDeploymentEnvironment()
Get the deployment environment. |
java.lang.String |
getDeploymentRegion()
Get the deployment environment. |
java.lang.String |
getDeploymentServerId()
Get the deployment environment. |
java.lang.String |
getDeploymentStack()
Get the deployment environment. |
java.lang.String |
getValue(DeploymentContext.ContextKey key)
|
void |
setApplicationId(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
void |
setDeploymentDatacenter(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
void |
setDeploymentEnvironment(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
void |
setDeploymentRegion(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
void |
setDeploymentServerId(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
void |
setDeploymentStack(java.lang.String value)
Call super and also update the configuration to reflect the changes. |
| Methods inherited from class com.netflix.config.SimpleDeploymentContext |
|---|
setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final java.lang.String DEPLOYMENT_ENVIRONMENT_PROPERTY
ContextKey#getKey() on ContextKey#environment as the property to set or get
@Deprecated public static final java.lang.String DEPLOYMENT_DATACENTER_PROPERTY
ContextKey#getKey() on ContextKey#datacenter as the property to set or get
@Deprecated public static final java.lang.String DEPLOYMENT_APPLICATION_ID_PROPERTY
ContextKey#getKey() on ContextKey#appId as the property to set or get
@Deprecated public static final java.lang.String DEPLOYMENT_SERVER_ID_PROPERTY
ContextKey#getKey() on ContextKey#serverId as the property to set or get
@Deprecated public static final java.lang.String DEPLOYMENT_STACK_PROPERTY
ContextKey#getKey() on ContextKey#stack as the property to set or get
@Deprecated public static final java.lang.String DEPLOYMENT_REGION_PROPERTY
ContextKey#getKey() on ContextKey#environment as the property to set or get
| Constructor Detail |
|---|
public ConfigurationBasedDeploymentContext()
| Method Detail |
|---|
public java.lang.String getDeploymentEnvironment()
getDeploymentEnvironment in interface DeploymentContextgetDeploymentEnvironment in class SimpleDeploymentContextpublic void setDeploymentEnvironment(java.lang.String value)
setDeploymentEnvironment in interface DeploymentContextsetDeploymentEnvironment in class SimpleDeploymentContextvalue - public java.lang.String getDeploymentDatacenter()
getDeploymentDatacenter in interface DeploymentContextgetDeploymentDatacenter in class SimpleDeploymentContextpublic void setDeploymentDatacenter(java.lang.String value)
setDeploymentDatacenter in interface DeploymentContextsetDeploymentDatacenter in class SimpleDeploymentContextvalue - public java.lang.String getApplicationId()
getApplicationId in interface DeploymentContextgetApplicationId in class SimpleDeploymentContextpublic void setApplicationId(java.lang.String value)
setApplicationId in interface DeploymentContextsetApplicationId in class SimpleDeploymentContextvalue - public java.lang.String getDeploymentServerId()
getDeploymentServerId in interface DeploymentContextgetDeploymentServerId in class SimpleDeploymentContextpublic void setDeploymentServerId(java.lang.String value)
setDeploymentServerId in interface DeploymentContextsetDeploymentServerId in class SimpleDeploymentContextvalue - public java.lang.String getDeploymentStack()
getDeploymentStack in interface DeploymentContextgetDeploymentStack in class SimpleDeploymentContextpublic void setDeploymentStack(java.lang.String value)
setDeploymentStack in interface DeploymentContextsetDeploymentStack in class SimpleDeploymentContextvalue - public java.lang.String getDeploymentRegion()
getDeploymentRegion in interface DeploymentContextgetDeploymentRegion in class SimpleDeploymentContextpublic void setDeploymentRegion(java.lang.String value)
setDeploymentRegion in interface DeploymentContextsetDeploymentRegion in class SimpleDeploymentContextvalue - public java.lang.String getValue(DeploymentContext.ContextKey key)
getValue in interface DeploymentContextgetValue in class SimpleDeploymentContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||