37
37
import com .arangodb .internal .util .DefaultArangoSerialization ;
38
38
import com .arangodb .internal .velocystream .VstCommunicationSync ;
39
39
import com .arangodb .internal .velocystream .VstConnectionFactorySync ;
40
- import com .arangodb .model .DBCreateOptions ;
41
- import com .arangodb .model .LogOptions ;
42
- import com .arangodb .model .UserCreateOptions ;
43
- import com .arangodb .model .UserUpdateOptions ;
40
+ import com .arangodb .model .*;
44
41
import com .arangodb .util .ArangoDeserializer ;
45
42
import com .arangodb .util .ArangoSerialization ;
46
43
import com .arangodb .util .ArangoSerializer ;
@@ -197,6 +194,16 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
197
194
*/
198
195
CompletableFuture <ServerRole > getRole ();
199
196
197
+ /**
198
+ * Returns the id of a server in a cluster.
199
+ *
200
+ * @return the server id
201
+ * @throws ArangoDBException
202
+ * @see <a href="https://www.arangodb.com/docs/stable/http/administration-and-monitoring.html#return-id-of-a-server-in-a-cluster">API
203
+ * Documentation</a>
204
+ */
205
+ CompletableFuture <String > getServerId () throws ArangoDBException ;
206
+
200
207
/**
201
208
* Create a new user. This user will not have access to any database. You need permission to the _system database in
202
209
* order to execute this call.
@@ -331,6 +338,14 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
331
338
*/
332
339
CompletableFuture <LogLevelEntity > getLogLevel ();
333
340
341
+ /**
342
+ * Returns the server's current loglevel settings.
343
+ *
344
+ * @return the server's current loglevel settings
345
+ * @since ArangoDB 3.10
346
+ */
347
+ CompletableFuture <LogLevelEntity > getLogLevel (final LogLevelOptions options );
348
+
334
349
/**
335
350
* Modifies and returns the server's current loglevel settings.
336
351
*
@@ -339,6 +354,15 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
339
354
*/
340
355
CompletableFuture <LogLevelEntity > setLogLevel (final LogLevelEntity entity );
341
356
357
+ /**
358
+ * Modifies and returns the server's current loglevel settings.
359
+ *
360
+ * @param entity loglevel settings
361
+ * @return the server's current loglevel settings
362
+ * @since ArangoDB 3.10
363
+ */
364
+ CompletableFuture <LogLevelEntity > setLogLevel (final LogLevelEntity entity , final LogLevelOptions options );
365
+
342
366
/**
343
367
* @return the list of available rules and their respective flags
344
368
* @since ArangoDB 3.10
0 commit comments