public interface ArangoDB extends ArangoSerializationAccessor
Will be instantiated through ArangoDB.Builder
ArangoDB arango = new ArangoDB.Builder().build();
ArangoDB arango = new ArangoDB.Builder().host("127.0.0.1", 8529).build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ArangoDB.Builder
Builder class to build an instance of
ArangoDB. |
| Modifier and Type | Method and Description |
|---|---|
ArangoDB |
_setCursorInitializer(ArangoCursorInitializer cursorInitializer)
Attention: Please do not use!
|
Boolean |
createDatabase(String name)
Creates a new database with the given name.
|
UserEntity |
createUser(String user,
String passwd)
Create a new user.
|
UserEntity |
createUser(String user,
String passwd,
UserCreateOptions options)
Create a new user.
|
ArangoDatabase |
db()
Returns a
ArangoDatabase instance for the _system database. |
ArangoDatabase |
db(String name)
Returns a
ArangoDatabase instance for the given database name. |
void |
deleteUser(String user)
Removes an existing user, identified by user.
|
Response |
execute(Request request)
Generic Execute.
|
Response |
execute(Request request,
com.arangodb.internal.net.HostHandle hostHandle)
Generic Execute.
|
Collection<String> |
getAccessibleDatabases()
Retrieves a list of all databases the current user can access
|
Collection<String> |
getAccessibleDatabasesFor(String user)
List available database to the specified user
|
Collection<String> |
getDatabases()
Retrieves a list of all existing databases
|
LogLevelEntity |
getLogLevel()
Returns the server's current loglevel settings.
|
LogEntity |
getLogs(LogOptions options)
Returns fatal, error, warning or info log messages from the server's global log.
|
ServerRole |
getRole()
Returns the server role.
|
UserEntity |
getUser(String user)
Fetches data about the specified user.
|
Collection<UserEntity> |
getUsers()
Fetches data about all users.
|
ArangoDBVersion |
getVersion()
Returns the server name and version number.
|
void |
grantDefaultCollectionAccess(String user,
Permissions permissions)
Sets the default access level for collections for the user
user. |
void |
grantDefaultDatabaseAccess(String user,
Permissions permissions)
Sets the default access level for databases for the user
user. |
UserEntity |
replaceUser(String user,
UserUpdateOptions options)
Replaces the data of an existing user.
|
LogLevelEntity |
setLogLevel(LogLevelEntity entity)
Modifies and returns the server's current loglevel settings.
|
void |
shutdown()
Releases all connections to the server and clear the connection pool.
|
UserEntity |
updateUser(String user,
UserUpdateOptions options)
Partially updates the data of an existing user.
|
util, utilvoid shutdown()
throws ArangoDBException
ArangoDBExceptionArangoDatabase db()
ArangoDatabase instance for the _system database.ArangoDatabase db(String name)
ArangoDatabase instance for the given database name.name - Name of the databaseBoolean createDatabase(String name) throws ArangoDBException
name - Name of the database to createArangoDBExceptionCollection<String> getDatabases() throws ArangoDBException
ArangoDBExceptionCollection<String> getAccessibleDatabases() throws ArangoDBException
ArangoDBExceptionCollection<String> getAccessibleDatabasesFor(String user) throws ArangoDBException
user - The name of the user for which you want to query the databasesArangoDBExceptionArangoDBVersion getVersion() throws ArangoDBException
ArangoDBExceptionServerRole getRole() throws ArangoDBException
ArangoDBExceptionUserEntity createUser(String user, String passwd) throws ArangoDBException
user - The name of the userpasswd - The user passwordArangoDBExceptionUserEntity createUser(String user, String passwd, UserCreateOptions options) throws ArangoDBException
user - The name of the userpasswd - The user passwordoptions - Additional options, can be nullArangoDBExceptionvoid deleteUser(String user) throws ArangoDBException
user - The name of the userArangoDBExceptionUserEntity getUser(String user) throws ArangoDBException
user - The name of the userArangoDBExceptionCollection<UserEntity> getUsers() throws ArangoDBException
ArangoDBExceptionUserEntity updateUser(String user, UserUpdateOptions options) throws ArangoDBException
user - The name of the useroptions - Properties of the user to be changedArangoDBExceptionUserEntity replaceUser(String user, UserUpdateOptions options) throws ArangoDBException
user - The name of the useroptions - Additional properties of the user, can be nullArangoDBExceptionvoid grantDefaultDatabaseAccess(String user, Permissions permissions) throws ArangoDBException
user. You need permission to the _system
database in order to execute this call.user - The name of the userpermissions - The permissions the user grantArangoDBExceptionvoid grantDefaultCollectionAccess(String user, Permissions permissions) throws ArangoDBException
user. You need permission to the _system
database in order to execute this call.user - The name of the userpermissions - The permissions the user grantArangoDBExceptionResponse execute(Request request) throws ArangoDBException
request - VelocyStream requestArangoDBExceptionResponse execute(Request request, com.arangodb.internal.net.HostHandle hostHandle) throws ArangoDBException
request - VelocyStream requesthostHandle - Used to stick to a specific host when using LoadBalancingStrategy.ROUND_ROBINArangoDBExceptionLogEntity getLogs(LogOptions options) throws ArangoDBException
options - Additional options, can be nullArangoDBExceptionLogLevelEntity getLogLevel() throws ArangoDBException
ArangoDBExceptionLogLevelEntity setLogLevel(LogLevelEntity entity) throws ArangoDBException
entity - loglevel settingsArangoDBExceptionArangoDB _setCursorInitializer(ArangoCursorInitializer cursorInitializer)
cursorInitializer - Copyright © 2016–2019 ArangoDB GmbH. All rights reserved.