All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com._4paradigm.openmldb.StandaloneOptions Maven / Gradle / Ivy

There is a newer version: 0.9.2-macos
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.1
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com._4paradigm.openmldb;

public class StandaloneOptions extends BasicRouterOptions {
  private transient long swigCPtr;

  protected StandaloneOptions(long cPtr, boolean cMemoryOwn) {
    super(sql_router_sdkJNI.StandaloneOptions_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(StandaloneOptions obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        sql_router_sdkJNI.delete_StandaloneOptions(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public StandaloneOptions() {
    this(sql_router_sdkJNI.new_StandaloneOptions__SWIG_0(), true);
  }

  public StandaloneOptions(String h, long p) {
    this(sql_router_sdkJNI.new_StandaloneOptions__SWIG_1(h, p), true);
  }

  public void setHost(String value) {
    sql_router_sdkJNI.StandaloneOptions_host_set(swigCPtr, this, value);
  }

  public String getHost() {
    return sql_router_sdkJNI.StandaloneOptions_host_get(swigCPtr, this);
  }

  public void setPort(long value) {
    sql_router_sdkJNI.StandaloneOptions_port_set(swigCPtr, this, value);
  }

  public long getPort() {
    return sql_router_sdkJNI.StandaloneOptions_port_get(swigCPtr, this);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy