Class ServerBuilder

java.lang.Object
expert.os.harperdb.ServerBuilder

public final class ServerBuilder extends Object
The initial configuration point for the HarperDB client.
  • Method Details

    • withCredentials

      public Server withCredentials(String username, String password)
      Defines the credentials to be used for the HarperDB instance.
      Parameters:
      username - the username to be used for the HarperDB instance.
      password - the password to be used for the HarperDB instance.
      Returns:
      an initial configuration of the builder.
      Throws:
      NullPointerException - if username or password is null.
    • of

      public static ServerBuilder of(String uri)
      Defines the host of the HarperDB instance.
      Parameters:
      uri - the host of the HarperDB instance. E.g.: http://localhost:9925.
      Returns:
      an initial configuration of the builder.
      Throws:
      NullPointerException - if uri is null.