public class ArangoDBAsyncImpl extends com.arangodb.internal.InternalArangoDB<ArangoExecutorAsync> implements ArangoDBAsync
ArangoDBAsync.Builder| Constructor and Description |
|---|
ArangoDBAsyncImpl(VstCommunicationAsync.Builder asyncCommBuilder,
ArangoSerializationFactory util,
VstCommunicationSync.Builder syncCommBuilder,
HostResolver asyncHostResolver,
HostResolver syncHostResolver,
com.arangodb.internal.ArangoContext context) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
createDatabase(DBCreateOptions options)
Creates a new database
|
CompletableFuture<Boolean> |
createDatabase(String name)
Creates a new database
|
CompletableFuture<UserEntity> |
createUser(String user,
String passwd)
Create a new user.
|
CompletableFuture<UserEntity> |
createUser(String user,
String passwd,
UserCreateOptions options)
Create a new user.
|
ArangoDatabaseAsync |
db()
Returns a handler of the system database
|
ArangoDatabaseAsync |
db(String name)
Returns a handler of the database by the given name
|
CompletableFuture<Void> |
deleteUser(String user)
Removes an existing user, identified by user.
|
CompletableFuture<Response> |
execute(Request request)
Generic Execute.
|
protected ArangoExecutorAsync |
executor() |
CompletableFuture<Collection<String>> |
getAccessibleDatabases()
Retrieves a list of all databases the current user can access
|
CompletableFuture<Collection<String>> |
getAccessibleDatabasesFor(String user)
List available database to the specified user
|
CompletableFuture<Collection<String>> |
getDatabases()
Retrieves a list of all existing databases
|
CompletableFuture<LogLevelEntity> |
getLogLevel()
Returns the server's current loglevel settings.
|
CompletableFuture<LogEntity> |
getLogs(LogOptions options)
Returns fatal, error, warning or info log messages from the server's global log.
|
CompletableFuture<ServerRole> |
getRole()
Returns the server role.
|
CompletableFuture<UserEntity> |
getUser(String user)
Fetches data about the specified user.
|
CompletableFuture<Collection<UserEntity>> |
getUsers()
Fetches data about all users.
|
CompletableFuture<ArangoDBVersion> |
getVersion()
Returns the server name and version number.
|
CompletableFuture<Void> |
grantDefaultCollectionAccess(String user,
Permissions permissions)
Sets the default access level for collections for the user
user. |
CompletableFuture<Void> |
grantDefaultDatabaseAccess(String user,
Permissions permissions)
Sets the default access level for databases for the user
user. |
CompletableFuture<UserEntity> |
replaceUser(String user,
UserUpdateOptions options)
Replaces the data of an existing user.
|
CompletableFuture<LogLevelEntity> |
setLogLevel(LogLevelEntity entity)
Modifies and returns the server's current loglevel settings.
|
void |
shutdown() |
CompletableFuture<UserEntity> |
updateUser(String user,
UserUpdateOptions options)
Partially updates the data of an existing user.
|
createDatabaseRequest, createDatabaseResponseDeserializer, createUserRequest, deleteUserRequest, getAccessibleDatabasesForRequest, getAccessibleDatabasesForResponseDeserializer, getDatabaseResponseDeserializer, getDatabasesRequest, getLogLevelRequest, getLogsRequest, getRoleRequest, getRoleResponseDeserializer, getUserRequest, getUsersRequest, getUsersResponseDeserializer, replaceUserRequest, setLogLevelRequest, updateUserDefaultCollectionAccessRequest, updateUserDefaultDatabaseAccessRequest, updateUserRequestcreatePath, request, util, utilclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitutil, utilpublic ArangoDBAsyncImpl(VstCommunicationAsync.Builder asyncCommBuilder, ArangoSerializationFactory util, VstCommunicationSync.Builder syncCommBuilder, HostResolver asyncHostResolver, HostResolver syncHostResolver, com.arangodb.internal.ArangoContext context)
protected ArangoExecutorAsync executor()
executor in class com.arangodb.internal.ArangoExecuteable<ArangoExecutorAsync>public void shutdown()
throws ArangoDBException
shutdown in interface ArangoDBAsyncArangoDBExceptionpublic ArangoDatabaseAsync db()
ArangoDBAsyncdb in interface ArangoDBAsyncpublic ArangoDatabaseAsync db(String name)
ArangoDBAsyncdb in interface ArangoDBAsyncname - Name of the databasepublic CompletableFuture<Boolean> createDatabase(String name)
ArangoDBAsynccreateDatabase in interface ArangoDBAsyncname - Has to contain a valid database namepublic CompletableFuture<Boolean> createDatabase(DBCreateOptions options)
ArangoDBAsynccreateDatabase in interface ArangoDBAsyncoptions - Creation optionspublic CompletableFuture<Collection<String>> getDatabases()
ArangoDBAsyncgetDatabases in interface ArangoDBAsyncpublic CompletableFuture<Collection<String>> getAccessibleDatabases()
ArangoDBAsyncgetAccessibleDatabases in interface ArangoDBAsyncpublic CompletableFuture<Collection<String>> getAccessibleDatabasesFor(String user)
ArangoDBAsyncgetAccessibleDatabasesFor in interface ArangoDBAsyncuser - The name of the user for which you want to query the databasespublic CompletableFuture<ArangoDBVersion> getVersion()
ArangoDBAsyncgetVersion in interface ArangoDBAsyncpublic CompletableFuture<ServerRole> getRole()
ArangoDBAsyncgetRole in interface ArangoDBAsyncpublic CompletableFuture<UserEntity> createUser(String user, String passwd)
ArangoDBAsynccreateUser in interface ArangoDBAsyncuser - The name of the userpasswd - The user passwordpublic CompletableFuture<UserEntity> createUser(String user, String passwd, UserCreateOptions options)
ArangoDBAsynccreateUser in interface ArangoDBAsyncuser - The name of the userpasswd - The user passwordoptions - Additional properties of the user, can be nullpublic CompletableFuture<Void> deleteUser(String user)
ArangoDBAsyncdeleteUser in interface ArangoDBAsyncuser - The name of the userpublic CompletableFuture<UserEntity> getUser(String user)
ArangoDBAsyncgetUser in interface ArangoDBAsyncuser - The name of the userpublic CompletableFuture<Collection<UserEntity>> getUsers()
ArangoDBAsyncgetUsers in interface ArangoDBAsyncpublic CompletableFuture<UserEntity> updateUser(String user, UserUpdateOptions options)
ArangoDBAsyncupdateUser in interface ArangoDBAsyncuser - The name of the useroptions - Properties of the user to be changedpublic CompletableFuture<UserEntity> replaceUser(String user, UserUpdateOptions options)
ArangoDBAsyncreplaceUser in interface ArangoDBAsyncuser - The name of the useroptions - Additional properties of the user, can be nullpublic CompletableFuture<Void> grantDefaultDatabaseAccess(String user, Permissions permissions)
ArangoDBAsyncuser. You need permission to the _system
database in order to execute this call.grantDefaultDatabaseAccess in interface ArangoDBAsyncuser - The name of the userpermissions - The permissions the user grantpublic CompletableFuture<Void> grantDefaultCollectionAccess(String user, Permissions permissions)
ArangoDBAsyncuser. You need permission to the _system
database in order to execute this call.grantDefaultCollectionAccess in interface ArangoDBAsyncuser - The name of the userpermissions - The permissions the user grantpublic CompletableFuture<Response> execute(Request request)
ArangoDBAsyncexecute in interface ArangoDBAsyncrequest - VelocyStream requestpublic CompletableFuture<LogEntity> getLogs(LogOptions options)
ArangoDBAsyncgetLogs in interface ArangoDBAsyncoptions - Additional options, can be nullpublic CompletableFuture<LogLevelEntity> getLogLevel()
ArangoDBAsyncgetLogLevel in interface ArangoDBAsyncpublic CompletableFuture<LogLevelEntity> setLogLevel(LogLevelEntity entity)
ArangoDBAsyncsetLogLevel in interface ArangoDBAsyncentity - loglevel settingsCopyright © 2016–2021 ArangoDB GmbH. All rights reserved.