com.netflix.config
Class SimpleDeploymentContext

java.lang.Object
  extended by 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.


Constructor Summary
SimpleDeploymentContext()
           
 
Method Summary
 java.lang.String getApplicationId()
           
 java.lang.String getDeploymentDatacenter()
           
 java.lang.String getDeploymentEnvironment()
           
 java.lang.String getDeploymentRegion()
           
 java.lang.String getDeploymentServerId()
           
 java.lang.String getDeploymentStack()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDeploymentContext

public SimpleDeploymentContext()
Method Detail

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