Exemple #1
0
        /// <summary>
        /// Returns a builder set to construct options for a single node instance
        /// </summary>
        /// <returns>A <see cref="EmbeddedVNodeBuilder"/> with the options set</returns>
        public static EmbeddedVNodeBuilder AsSingleNode()
        {
            var ret = new EmbeddedVNodeBuilder
            {
                _clusterNodeCount = 1,
                _prepareAckCount  = 1,
                _commitAckCount   = 1
            };

            return(ret);
        }
Exemple #2
0
        /// <summary>
        /// Returns a builder set to construct options for a cluster node instance with a cluster size
        /// </summary>
        /// <returns>A <see cref="EmbeddedVNodeBuilder"/> with the options set</returns>
        public static EmbeddedVNodeBuilder AsClusterMember(int clusterSize)
        {
            int quorumSize = clusterSize / 2;
            var ret        = new EmbeddedVNodeBuilder
            {
                _clusterNodeCount = clusterSize,
                _prepareAckCount  = quorumSize,
                _commitAckCount   = quorumSize
            };

            return(ret);
        }
 /// <summary>
 /// Returns a builder set to construct options for a cluster node instance with a cluster size 
 /// </summary>
 /// <returns>A <see cref="EmbeddedVNodeBuilder"/> with the options set</returns>
 public static EmbeddedVNodeBuilder AsClusterMember(int clusterSize)
 {
     int quorumSize = clusterSize/2;
     var ret = new EmbeddedVNodeBuilder
     {
         _clusterNodeCount = clusterSize,
         _prepareAckCount = quorumSize,
         _commitAckCount = quorumSize
     };
     return ret;
 }
 /// <summary>
 /// Returns a builder set to construct options for a single node instance
 /// </summary>
 /// <returns>A <see cref="EmbeddedVNodeBuilder"/> with the options set</returns>
 public static EmbeddedVNodeBuilder AsSingleNode()
 {
     var ret = new EmbeddedVNodeBuilder
     {
         _clusterNodeCount = 1,
         _prepareAckCount = 1,
         _commitAckCount = 1
     };
     return ret;
 }
        /// <summary>
        /// Returns a builder set to construct options for a cluster node instance with a cluster size.
        /// </summary>
        /// <returns>A <see cref="VNodeBuilder"/> with the options set.</returns>
        public static EmbeddedVNodeBuilder AsClusterMember(int clusterSize)
        {
            var ret = new EmbeddedVNodeBuilder().WithClusterNodeSettings(clusterSize);

            return((EmbeddedVNodeBuilder)ret);
        }
        /// <summary>
        /// Returns a builder set to construct options for a single node instance.
        /// </summary>
        /// <returns>A <see cref="VNodeBuilder"/> with the options set.</returns>
        public static EmbeddedVNodeBuilder AsSingleNode()
        {
            var ret = new EmbeddedVNodeBuilder().WithSingleNodeSettings();

            return((EmbeddedVNodeBuilder)ret);
        }
 /// <summary>
 /// Returns a builder set to construct options for a cluster node instance with a cluster size 
 /// </summary>
 /// <returns>A <see cref="VNodeBuilder"/> with the options set</returns>
 public static EmbeddedVNodeBuilder AsClusterMember(int clusterSize)
 {
     var ret = new EmbeddedVNodeBuilder().WithClusterNodeSettings(clusterSize);
     return (EmbeddedVNodeBuilder)ret;
 }
 /// <summary>
 /// Returns a builder set to construct options for a single node instance
 /// </summary>
 /// <returns>A <see cref="VNodeBuilder"/> with the options set</returns>
 public static EmbeddedVNodeBuilder AsSingleNode()
 {
     var ret = new EmbeddedVNodeBuilder().WithSingleNodeSettings();
     return (EmbeddedVNodeBuilder)ret;
 }