Package com.yahoo.config.provision
Class Zone
java.lang.Object
com.yahoo.config.provision.Zone
The zone (environment + region) of this runtime, and some other information.
An injected instance of this will return the correct current environment and region.
Components can use this to obtain information about which zone they are running in.
- Author:
- bratseth
-
Constructor Summary
ConstructorDescriptionZone
(com.yahoo.cloud.config.ConfigserverConfig configserverConfig, CloudConfig cloudConfig) Zone
(Cloud cloud, SystemName systemName, Environment environment, RegionName region) Create from cloud, system, environment and region.Zone
(Environment environment, RegionName region) Create from environment and region.Zone
(SystemName systemName, Environment environment, RegionName region) Create from system, environment and region. -
Method Summary
-
Constructor Details
-
Zone
@Inject public Zone(com.yahoo.cloud.config.ConfigserverConfig configserverConfig, CloudConfig cloudConfig) -
Zone
Create from environment and region. Use for testing. -
Zone
Create from system, environment and region. Use for testing. -
Zone
Create from cloud, system, environment and region. Also used for testing.
-
-
Method Details
-
getCloud
Returns the current cloud -
system
Returns the current system -
environment
Returns the current environment -
region
Returns the current region -
systemLocalValue
Returns the string "environment.region" -
defaultZone
Do not use -
toString
-
equals
-
hashCode
public int hashCode()
-