3737import com .arangodb .internal .util .DefaultArangoSerialization ;
3838import com .arangodb .internal .velocystream .VstCommunicationSync ;
3939import 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 .*;
4441import com .arangodb .util .ArangoDeserializer ;
4542import com .arangodb .util .ArangoSerialization ;
4643import com .arangodb .util .ArangoSerializer ;
@@ -197,6 +194,16 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
197194 */
198195 CompletableFuture <ServerRole > getRole ();
199196
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+
200207 /**
201208 * Create a new user. This user will not have access to any database. You need permission to the _system database in
202209 * order to execute this call.
@@ -331,6 +338,14 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
331338 */
332339 CompletableFuture <LogLevelEntity > getLogLevel ();
333340
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+
334349 /**
335350 * Modifies and returns the server's current loglevel settings.
336351 *
@@ -339,6 +354,15 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
339354 */
340355 CompletableFuture <LogLevelEntity > setLogLevel (final LogLevelEntity entity );
341356
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+
342366 /**
343367 * @return the list of available rules and their respective flags
344368 * @since ArangoDB 3.10
0 commit comments