Package com.arangodb.entity
Class DatabaseEntity
- java.lang.Object
-
- com.arangodb.entity.DatabaseEntity
-
public final class DatabaseEntity extends Object
- Author:
- Mark Vollmary
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description DatabaseEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Boolean
getIsSystem()
String
getName()
String
getPath()
ReplicationFactor
getReplicationFactor()
String
getSharding()
Integer
getWriteConcern()
Default write concern for new collections created in this database.
-
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id of the database
-
getName
public String getName()
- Returns:
- the name of the database
-
getPath
public String getPath()
- Returns:
- the filesystem path of the database
-
getIsSystem
public Boolean getIsSystem()
- Returns:
- whether or not the database is the _system database
-
getReplicationFactor
public ReplicationFactor getReplicationFactor()
- Returns:
- the default replication factor for collections in this database
- Since:
- ArangoDB 3.6.0
-
getWriteConcern
public Integer 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
public String getSharding()
- Returns:
- information about the default sharding method for collections created in this database
- Since:
- ArangoDB 3.6.0
-
-