Skip to main content
  • GPUdb

    public GPUdb(String url) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server at the specified URL using default options. Note that these options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    url - The URL of the GPUdb server. Can be a comma-separated string containing multiple full URLs, or a single URL. For example ‘http://172.42.40.1:9191,,http://172.42.40.2:9191’. If a single URL is given, the given URL will be used as the primary URL.
    Throws:
    GPUdbException - if an error occurs during creation.
  • GPUdb

    public GPUdb(URL url) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server at the specified URL using default options. Note that these options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    url - The URL of the GPUdb server. The given URL will be used as the primary URL.
    Throws:
    GPUdbException - if an error occurs during creation.
  • GPUdb

    public GPUdb(List<URL> urls) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server with the specified URLs using default options. At any given time, one URL (initially selected at random from the list) will be active and used for all GPUdb calls, but in the event of failure, the other URLs will be tried in order, and if a working one is found it will become the new active URL. Note that the default options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    urls - The URLs of the GPUdb server. If a single URL is given, it will be used as the primary URL.
    Throws:
    GPUdbException - if an error occurs during creation.
  • GPUdb

    public GPUdb(String url, GPUdbBase.Options options) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server at the specified URL using the specified options. Note that these options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    url - The URL of the GPUdb server. Can be a comma-separated string containing multiple full URLs, or a single URL. For example ‘http://172.42.40.1:9191,,http://172.42.40.2:9191’. If a single URL is given, and no primary URL is specified via the options, the given URL will be used as the primary URL.
    options - The options, e.g. primary cluster URL, to use.
    Throws:
    GPUdbException - if an error occurs during creation.
    See Also:
  • GPUdb

    public GPUdb(URL url, GPUdbBase.Options options) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server at the specified URL using the specified options. Note that these options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    url - The URL of the GPUdb server. If no primary URL is specified via the options, the given URL will be used as the primary URL.
    options - The options, e.g. primary cluster URL, to use.
    Throws:
    GPUdbException - if an error occurs during creation.
    See Also:
  • GPUdb

    public GPUdb(List<URL> urls, GPUdbBase.Options options) throws GPUdbException
    Creates a GPUdb instance for the GPUdb server with the specified URLs using the specified options. At any given time, one URL (initially selected at random from the list) will be active and used for all GPUdb calls, but in the event of failure, the other URLs will be tried in order, and if a working one is found it will become the new active URL. Note that the specified options cannot be changed subsequently; to use different options, a new GPUdb instance must be created.
    Parameters:
    urls - The URLs of the GPUdb server. If a single URL is given, and no primary URL is specified via the options, the given URL will be used as the primary URL.
    options - The options, e.g. primary cluster URL, to use.
    Throws:
    GPUdbException - if an error occurs during creation.
    See Also: