Class VNSConfig


  • public final class VNSConfig
    extends java.lang.Object
    Deprecated class whose functions are now entirely provided by VinciContext.
    • Constructor Summary

      Constructors 
      Constructor Description
      VNSConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Deprecated.
      Use VinciContext.getVNSHost() instead.
      int getPort()
      Deprecated.
      Use VinciContext.getVNSPort() instead.
      void setHost​(java.lang.String h)
      Deprecated.
      Use VinciContext.setVNSHost() instead.
      void setPort​(int p)
      Deprecated.
      Use VinciContext.setVNSPort() instead.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • VNSConfig

        public VNSConfig()
    • Method Detail

      • getHost

        @Deprecated
        public java.lang.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:
        java.lang.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​(java.lang.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 - -