Show / Hide Table of Contents

Class ServerNode

Manages connections to the same server

Inheritance
System.Object
DisposableObject
ApplicationComponent
ServerNode
Implements
IApplicationComponent
System.IDisposable
INamed
Inherited Members
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
ApplicationComponent.ComponentCommonName
ApplicationComponent.ComponentDirector
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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)
System.Object.ToString()
Namespace: NFX.DataAccess.MongoDB.Connector
Assembly: NFX.MongoDB.dll
Syntax
public sealed class ServerNode : ApplicationComponent, IApplicationComponent, IDisposable, 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
Type Description
MongoClient

Databases

Returns mounted databases

Declaration
public IRegistry<Database> Databases { get; }
Property Value
Type Description
IRegistry<Database>

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
Type Description
Database

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
Type Description
Node

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
Type Description
WriteConcern

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
ApplicationComponent.Destructor()

Implements

IApplicationComponent
System.IDisposable
INamed

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX