Class ClusterInfoProvider

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.container.jdisc.ClusterInfoProvider
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, com.yahoo.container.di.componentgraph.Provider<ai.vespa.cloud.Cluster>, Comparable<com.yahoo.component.Component>

public class ClusterInfoProvider extends com.yahoo.component.AbstractComponent implements com.yahoo.container.di.componentgraph.Provider<ai.vespa.cloud.Cluster>
Provides information about the zone in which this container is running. This is available and can be injected when running in a cloud environment.
Author:
bratseth
  • Field Summary

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClusterInfoProvider(com.yahoo.cloud.config.ClusterInfoConfig cfg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ai.vespa.cloud.Cluster
    get()
     

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.yahoo.component.Deconstructable

    deconstruct
  • Constructor Details

    • ClusterInfoProvider

      @Inject public ClusterInfoProvider(com.yahoo.cloud.config.ClusterInfoConfig cfg)
  • Method Details

    • get

      public ai.vespa.cloud.Cluster get()
      Specified by:
      get in interface com.yahoo.container.di.componentgraph.Provider<ai.vespa.cloud.Cluster>