@Context public class EnvironmentDeploymentContext extends Object implements com.netflix.config.DeploymentContext, ApplicationEventListener<ServiceStartedEvent>, Closeable
DeploymentContext that bridges to the current Environment.| Constructor and Description | 
|---|
EnvironmentDeploymentContext(EnvironmentConfiguration environment)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
String | 
getApplicationId()  | 
String | 
getDeploymentDatacenter()  | 
String | 
getDeploymentEnvironment()  | 
String | 
getDeploymentRegion()  | 
String | 
getDeploymentServerId()  | 
String | 
getDeploymentStack()  | 
String | 
getValue(com.netflix.config.DeploymentContext.ContextKey key)  | 
String | 
getZone()  | 
void | 
onApplicationEvent(ServiceStartedEvent event)
Handle an application event. 
 | 
void | 
setApplicationId(String appId)  | 
void | 
setDeploymentDatacenter(String deployedAt)  | 
void | 
setDeploymentEnvironment(String env)  | 
void | 
setDeploymentRegion(String region)  | 
void | 
setDeploymentServerId(String serverId)  | 
void | 
setDeploymentStack(String stack)  | 
void | 
setValue(com.netflix.config.DeploymentContext.ContextKey key,
        String value)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic EnvironmentDeploymentContext(EnvironmentConfiguration environment)
environment - environmentpublic String getDeploymentEnvironment()
getDeploymentEnvironment in interface com.netflix.config.DeploymentContextpublic void setDeploymentEnvironment(String env)
setDeploymentEnvironment in interface com.netflix.config.DeploymentContextpublic String getDeploymentDatacenter()
getDeploymentDatacenter in interface com.netflix.config.DeploymentContextpublic void setDeploymentDatacenter(String deployedAt)
setDeploymentDatacenter in interface com.netflix.config.DeploymentContextpublic String getApplicationId()
getApplicationId in interface com.netflix.config.DeploymentContextpublic void setApplicationId(String appId)
setApplicationId in interface com.netflix.config.DeploymentContextpublic void setDeploymentServerId(String serverId)
setDeploymentServerId in interface com.netflix.config.DeploymentContextpublic String getDeploymentServerId()
getDeploymentServerId in interface com.netflix.config.DeploymentContextpublic String getDeploymentStack()
getDeploymentStack in interface com.netflix.config.DeploymentContextpublic String getValue(com.netflix.config.DeploymentContext.ContextKey key)
getValue in interface com.netflix.config.DeploymentContextpublic void setValue(com.netflix.config.DeploymentContext.ContextKey key,
                     String value)
setValue in interface com.netflix.config.DeploymentContextpublic void setDeploymentStack(String stack)
setDeploymentStack in interface com.netflix.config.DeploymentContextpublic String getDeploymentRegion()
getDeploymentRegion in interface com.netflix.config.DeploymentContextpublic String getZone()
public void setDeploymentRegion(String region)
setDeploymentRegion in interface com.netflix.config.DeploymentContextpublic void onApplicationEvent(ServiceStartedEvent event)
ApplicationEventListeneronApplicationEvent in interface ApplicationEventListener<ServiceStartedEvent>event - the event to respond to@PreDestroy public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException