C# Class EventStore.Core.VNodeBuilder

Allows a client to build a ClusterVNode for use with the Embedded client API by specifying high level options rather than using the constructor of ClusterVNode directly.
Mostra file Open project: EventStore/EventStore

Protected Properties

Property Type Description
_addInterfacePrefixes bool
_adminOnPublic bool
_alwaysKeepScavenged bool
_authenticationProviderFactory IAuthenticationProviderFactory
_betterOrdering bool
_cachedChunks int
_certificate System.Security.Cryptography.X509Certificates.X509Certificate2
_chunkSize int
_chunksCacheSize long
_clusterDns string
_clusterGossipPort int
_clusterNodeCount int
_commitAckCount int
_commitTimeout System.TimeSpan
_db EventStore.Core.TransactionLog.Chunks.TFChunkDb
_dbConfig EventStore.Core.TransactionLog.Chunks.TFChunkDbConfig
_dbPath string
_disableHTTPCaching bool
_disableScavengeMerging bool
_discoverViaDns bool
_enableHistograms bool
_enableTrustedAuth bool
_extHttpPrefixes List
_extTcpHeartbeatInterval System.TimeSpan
_extTcpHeartbeatTimeout System.TimeSpan
_externalHttp System.Net.IPEndPoint
_externalSecureTcp System.Net.IPEndPoint
_externalTcp System.Net.IPEndPoint
_gossipAdvertiseInfo EventStore.Core.Data.GossipAdvertiseInfo
_gossipAllowedTimeDifference System.TimeSpan
_gossipInterval System.TimeSpan
_gossipOnPublic bool
_gossipSeeds List
_gossipTimeout System.TimeSpan
_hashCollisionReadLimit int
_inMemoryDb bool
_index string
_indexBitnessVersion byte
_indexCacheDepth int
_intHttpPrefixes List
_intTcpHeartbeatInterval System.TimeSpan
_intTcpHeartbeatTimeout System.TimeSpan
_internalHttp System.Net.IPEndPoint
_internalSecureTcp System.Net.IPEndPoint
_internalTcp System.Net.IPEndPoint
_log ILogger
_logHttpRequests bool
_maxMemtableSize int
_minFlushDelay System.TimeSpan
_nodePriority int
_prepareAckCount int
_prepareTimeout System.TimeSpan
_projectionType ProjectionType
_projectionsThreads int
_readerThreadsCount int
_scavengeHistoryMaxAge int
_skipVerifyDbHashes bool
_sslTargetHost string
_sslValidateServer bool
_startStandardProjections bool
_statsOnPublic bool
_statsPeriod System.TimeSpan
_statsStorage StatsStorage
_subsystems List
_unsafeDisableFlushToDisk bool
_unsafeIgnoreHardDelete bool
_useSsl bool
_vNodeSettings EventStore.Core.Cluster.Settings.ClusterVNodeSettings
_workerThreads int

Public Methods

Method Description
AddCustomSubsystem ( ISubsystem subsystem ) : VNodeBuilder

Adds a custom subsystem to the builder. NOTE: This is an advanced use case that most people will never need!

AddExternalHttpPrefix ( string prefix ) : VNodeBuilder

Adds a http prefix for the external http endpoint

AddInternalHttpPrefix ( string prefix ) : VNodeBuilder

Adds a http prefix for the internal http endpoint

AdvertiseExternalHttpPortAs ( int extHttpPortAdvertiseAs ) : VNodeBuilder

Sets up the External Http Port that would be advertised

AdvertiseExternalIPAs ( IPAddress extIpAdvertiseAs ) : VNodeBuilder

Sets up the External IP that would be advertised

AdvertiseExternalSecureTCPPortAs ( int extSecureTcpPortAdvertiseAs ) : VNodeBuilder

Sets up the External Secure TCP Port that would be advertised

AdvertiseExternalTCPPortAs ( int extTcpPortAdvertiseAs ) : VNodeBuilder

Sets up the External TCP Port that would be advertised

AdvertiseInternalHttpPortAs ( int intHttpPortAdvertiseAs ) : VNodeBuilder

Sets up the Internal Http Port that would be advertised

AdvertiseInternalIPAs ( IPAddress intIpAdvertiseAs ) : VNodeBuilder

Sets up the Internal IP that would be advertised

AdvertiseInternalSecureTCPPortAs ( int intSecureTcpPortAdvertiseAs ) : VNodeBuilder

Sets up the Internal Secure TCP Port that would be advertised

AdvertiseInternalTCPPortAs ( int intTcpPortAdvertiseAs ) : VNodeBuilder

Sets up the Internal TCP Port that would be advertised

AlwaysKeepScavenged ( ) : VNodeBuilder

The newer chunks during a scavenge are always kept

Build ( IOptions options = null, IPersistentSubscriptionConsumerStrategyFactory consumerStrategies = null ) : EventStore.Core.ClusterVNode

Converts an VNodeBuilder to a ClusterVNode.

DisableDnsDiscovery ( ) : VNodeBuilder

Disable dns discovery for the cluster

DisableHTTPCaching ( ) : VNodeBuilder

Disable HTTP Caching.

DisableScavengeMerging ( ) : VNodeBuilder

Disables the merging of chunks when scavenge is running

DoNotVerifyDbHashes ( ) : VNodeBuilder

Marks that the existing database files should not be checked for checksums on startup.

DontAddInterfacePrefixes ( ) : VNodeBuilder

Don't add the interface prefixes (e.g. If the External IP is set to the Loopback address, we'll add http://localhost:2113/ as a prefix)

EnableHistograms ( ) : VNodeBuilder

Enable the tracking of various histograms in the backend, typically only used for debugging

EnableLoggingOfHttpRequests ( ) : VNodeBuilder

Enable logging of Http Requests and Responses before they are processed

EnableSsl ( ) : VNodeBuilder

Sets that SSL should be used on connections

EnableTrustedAuth ( ) : VNodeBuilder

Enable trusted authentication by an intermediary in the HTTP

HavingReaderThreads ( int readerThreadsCount ) : VNodeBuilder

Sets the number of reader threads to process read requests.

MaximumMemoryTableSizeOf ( int size ) : VNodeBuilder

Sets the maximum size a memtable is allowed to reach (in count) before being moved to be a ptable

NoAdminOnPublicInterface ( ) : VNodeBuilder

Disables the admin interface on the public (client) interface

NoGossipOnPublicInterface ( ) : VNodeBuilder

Disables gossip on the public (client) interface

NoStatsOnPublicInterface ( ) : VNodeBuilder

Disables statistics screens on the public (client) interface

OnDefaultEndpoints ( ) : VNodeBuilder

Sets the default endpoints on localhost (1113 tcp, 2113 http)

RunInMemory ( ) : VNodeBuilder

Returns a builder set to run in memory only

RunOnDisk ( string path ) : VNodeBuilder

Returns a builder set to write database files to the specified path

RunProjections ( ProjectionType projectionType, int numberOfThreads = Opts.ProjectionThreadsDefault ) : VNodeBuilder

Sets the mode and the number of threads on which to run projections.

StartStandardProjections ( ) : VNodeBuilder

Start standard projections.

ValidateSslServer ( ) : VNodeBuilder

Sets whether to validate that the server's certificate is trusted.

VerifyDbHashes ( ) : VNodeBuilder

Marks that the existing database files should be checked for checksums on startup.

WithAuthenticationProvider ( IAuthenticationProviderFactory authenticationProviderFactory ) : VNodeBuilder

Sets the authentication provider factory to use

WithBetterOrdering ( ) : VNodeBuilder

Enable Queue affinity on reads during write process to try to get better ordering.

WithClusterDnsName ( string name ) : VNodeBuilder

Sets the dns name used for the discovery of other cluster nodes

WithClusterGossipPort ( int port ) : VNodeBuilder

Sets the internal gossip port (used when using cluster dns, this should point to a known port gossip will be running on)

WithCommitCount ( int commitCount ) : VNodeBuilder

Sets the number of nodes which must acknowledge commits before acknowledging to a client. The minimum allowed value is one greater than half the cluster size.

WithCommitTimeout ( System.TimeSpan commitTimeout ) : VNodeBuilder

Sets the commit timeout

WithExternalHeartbeatInterval ( System.TimeSpan heartbeatInterval ) : VNodeBuilder

Sets the heartbeat interval for the external network interface.

WithExternalHeartbeatTimeout ( System.TimeSpan heartbeatTimeout ) : VNodeBuilder

Sets the heartbeat timeout for the external network interface.

WithExternalHttpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the external http endpoint to the specified value

WithExternalSecureTcpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the external secure tcp endpoint to the specified value

WithExternalTcpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the external tcp endpoint to the specified value

WithGossipAllowedTimeDifference ( System.TimeSpan gossipAllowedDifference ) : VNodeBuilder

Sets the allowed gossip time difference

WithGossipInterval ( System.TimeSpan gossipInterval ) : VNodeBuilder

Sets the gossip interval

WithGossipSeeds ( ) : VNodeBuilder

Sets the gossip seeds this node should talk to

WithGossipTimeout ( System.TimeSpan gossipTimeout ) : VNodeBuilder

Sets the gossip timeout

WithHashCollisionReadLimitOf ( int hashCollisionReadLimit ) : VNodeBuilder

Sets the maximum number of events to read in case of a stream Id hash collision

WithIndexBitnessVersion ( byte indexBitnessVersion ) : VNodeBuilder

The bitness version of the indexes

WithIndexCacheDepth ( int indexCacheDepth ) : VNodeBuilder

Sets the depth to cache for the mid point cache in index

WithIndexPath ( string indexPath ) : VNodeBuilder

Sets the path the index should be loaded/saved to

WithInternalHeartbeatInterval ( System.TimeSpan heartbeatInterval ) : VNodeBuilder

Sets the heartbeat interval for the internal network interface.

WithInternalHeartbeatTimeout ( System.TimeSpan heartbeatTimeout ) : VNodeBuilder

Sets the heartbeat timeout for the internal network interface.

WithInternalHttpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the internal http endpoint to the specified value

WithInternalSecureTcpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the internal secure tcp endpoint to the specified value

WithInternalTcpOn ( IPEndPoint endpoint ) : VNodeBuilder

Sets the internal tcp endpoint to the specified value

WithMinFlushDelay ( System.TimeSpan minFlushDelay ) : VNodeBuilder

Sets the minimum flush delay

WithNodePriority ( int nodePriority ) : VNodeBuilder

Sets the node priority used during master election

WithPrepareCount ( int prepareCount ) : VNodeBuilder

Sets the number of nodes which must acknowledge prepares. The minimum allowed value is one greater than half the cluster size.

WithPrepareTimeout ( System.TimeSpan prepareTimeout ) : VNodeBuilder

Sets the prepare timeout

WithScavengeHistoryMaxAge ( int scavengeHistoryMaxAge ) : VNodeBuilder

The number of days to keep scavenge history (Default: 30)

WithServerCertificate ( X509Certificate2 sslCertificate ) : VNodeBuilder

Sets the Server SSL Certificate

WithServerCertificateFromFile ( string path, string password ) : VNodeBuilder

Sets the Server SSL Certificate to be loaded from a file

WithServerCertificateFromStore ( StoreLocation storeLocation, StoreName storeName, string certificateSubjectName, string certificateThumbprint ) : VNodeBuilder

Sets the Server SSL Certificate to be loaded from a certificate store

WithServerCertificateFromStore ( StoreName storeName, string certificateSubjectName, string certificateThumbprint ) : VNodeBuilder

Sets the Server SSL Certificate to be loaded from a certificate store

WithSslTargetHost ( string targetHost ) : VNodeBuilder

Sets the target host of the server's SSL certificate.

WithStatsPeriod ( System.TimeSpan statsPeriod ) : VNodeBuilder

Sets the period between statistics gathers

WithStatsStorage ( StatsStorage statsStorage ) : VNodeBuilder

Sets how stats are stored. Default is Stream

WithTfCachedChunks ( int cachedChunks ) : VNodeBuilder

The number of chunks to cache in unmanaged memory.

WithTfChunkSize ( int chunkSize ) : VNodeBuilder

Sets the transaction file chunk size. Default is TFConsts.ChunkSize

WithTfChunksCacheSize ( long chunksCacheSize ) : VNodeBuilder

Sets the transaction file chunk cache size. Default is TFConsts.ChunksCacheSize

WithUnsafeDisableFlushToDisk ( ) : VNodeBuilder

Disables Hard Deletes (UNSAFE: use to remove hard deletes)

WithUnsafeIgnoreHardDelete ( ) : VNodeBuilder

Disables Hard Deletes (UNSAFE: use to remove hard deletes)

WithWorkerThreads ( int count ) : VNodeBuilder

Sets the number of worker threads to use in shared threadpool

Protected Methods

Method Description
SetUpProjectionsIfNeeded ( ) : void
VNodeBuilder ( ) : System
WithClusterNodeSettings ( int clusterNodeCount ) : VNodeBuilder
WithSingleNodeSettings ( ) : VNodeBuilder

Private Methods

Method Description
CreateDbConfig ( int chunkSize, int cachedChunks, string dbPath, long chunksCacheSize, bool inMemDb, ILogger log ) : EventStore.Core.TransactionLog.Chunks.TFChunkDbConfig
EnsureGossipAdvertiseInfo ( ) : GossipAdvertiseInfo
EnsureHttpPrefixes ( ) : void
GetCertificateFromStore ( X509Store store, string certificateSubjectName, string certificateThumbprint ) : X509Certificate2
GetGossipSource ( ) : IGossipSeedSource
RunProjections ( ClientAPI projectionsMode, int numberOfThreads = Opts.ProjectionThreadsDefault ) : VNodeBuilder

Method Details

AddCustomSubsystem() public method

Adds a custom subsystem to the builder. NOTE: This is an advanced use case that most people will never need!
public AddCustomSubsystem ( ISubsystem subsystem ) : VNodeBuilder
subsystem ISubsystem The subsystem to add
return VNodeBuilder

AddExternalHttpPrefix() public method

Adds a http prefix for the external http endpoint
public AddExternalHttpPrefix ( string prefix ) : VNodeBuilder
prefix string The prefix to add
return VNodeBuilder

AddInternalHttpPrefix() public method

Adds a http prefix for the internal http endpoint
public AddInternalHttpPrefix ( string prefix ) : VNodeBuilder
prefix string The prefix to add
return VNodeBuilder

AdvertiseExternalHttpPortAs() public method

Sets up the External Http Port that would be advertised
public AdvertiseExternalHttpPortAs ( int extHttpPortAdvertiseAs ) : VNodeBuilder
extHttpPortAdvertiseAs int
return VNodeBuilder

AdvertiseExternalIPAs() public method

Sets up the External IP that would be advertised
public AdvertiseExternalIPAs ( IPAddress extIpAdvertiseAs ) : VNodeBuilder
extIpAdvertiseAs System.Net.IPAddress
return VNodeBuilder

AdvertiseExternalSecureTCPPortAs() public method

Sets up the External Secure TCP Port that would be advertised
public AdvertiseExternalSecureTCPPortAs ( int extSecureTcpPortAdvertiseAs ) : VNodeBuilder
extSecureTcpPortAdvertiseAs int
return VNodeBuilder

AdvertiseExternalTCPPortAs() public method

Sets up the External TCP Port that would be advertised
public AdvertiseExternalTCPPortAs ( int extTcpPortAdvertiseAs ) : VNodeBuilder
extTcpPortAdvertiseAs int
return VNodeBuilder

AdvertiseInternalHttpPortAs() public method

Sets up the Internal Http Port that would be advertised
public AdvertiseInternalHttpPortAs ( int intHttpPortAdvertiseAs ) : VNodeBuilder
intHttpPortAdvertiseAs int
return VNodeBuilder

AdvertiseInternalIPAs() public method

Sets up the Internal IP that would be advertised
public AdvertiseInternalIPAs ( IPAddress intIpAdvertiseAs ) : VNodeBuilder
intIpAdvertiseAs System.Net.IPAddress
return VNodeBuilder

AdvertiseInternalSecureTCPPortAs() public method

Sets up the Internal Secure TCP Port that would be advertised
public AdvertiseInternalSecureTCPPortAs ( int intSecureTcpPortAdvertiseAs ) : VNodeBuilder
intSecureTcpPortAdvertiseAs int
return VNodeBuilder

AdvertiseInternalTCPPortAs() public method

Sets up the Internal TCP Port that would be advertised
public AdvertiseInternalTCPPortAs ( int intTcpPortAdvertiseAs ) : VNodeBuilder
intTcpPortAdvertiseAs int
return VNodeBuilder

AlwaysKeepScavenged() public method

The newer chunks during a scavenge are always kept
public AlwaysKeepScavenged ( ) : VNodeBuilder
return VNodeBuilder

Build() public method

Converts an VNodeBuilder to a ClusterVNode.
public Build ( IOptions options = null, IPersistentSubscriptionConsumerStrategyFactory consumerStrategies = null ) : EventStore.Core.ClusterVNode
options IOptions The options with which to build the infoController
consumerStrategies IPersistentSubscriptionConsumerStrategyFactory The consumer strategies with which to build the node
return EventStore.Core.ClusterVNode

DisableDnsDiscovery() public method

Disable dns discovery for the cluster
public DisableDnsDiscovery ( ) : VNodeBuilder
return VNodeBuilder

DisableHTTPCaching() public method

Disable HTTP Caching.
public DisableHTTPCaching ( ) : VNodeBuilder
return VNodeBuilder

DisableScavengeMerging() public method

Disables the merging of chunks when scavenge is running
public DisableScavengeMerging ( ) : VNodeBuilder
return VNodeBuilder

DoNotVerifyDbHashes() public method

Marks that the existing database files should not be checked for checksums on startup.
public DoNotVerifyDbHashes ( ) : VNodeBuilder
return VNodeBuilder

DontAddInterfacePrefixes() public method

Don't add the interface prefixes (e.g. If the External IP is set to the Loopback address, we'll add http://localhost:2113/ as a prefix)
public DontAddInterfacePrefixes ( ) : VNodeBuilder
return VNodeBuilder

EnableHistograms() public method

Enable the tracking of various histograms in the backend, typically only used for debugging
public EnableHistograms ( ) : VNodeBuilder
return VNodeBuilder

EnableLoggingOfHttpRequests() public method

Enable logging of Http Requests and Responses before they are processed
public EnableLoggingOfHttpRequests ( ) : VNodeBuilder
return VNodeBuilder

EnableSsl() public method

Sets that SSL should be used on connections
public EnableSsl ( ) : VNodeBuilder
return VNodeBuilder

EnableTrustedAuth() public method

Enable trusted authentication by an intermediary in the HTTP
public EnableTrustedAuth ( ) : VNodeBuilder
return VNodeBuilder

HavingReaderThreads() public method

Sets the number of reader threads to process read requests.
public HavingReaderThreads ( int readerThreadsCount ) : VNodeBuilder
readerThreadsCount int
return VNodeBuilder

MaximumMemoryTableSizeOf() public method

Sets the maximum size a memtable is allowed to reach (in count) before being moved to be a ptable
public MaximumMemoryTableSizeOf ( int size ) : VNodeBuilder
size int The maximum count
return VNodeBuilder

NoAdminOnPublicInterface() public method

Disables the admin interface on the public (client) interface
public NoAdminOnPublicInterface ( ) : VNodeBuilder
return VNodeBuilder

NoGossipOnPublicInterface() public method

Disables gossip on the public (client) interface
public NoGossipOnPublicInterface ( ) : VNodeBuilder
return VNodeBuilder

NoStatsOnPublicInterface() public method

Disables statistics screens on the public (client) interface
public NoStatsOnPublicInterface ( ) : VNodeBuilder
return VNodeBuilder

OnDefaultEndpoints() public method

Sets the default endpoints on localhost (1113 tcp, 2113 http)
public OnDefaultEndpoints ( ) : VNodeBuilder
return VNodeBuilder

RunInMemory() public method

Returns a builder set to run in memory only
public RunInMemory ( ) : VNodeBuilder
return VNodeBuilder

RunOnDisk() public method

Returns a builder set to write database files to the specified path
public RunOnDisk ( string path ) : VNodeBuilder
path string The path on disk in which to write the database files
return VNodeBuilder

RunProjections() public method

Sets the mode and the number of threads on which to run projections.
public RunProjections ( ProjectionType projectionType, int numberOfThreads = Opts.ProjectionThreadsDefault ) : VNodeBuilder
projectionType ProjectionType The mode in which to run the projections system
numberOfThreads int The number of threads to use for projections. Defaults to 3.
return VNodeBuilder

SetUpProjectionsIfNeeded() protected abstract method

protected abstract SetUpProjectionsIfNeeded ( ) : void
return void

StartStandardProjections() public method

Start standard projections.
public StartStandardProjections ( ) : VNodeBuilder
return VNodeBuilder

VNodeBuilder() protected method

protected VNodeBuilder ( ) : System
return System

ValidateSslServer() public method

Sets whether to validate that the server's certificate is trusted.
public ValidateSslServer ( ) : VNodeBuilder
return VNodeBuilder

VerifyDbHashes() public method

Marks that the existing database files should be checked for checksums on startup.
public VerifyDbHashes ( ) : VNodeBuilder
return VNodeBuilder

WithAuthenticationProvider() public method

Sets the authentication provider factory to use
public WithAuthenticationProvider ( IAuthenticationProviderFactory authenticationProviderFactory ) : VNodeBuilder
authenticationProviderFactory IAuthenticationProviderFactory The authentication provider factory to use
return VNodeBuilder

WithBetterOrdering() public method

Enable Queue affinity on reads during write process to try to get better ordering.
public WithBetterOrdering ( ) : VNodeBuilder
return VNodeBuilder

WithClusterDnsName() public method

Sets the dns name used for the discovery of other cluster nodes
public WithClusterDnsName ( string name ) : VNodeBuilder
name string The dns name the node should use to discover gossip partners
return VNodeBuilder

WithClusterGossipPort() public method

Sets the internal gossip port (used when using cluster dns, this should point to a known port gossip will be running on)
public WithClusterGossipPort ( int port ) : VNodeBuilder
port int The cluster gossip to use
return VNodeBuilder

WithClusterNodeSettings() protected method

protected WithClusterNodeSettings ( int clusterNodeCount ) : VNodeBuilder
clusterNodeCount int
return VNodeBuilder

WithCommitCount() public method

Sets the number of nodes which must acknowledge commits before acknowledging to a client. The minimum allowed value is one greater than half the cluster size.
public WithCommitCount ( int commitCount ) : VNodeBuilder
commitCount int The number of nodes which must acknowledge commits
return VNodeBuilder

WithCommitTimeout() public method

Sets the commit timeout
public WithCommitTimeout ( System.TimeSpan commitTimeout ) : VNodeBuilder
commitTimeout System.TimeSpan The commit timeout
return VNodeBuilder

WithExternalHeartbeatInterval() public method

Sets the heartbeat interval for the external network interface.
public WithExternalHeartbeatInterval ( System.TimeSpan heartbeatInterval ) : VNodeBuilder
heartbeatInterval System.TimeSpan The heartbeat interval
return VNodeBuilder

WithExternalHeartbeatTimeout() public method

Sets the heartbeat timeout for the external network interface.
public WithExternalHeartbeatTimeout ( System.TimeSpan heartbeatTimeout ) : VNodeBuilder
heartbeatTimeout System.TimeSpan The heartbeat timeout
return VNodeBuilder

WithExternalHttpOn() public method

Sets the external http endpoint to the specified value
public WithExternalHttpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The external endpoint to use
return VNodeBuilder

WithExternalSecureTcpOn() public method

Sets the external secure tcp endpoint to the specified value
public WithExternalSecureTcpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The external secure endpoint to use
return VNodeBuilder

WithExternalTcpOn() public method

Sets the external tcp endpoint to the specified value
public WithExternalTcpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The external endpoint to use
return VNodeBuilder

WithGossipAllowedTimeDifference() public method

Sets the allowed gossip time difference
public WithGossipAllowedTimeDifference ( System.TimeSpan gossipAllowedDifference ) : VNodeBuilder
gossipAllowedDifference System.TimeSpan The allowed gossip time difference
return VNodeBuilder

WithGossipInterval() public method

Sets the gossip interval
public WithGossipInterval ( System.TimeSpan gossipInterval ) : VNodeBuilder
gossipInterval System.TimeSpan The gossip interval
return VNodeBuilder

WithGossipSeeds() public method

Sets the gossip seeds this node should talk to
public WithGossipSeeds ( ) : VNodeBuilder
return VNodeBuilder

WithGossipTimeout() public method

Sets the gossip timeout
public WithGossipTimeout ( System.TimeSpan gossipTimeout ) : VNodeBuilder
gossipTimeout System.TimeSpan The gossip timeout
return VNodeBuilder

WithHashCollisionReadLimitOf() public method

Sets the maximum number of events to read in case of a stream Id hash collision
public WithHashCollisionReadLimitOf ( int hashCollisionReadLimit ) : VNodeBuilder
hashCollisionReadLimit int The maximum count
return VNodeBuilder

WithIndexBitnessVersion() public method

The bitness version of the indexes
public WithIndexBitnessVersion ( byte indexBitnessVersion ) : VNodeBuilder
indexBitnessVersion byte The version of the bitness
return VNodeBuilder

WithIndexCacheDepth() public method

Sets the depth to cache for the mid point cache in index
public WithIndexCacheDepth ( int indexCacheDepth ) : VNodeBuilder
indexCacheDepth int The index cache depth
return VNodeBuilder

WithIndexPath() public method

Sets the path the index should be loaded/saved to
public WithIndexPath ( string indexPath ) : VNodeBuilder
indexPath string The index path
return VNodeBuilder

WithInternalHeartbeatInterval() public method

Sets the heartbeat interval for the internal network interface.
public WithInternalHeartbeatInterval ( System.TimeSpan heartbeatInterval ) : VNodeBuilder
heartbeatInterval System.TimeSpan The heartbeat interval
return VNodeBuilder

WithInternalHeartbeatTimeout() public method

Sets the heartbeat timeout for the internal network interface.
public WithInternalHeartbeatTimeout ( System.TimeSpan heartbeatTimeout ) : VNodeBuilder
heartbeatTimeout System.TimeSpan The heartbeat timeout
return VNodeBuilder

WithInternalHttpOn() public method

Sets the internal http endpoint to the specified value
public WithInternalHttpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The internal endpoint to use
return VNodeBuilder

WithInternalSecureTcpOn() public method

Sets the internal secure tcp endpoint to the specified value
public WithInternalSecureTcpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The internal secure endpoint to use
return VNodeBuilder

WithInternalTcpOn() public method

Sets the internal tcp endpoint to the specified value
public WithInternalTcpOn ( IPEndPoint endpoint ) : VNodeBuilder
endpoint System.Net.IPEndPoint The internal endpoint to use
return VNodeBuilder

WithMinFlushDelay() public method

Sets the minimum flush delay
public WithMinFlushDelay ( System.TimeSpan minFlushDelay ) : VNodeBuilder
minFlushDelay System.TimeSpan The minimum flush delay
return VNodeBuilder

WithNodePriority() public method

Sets the node priority used during master election
public WithNodePriority ( int nodePriority ) : VNodeBuilder
nodePriority int The node priority used during master election
return VNodeBuilder

WithPrepareCount() public method

Sets the number of nodes which must acknowledge prepares. The minimum allowed value is one greater than half the cluster size.
public WithPrepareCount ( int prepareCount ) : VNodeBuilder
prepareCount int The number of nodes which must acknowledge prepares
return VNodeBuilder

WithPrepareTimeout() public method

Sets the prepare timeout
public WithPrepareTimeout ( System.TimeSpan prepareTimeout ) : VNodeBuilder
prepareTimeout System.TimeSpan The prepare timeout
return VNodeBuilder

WithScavengeHistoryMaxAge() public method

The number of days to keep scavenge history (Default: 30)
public WithScavengeHistoryMaxAge ( int scavengeHistoryMaxAge ) : VNodeBuilder
scavengeHistoryMaxAge int The number of days to keep scavenge history
return VNodeBuilder

WithServerCertificate() public method

Sets the Server SSL Certificate
public WithServerCertificate ( X509Certificate2 sslCertificate ) : VNodeBuilder
sslCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The server SSL certificate to use
return VNodeBuilder

WithServerCertificateFromFile() public method

Sets the Server SSL Certificate to be loaded from a file
public WithServerCertificateFromFile ( string path, string password ) : VNodeBuilder
path string The path to the certificate file
password string The password for the certificate
return VNodeBuilder

WithServerCertificateFromStore() public method

Sets the Server SSL Certificate to be loaded from a certificate store
public WithServerCertificateFromStore ( StoreLocation storeLocation, StoreName storeName, string certificateSubjectName, string certificateThumbprint ) : VNodeBuilder
storeLocation StoreLocation The location of the certificate store
storeName StoreName The name of the certificate store
certificateSubjectName string The subject name of the certificate
certificateThumbprint string The thumbpreint of the certificate
return VNodeBuilder

WithServerCertificateFromStore() public method

Sets the Server SSL Certificate to be loaded from a certificate store
public WithServerCertificateFromStore ( StoreName storeName, string certificateSubjectName, string certificateThumbprint ) : VNodeBuilder
storeName StoreName The name of the certificate store
certificateSubjectName string The subject name of the certificate
certificateThumbprint string The thumbpreint of the certificate
return VNodeBuilder

WithSingleNodeSettings() protected method

protected WithSingleNodeSettings ( ) : VNodeBuilder
return VNodeBuilder

WithSslTargetHost() public method

Sets the target host of the server's SSL certificate.
public WithSslTargetHost ( string targetHost ) : VNodeBuilder
targetHost string The target host of the server's SSL certificate
return VNodeBuilder

WithStatsPeriod() public method

Sets the period between statistics gathers
public WithStatsPeriod ( System.TimeSpan statsPeriod ) : VNodeBuilder
statsPeriod System.TimeSpan The period between statistics gathers
return VNodeBuilder

WithStatsStorage() public method

Sets how stats are stored. Default is Stream
public WithStatsStorage ( StatsStorage statsStorage ) : VNodeBuilder
statsStorage StatsStorage The storage method to use
return VNodeBuilder

WithTfCachedChunks() public method

The number of chunks to cache in unmanaged memory.
public WithTfCachedChunks ( int cachedChunks ) : VNodeBuilder
cachedChunks int The number of chunks to cache
return VNodeBuilder

WithTfChunkSize() public method

Sets the transaction file chunk size. Default is TFConsts.ChunkSize
public WithTfChunkSize ( int chunkSize ) : VNodeBuilder
chunkSize int The size of the chunk, in bytes
return VNodeBuilder

WithTfChunksCacheSize() public method

Sets the transaction file chunk cache size. Default is TFConsts.ChunksCacheSize
public WithTfChunksCacheSize ( long chunksCacheSize ) : VNodeBuilder
chunksCacheSize long The size of the cache
return VNodeBuilder

WithUnsafeDisableFlushToDisk() public method

Disables Hard Deletes (UNSAFE: use to remove hard deletes)
public WithUnsafeDisableFlushToDisk ( ) : VNodeBuilder
return VNodeBuilder

WithUnsafeIgnoreHardDelete() public method

Disables Hard Deletes (UNSAFE: use to remove hard deletes)
public WithUnsafeIgnoreHardDelete ( ) : VNodeBuilder
return VNodeBuilder

WithWorkerThreads() public method

Sets the number of worker threads to use in shared threadpool
public WithWorkerThreads ( int count ) : VNodeBuilder
count int The number of worker threads
return VNodeBuilder

Property Details

_addInterfacePrefixes protected_oe property

protected bool _addInterfacePrefixes
return bool

_adminOnPublic protected_oe property

protected bool _adminOnPublic
return bool

_alwaysKeepScavenged protected_oe property

protected bool _alwaysKeepScavenged
return bool

_authenticationProviderFactory protected_oe property

protected IAuthenticationProviderFactory _authenticationProviderFactory
return IAuthenticationProviderFactory

_betterOrdering protected_oe property

protected bool _betterOrdering
return bool

_cachedChunks protected_oe property

protected int _cachedChunks
return int

_certificate protected_oe property

protected X509Certificate2,System.Security.Cryptography.X509Certificates _certificate
return System.Security.Cryptography.X509Certificates.X509Certificate2

_chunkSize protected_oe property

protected int _chunkSize
return int

_chunksCacheSize protected_oe property

protected long _chunksCacheSize
return long

_clusterDns protected_oe property

protected string _clusterDns
return string

_clusterGossipPort protected_oe property

protected int _clusterGossipPort
return int

_clusterNodeCount protected_oe property

protected int _clusterNodeCount
return int

_commitAckCount protected_oe property

protected int _commitAckCount
return int

_commitTimeout protected_oe property

protected TimeSpan,System _commitTimeout
return System.TimeSpan

_db protected_oe property

protected TFChunkDb,EventStore.Core.TransactionLog.Chunks _db
return EventStore.Core.TransactionLog.Chunks.TFChunkDb

_dbConfig protected_oe property

protected TFChunkDbConfig,EventStore.Core.TransactionLog.Chunks _dbConfig
return EventStore.Core.TransactionLog.Chunks.TFChunkDbConfig

_dbPath protected_oe property

protected string _dbPath
return string

_disableHTTPCaching protected_oe property

protected bool _disableHTTPCaching
return bool

_disableScavengeMerging protected_oe property

protected bool _disableScavengeMerging
return bool

_discoverViaDns protected_oe property

protected bool _discoverViaDns
return bool

_enableHistograms protected_oe property

protected bool _enableHistograms
return bool

_enableTrustedAuth protected_oe property

protected bool _enableTrustedAuth
return bool

_extHttpPrefixes protected_oe property

protected List _extHttpPrefixes
return List

_extTcpHeartbeatInterval protected_oe property

protected TimeSpan,System _extTcpHeartbeatInterval
return System.TimeSpan

_extTcpHeartbeatTimeout protected_oe property

protected TimeSpan,System _extTcpHeartbeatTimeout
return System.TimeSpan

_externalHttp protected_oe property

protected IPEndPoint,System.Net _externalHttp
return System.Net.IPEndPoint

_externalSecureTcp protected_oe property

protected IPEndPoint,System.Net _externalSecureTcp
return System.Net.IPEndPoint

_externalTcp protected_oe property

protected IPEndPoint,System.Net _externalTcp
return System.Net.IPEndPoint

_gossipAdvertiseInfo protected_oe property

protected GossipAdvertiseInfo,EventStore.Core.Data _gossipAdvertiseInfo
return EventStore.Core.Data.GossipAdvertiseInfo

_gossipAllowedTimeDifference protected_oe property

protected TimeSpan,System _gossipAllowedTimeDifference
return System.TimeSpan

_gossipInterval protected_oe property

protected TimeSpan,System _gossipInterval
return System.TimeSpan

_gossipOnPublic protected_oe property

protected bool _gossipOnPublic
return bool

_gossipSeeds protected_oe property

protected List _gossipSeeds
return List

_gossipTimeout protected_oe property

protected TimeSpan,System _gossipTimeout
return System.TimeSpan

_hashCollisionReadLimit protected_oe property

protected int _hashCollisionReadLimit
return int

_inMemoryDb protected_oe property

protected bool _inMemoryDb
return bool

_index protected_oe property

protected string _index
return string

_indexBitnessVersion protected_oe property

protected byte _indexBitnessVersion
return byte

_indexCacheDepth protected_oe property

protected int _indexCacheDepth
return int

_intHttpPrefixes protected_oe property

protected List _intHttpPrefixes
return List

_intTcpHeartbeatInterval protected_oe property

protected TimeSpan,System _intTcpHeartbeatInterval
return System.TimeSpan

_intTcpHeartbeatTimeout protected_oe property

protected TimeSpan,System _intTcpHeartbeatTimeout
return System.TimeSpan

_internalHttp protected_oe property

protected IPEndPoint,System.Net _internalHttp
return System.Net.IPEndPoint

_internalSecureTcp protected_oe property

protected IPEndPoint,System.Net _internalSecureTcp
return System.Net.IPEndPoint

_internalTcp protected_oe property

protected IPEndPoint,System.Net _internalTcp
return System.Net.IPEndPoint

_log protected_oe property

protected ILogger _log
return ILogger

_logHttpRequests protected_oe property

protected bool _logHttpRequests
return bool

_maxMemtableSize protected_oe property

protected int _maxMemtableSize
return int

_minFlushDelay protected_oe property

protected TimeSpan,System _minFlushDelay
return System.TimeSpan

_nodePriority protected_oe property

protected int _nodePriority
return int

_prepareAckCount protected_oe property

protected int _prepareAckCount
return int

_prepareTimeout protected_oe property

protected TimeSpan,System _prepareTimeout
return System.TimeSpan

_projectionType protected_oe property

protected ProjectionType _projectionType
return ProjectionType

_projectionsThreads protected_oe property

protected int _projectionsThreads
return int

_readerThreadsCount protected_oe property

protected int _readerThreadsCount
return int

_scavengeHistoryMaxAge protected_oe property

protected int _scavengeHistoryMaxAge
return int

_skipVerifyDbHashes protected_oe property

protected bool _skipVerifyDbHashes
return bool

_sslTargetHost protected_oe property

protected string _sslTargetHost
return string

_sslValidateServer protected_oe property

protected bool _sslValidateServer
return bool

_startStandardProjections protected_oe property

protected bool _startStandardProjections
return bool

_statsOnPublic protected_oe property

protected bool _statsOnPublic
return bool

_statsPeriod protected_oe property

protected TimeSpan,System _statsPeriod
return System.TimeSpan

_statsStorage protected_oe property

protected StatsStorage _statsStorage
return StatsStorage

_subsystems protected_oe property

protected List _subsystems
return List

_unsafeDisableFlushToDisk protected_oe property

protected bool _unsafeDisableFlushToDisk
return bool

_unsafeIgnoreHardDelete protected_oe property

protected bool _unsafeIgnoreHardDelete
return bool

_useSsl protected_oe property

protected bool _useSsl
return bool

_vNodeSettings protected_oe property

protected ClusterVNodeSettings,EventStore.Core.Cluster.Settings _vNodeSettings
return EventStore.Core.Cluster.Settings.ClusterVNodeSettings

_workerThreads protected_oe property

protected int _workerThreads
return int