com.netflix.config
Class SimpleDeploymentContext
java.lang.Object
com.netflix.config.SimpleDeploymentContext
- All Implemented Interfaces:
- DeploymentContext
- Direct Known Subclasses:
- ConfigurationBasedDeploymentContext
public class SimpleDeploymentContext
- extends java.lang.Object
- implements DeploymentContext
An implemenatation of DeploymentContext with simple setters and getters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDeploymentContext
public SimpleDeploymentContext()
getDeploymentEnvironment
public java.lang.String getDeploymentEnvironment()
- Specified by:
getDeploymentEnvironment in interface DeploymentContext
- Returns:
- the deployment environment. For example "test", "dev", "prod".
setDeploymentEnvironment
public void setDeploymentEnvironment(java.lang.String env)
- Specified by:
setDeploymentEnvironment in interface DeploymentContext
getDeploymentDatacenter
public java.lang.String getDeploymentDatacenter()
- Specified by:
getDeploymentDatacenter in interface DeploymentContext
- Returns:
- the name or ID of the data center.
setDeploymentDatacenter
public void setDeploymentDatacenter(java.lang.String deployedAt)
- Specified by:
setDeploymentDatacenter in interface DeploymentContext
getApplicationId
public java.lang.String getApplicationId()
- Specified by:
getApplicationId in interface DeploymentContext
setApplicationId
public void setApplicationId(java.lang.String appId)
- Specified by:
setApplicationId in interface DeploymentContext
setDeploymentServerId
public void setDeploymentServerId(java.lang.String serverId)
- Specified by:
setDeploymentServerId in interface DeploymentContext
getDeploymentServerId
public java.lang.String getDeploymentServerId()
- Specified by:
getDeploymentServerId in interface DeploymentContext
getDeploymentStack
public java.lang.String getDeploymentStack()
- Specified by:
getDeploymentStack in interface DeploymentContext
- Returns:
- a vertical stack name where this application is deployed. The stack name
can be used to affect the application's behavior.
setDeploymentStack
public void setDeploymentStack(java.lang.String stack)
- Specified by:
setDeploymentStack in interface DeploymentContext
getDeploymentRegion
public java.lang.String getDeploymentRegion()
- Specified by:
getDeploymentRegion in interface DeploymentContext
- Returns:
- region of the deployment. In EC2, this could be
Amazon region "us-east-1", "us-west-1", etc.
setDeploymentRegion
public void setDeploymentRegion(java.lang.String region)
- Specified by:
setDeploymentRegion in interface DeploymentContext
getValue
public java.lang.String getValue(DeploymentContext.ContextKey key)
- Specified by:
getValue in interface DeploymentContext
setValue
public void setValue(DeploymentContext.ContextKey key,
java.lang.String value)
- Specified by:
setValue in interface DeploymentContext