Package com.arangodb.entity
Class DatabaseEntity
java.lang.Object
com.arangodb.entity.DatabaseEntity
- Author:
- Mark Vollmary
-
Constructor Details
-
DatabaseEntity
public DatabaseEntity()
-
-
Method Details
-
getId
- Returns:
- the id of the database
-
getName
- Returns:
- the name of the database
-
getPath
- Returns:
- the filesystem path of the database
-
getIsSystem
- Returns:
- whether or not the database is the _system database
-
getReplicationFactor
- Returns:
- the default replication factor for collections in this database
- Since:
- ArangoDB 3.6.0
-
getWriteConcern
Default write concern for new collections created in this database. It determines how many copies of each shard are required to be in sync on the different DBServers. If there are less then these many copies in the cluster a shard will refuse to write. Writes to shards with enough up-to-date copies will succeed at the same time however. The value of writeConcern can not be larger than replicationFactor. (cluster only)- Since:
- ArangoDB 3.6.0
-
getSharding
- Returns:
- information about the default sharding method for collections created in this database
- Since:
- ArangoDB 3.6.0
-