Class Endpoint.Target

java.lang.Object
com.yahoo.config.application.api.Endpoint.Target
Enclosing class:
Endpoint

public static class Endpoint.Target extends Object
A target of an endpoint
  • Constructor Summary

    Constructors
    Constructor
    Description
    Target(com.yahoo.config.provision.RegionName region, com.yahoo.config.provision.InstanceName instance, int weight)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    com.yahoo.config.provision.InstanceName
    The instance this points to
    com.yahoo.config.provision.RegionName
    The region this points to
     
    int
    The routing weight of this target

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Target

      public Target(com.yahoo.config.provision.RegionName region, com.yahoo.config.provision.InstanceName instance, int weight)
  • Method Details

    • region

      public com.yahoo.config.provision.RegionName region()
      The region this points to
    • instance

      public com.yahoo.config.provision.InstanceName instance()
      The instance this points to
    • weight

      public int weight()
      The routing weight of this target
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object