public class ConfigurationBasedDeploymentContext extends SimpleDeploymentContext
DeploymentContext based on system wide configuration set with
ConfigurationManager. All the getters will first consult corresponding property
and return the value if set.DeploymentContext.ContextKey| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ConfigurationBasedDeploymentContext() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
setValue@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 getpublic 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