Class JRTConnection

java.lang.Object
com.yahoo.vespa.config.JRTConnection
All Implemented Interfaces:
Connection

public class JRTConnection extends Object implements Connection
A JRT connection to a config server or config proxy.
Author:
Gunnar Gauslaa Bergem, hmusum
  • Constructor Summary

    Constructors
    Constructor
    Description
    JRTConnection(String address, com.yahoo.jrt.Supervisor supervisor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    com.yahoo.jrt.Target
    This is synchronized to avoid multiple ConfigInstances creating new targets simultaneously, if the existing target is null, invalid or has not yet been initialized.
    int
     
    void
    invokeAsync(com.yahoo.jrt.Request request, double jrtTimeout, com.yahoo.jrt.RequestWaiter requestWaiter)
     
    void
    invokeSync(com.yahoo.jrt.Request request, double jrtTimeout)
     
     

    Methods inherited from class java.lang.Object

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

    • JRTConnection

      public JRTConnection(String address, com.yahoo.jrt.Supervisor supervisor)
  • Method Details

    • invokeAsync

      public void invokeAsync(com.yahoo.jrt.Request request, double jrtTimeout, com.yahoo.jrt.RequestWaiter requestWaiter)
      Specified by:
      invokeAsync in interface Connection
    • invokeSync

      public void invokeSync(com.yahoo.jrt.Request request, double jrtTimeout)
      Specified by:
      invokeSync in interface Connection
    • getAddress

      public String getAddress()
      Specified by:
      getAddress in interface Connection
    • getTarget

      public com.yahoo.jrt.Target getTarget()
      This is synchronized to avoid multiple ConfigInstances creating new targets simultaneously, if the existing target is null, invalid or has not yet been initialized.
      Returns:
      The existing target, or a new one if invalid or null.
    • 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