Package expert.os.harperdb
Class ServerBuilder
java.lang.Object
expert.os.harperdb.ServerBuilder
The initial configuration point for the HarperDB client.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerBuilderDefines the host of the HarperDB instance.withCredentials(String username, String password) Defines the credentials to be used for the HarperDB instance.
-
Method Details
-
withCredentials
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
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.
-