File tree Expand file tree Collapse file tree 3 files changed +27
-28
lines changed
arangodb-net-standard/GraphApi/Models Expand file tree Collapse file tree 3 files changed +27
-28
lines changed Original file line number Diff line number Diff line change @@ -27,29 +27,5 @@ public abstract class PostGraphOptions
2727 /// The collection type cannot be modified later.
2828 /// </summary>
2929 public IEnumerable < string > Satellites { get ; set ; }
30-
31- /// <summary>
32- /// The number of shards that is used for every collection within this graph.
33- /// Cannot be modified later.
34- /// </summary>
35- /// <remarks>
36- /// (cluster only)
37- /// </remarks>
38- public int NumberOfShards { get ; set ; }
39-
40- /// <summary>
41- /// Write concern for new collections in the graph.
42- /// It determines how many copies of each shard are
43- /// required to be in sync on the different DB-Servers.
44- /// If there are less then these many copies in the cluster
45- /// a shard will refuse to write. Writes to shards with
46- /// enough up-to-date copies will succeed at the same time however.
47- /// The value of writeConcern can not be larger than
48- /// <see cref="PostNonSatelliteGraphOptions.ReplicationFactor"/>.
49- /// </summary>
50- /// <remarks>
51- /// (cluster only)
52- /// </remarks>
53- public int ? WriteConcern { get ; set ; }
5430 }
5531}
Original file line number Diff line number Diff line change @@ -13,5 +13,29 @@ public class PostNonSatelliteGraphOptions : PostGraphOptions
1313 /// (cluster only)
1414 /// </remarks>
1515 public int ReplicationFactor { get ; set ; }
16+
17+ /// <summary>
18+ /// The number of shards that is used for every collection within this graph.
19+ /// Cannot be modified later.
20+ /// </summary>
21+ /// <remarks>
22+ /// (cluster only)
23+ /// </remarks>
24+ public int NumberOfShards { get ; set ; }
25+
26+ /// <summary>
27+ /// Write concern for new collections in the graph.
28+ /// It determines how many copies of each shard are
29+ /// required to be in sync on the different DB-Servers.
30+ /// If there are less then these many copies in the cluster
31+ /// a shard will refuse to write. Writes to shards with
32+ /// enough up-to-date copies will succeed at the same time however.
33+ /// The value of writeConcern can not be larger than
34+ /// <see cref="ReplicationFactor"/>.
35+ /// </summary>
36+ /// <remarks>
37+ /// (cluster only)
38+ /// </remarks>
39+ public int ? WriteConcern { get ; set ; }
1640 }
1741}
Original file line number Diff line number Diff line change 66 public class PostSatelliteGraphOptions : PostGraphOptions
77 {
88 /// <summary>
9- /// Set to "satellite" to create a SatelliteGraph,
10- /// which will ignore numberOfShards, minReplicationFactor
11- /// and writeConcern (Enterprise Edition only).
9+ /// Always set to "satellite" to create
10+ /// a SatelliteGraph (Enterprise Edition only).
1211 /// </summary>
13- public string ReplicationFactor { get ; set ; }
12+ public string ReplicationFactor { get ; } = "satellite" ;
1413 }
1514}
You can’t perform that action at this time.
0 commit comments