Class ZoneInfo

java.lang.Object
ai.vespa.cloud.ZoneInfo

public class ZoneInfo extends Object
Provides information about the zone context in which this container is running. This is available and can be injected when running in a cloud environment. If you don't need any other information than what's present here this should be preferred to SystemInfo as it will never change at runtime and therefore does not cause unnecessary reconstruction.
Author:
bratseth
  • Constructor Details

  • Method Details

    • application

      public ApplicationId application()
      Returns the application this is running as part of
    • zone

      public Zone zone()
      Returns the zone this is running in
    • defaultInfo

      public static ZoneInfo defaultInfo()
      Returns the info instance used when no zone info is available because we're not running in a cloud context