Class VNSConfig

java.lang.Object
org.apache.vinci.transport.vns.client.VNSConfig

public final class VNSConfig extends Object
Deprecated class whose functions are now entirely provided by VinciContext.
  • Field Details

    • INSTANCE

      public static VNSConfig INSTANCE
  • Constructor Details

    • VNSConfig

      public VNSConfig()
  • Method Details

    • getHost

      @Deprecated public String getHost()
      Deprecated.
      Use VinciContext.getVNSHost() instead.
      Return the VNS hostname. When this class is first loaded, it will set the hostname from the java property VNS_HOST. To set the VNS_HOST using this java property, you must therefore specify the property before the class is ever referenced, e.g. through the command-line property option -DVNS_HOST=[hostname], or by calling System.setProperty("VNS_HOST", [hostname]) before ever invoking any Vinci client code. Otherwise, you can set the hostname using the setHost() method provided by this class.
      Returns:
      -
      Throws:
      IllegalStateException - if no VNS host has been specified.
    • getPort

      @Deprecated public int getPort()
      Deprecated.
      Use VinciContext.getVNSPort() instead.
      Return the VNS listener port. When this class is first loaded, it will attempt to set the port number from the java property VNS_PORT. To set the port using this java property, you must therefore specify the VNS_PORT property before the class is ever referenced, e.g. through the command-line property option -DVNS_PORT=[hostname], or by calling System.setProperty("VNS_PORT", [hostname]) before ever invoking any Vinci client code. Otherwise, the port will default to 9000. You can override this default (or any property-specified value) by calling the setPort() method provided by this class.
      Returns:
      -
    • setHost

      @Deprecated public void setHost(String h)
      Deprecated.
      Use VinciContext.setVNSHost() instead.
      Set the VNS hostname. Explicitly setting the VNS hostname using this method will override any hostname set via the VNS_HOST java property.
      Parameters:
      h - -
    • setPort

      @Deprecated public void setPort(int p)
      Deprecated.
      Use VinciContext.setVNSPort() instead.
      Set the VNS port. Explicitly setting the VNS hostname using this method will override any port number set via the VNS_PORT java property.
      Parameters:
      p - -