Class ServerNode
Manages connections to the same server
Inheritance
System.Object
ServerNode
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.MongoDb.dll
Syntax
public sealed class ServerNode : ApplicationComponent, IDisposable, IApplicationComponent, INamed
Fields
CONFIG_SERVER_SECTION
Declaration
public const string CONFIG_SERVER_SECTION = "server"
Field Value
Type |
Description |
System.String |
|
DEFAULT_IDLE_TIMEOUT_SEC
Declaration
public const int DEFAULT_IDLE_TIMEOUT_SEC = 120
Field Value
Type |
Description |
System.Int32 |
|
DEFAULT_RCV_BUFFER_SIZE
Declaration
public const int DEFAULT_RCV_BUFFER_SIZE = 131072
Field Value
Type |
Description |
System.Int32 |
|
DEFAULT_RCV_TIMEOUT
Declaration
public const int DEFAULT_RCV_TIMEOUT = 10000
Field Value
Type |
Description |
System.Int32 |
|
DEFAULT_SND_BUFFER_SIZE
Declaration
public const int DEFAULT_SND_BUFFER_SIZE = 131072
Field Value
Type |
Description |
System.Int32 |
|
DEFAULT_SND_TIMEOUT
Declaration
public const int DEFAULT_SND_TIMEOUT = 10000
Field Value
Type |
Description |
System.Int32 |
|
MAX_EXISTING_ACQUISITION_TIMEOUT_MS_DEFAULT
Declaration
public const int MAX_EXISTING_ACQUISITION_TIMEOUT_MS_DEFAULT = 15000
Field Value
Type |
Description |
System.Int32 |
|
MAX_EXISTING_ACQUISITION_TIMEOUT_MS_MAX
Declaration
public const int MAX_EXISTING_ACQUISITION_TIMEOUT_MS_MAX = 90000
Field Value
Type |
Description |
System.Int32 |
|
MAX_EXISTING_ACQUISITION_TIMEOUT_MS_MIN
Declaration
public const int MAX_EXISTING_ACQUISITION_TIMEOUT_MS_MIN = 1000
Field Value
Type |
Description |
System.Int32 |
|
MIN_IDLE_TIMEOUT_SEC
Declaration
public const int MIN_IDLE_TIMEOUT_SEC = 5
Field Value
Type |
Description |
System.Int32 |
|
Properties
Client
References client that this node is under
Declaration
public MongoClient Client { get; }
Property Value
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Databases
Returns mounted databases
Declaration
public IRegistry<Database> Databases { get; }
Property Value
IdleConnectionTimeoutSec
Declaration
[Config]
public int IdleConnectionTimeoutSec { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Item[String]
Returns an existing database or creates a new one
Declaration
public Database this[string name] { get; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
MaxConnections
When greater than zero, imposes a limit on the open connection count
Declaration
[Config]
public int MaxConnections { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
MaxExistingAcquisitionTimeoutMs
Imposes a timeout for system trying to get an existing connection instance per remote address.
Declaration
[Config]
public int MaxExistingAcquisitionTimeoutMs { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Node
Declaration
public Node Node { get; }
Property Value
SocketReceiveBufferSize
Declaration
[Config]
public int SocketReceiveBufferSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SocketReceiveTimeout
Declaration
[Config]
public int SocketReceiveTimeout { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SocketSendBufferSize
Declaration
[Config]
public int SocketSendBufferSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SocketSendTimeout
Declaration
[Config]
public int SocketSendTimeout { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
WriteConcern
Declaration
[Config]
public WriteConcern WriteConcern { get; set; }
Property Value
Methods
CloseAllConnections(Boolean)
Closes all connections. Waits untill all closed if wait==true, otherwise tries to close what it can
Declaration
public void CloseAllConnections(bool wait)
Parameters
Type |
Name |
Description |
System.Boolean |
wait |
|
Destructor()
Declaration
protected override void Destructor()
Overrides
Implements
System.IDisposable
Extension Methods