public final class AdminConnectionConfiguration extends AbstractConnectionConfiguration<AdminConnection>
mOptionParser, mOptionsCREDENTIALS, KRB5_REVERSE_DNS, PASSWORD, SERVER, USERNAME| Constructor and Description |
|---|
AdminConnectionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AdminConnection |
connect()
Open the connection to the database as described by this configuration.
|
AdminConnectionConfiguration |
credentials(ConnectionCredentials theConnectionCredentials)
Specify the credentials that should be used to authenticate to the database.
|
AdminConnectionConfiguration |
credentials(String theUsername,
String thePassword)
Specify the username and password that should be used to authenticate to the database.
|
AdminConnectionConfiguration |
server(String theServerURL)
Specify the URL of the database server.
|
static AdminConnectionConfiguration |
toEmbeddedServer() |
static AdminConnectionConfiguration |
toServer(String theServerURL) |
getOptions, set, setAllpublic AdminConnectionConfiguration server(String theServerURL)
server in interface LoginConnectionConfiguration<AdminConnection>server in class AbstractConnectionConfiguration<AdminConnection>theServerURL - the server urlpublic AdminConnectionConfiguration credentials(String theUsername, String thePassword)
credentials in interface LoginConnectionConfiguration<AdminConnection>credentials in class AbstractConnectionConfiguration<AdminConnection>theUsername - the usernamethePassword - the passwordpublic AdminConnectionConfiguration credentials(ConnectionCredentials theConnectionCredentials)
credentials in interface LoginConnectionConfiguration<AdminConnection>credentials in class AbstractConnectionConfiguration<AdminConnection>theConnectionCredentials - the credentialspublic AdminConnection connect() throws StardogException
StardogException - if there was an error while opening the connection.public static AdminConnectionConfiguration toEmbeddedServer()
public static AdminConnectionConfiguration toServer(String theServerURL)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.