Class DefaultKdbStore.Shard
Represents a SHARD information for the DB particular host
Inheritance
System.Object
DefaultKdbStore.Shard
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.Sky.MongoDb.dll
Syntax
public sealed class Shard : DefaultKdbStore.KdbAppComponent, IDisposable, IApplicationComponent, IExternallyParameterized, IComparable<DefaultKdbStore.Shard>
Fields
FIELD_ABSOLUTE_EXPIRATION_DATEUTC
Declaration
public const string FIELD_ABSOLUTE_EXPIRATION_DATEUTC = "a"
Field Value
Type |
Description |
System.String |
|
FIELD_LAST_USE_DATE
Declaration
public const string FIELD_LAST_USE_DATE = "d"
Field Value
Type |
Description |
System.String |
|
FIELD_SLIDING_EXPIRATION_DAYS
Declaration
public const string FIELD_SLIDING_EXPIRATION_DAYS = "s"
Field Value
Type |
Description |
System.String |
|
FIELD_VALUE
Declaration
public const string FIELD_VALUE = "v"
Field Value
Type |
Description |
System.String |
|
PrimaryHostConnectString
Declaration
public readonly string PrimaryHostConnectString
Field Value
Type |
Description |
System.String |
|
SecondaryHostConnectString
Declaration
public readonly string SecondaryHostConnectString
Field Value
Type |
Description |
System.String |
|
Properties
ConnectionType
Returns either primary or secondary connect string
depending on connection type
Declaration
[ExternalParameter(new string[]{"data"})]
public DefaultKdbStore.ShardBackendConnection ConnectionType { get; set; }
Property Value
ConnectStrings
Returns Primary then secondary connect strings
Declaration
public IEnumerable<string> ConnectStrings { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
EffectiveConnectionString
Returns either primary or secondary connect string
depending on connection type
Declaration
public string EffectiveConnectionString { get; }
Property Value
Type |
Description |
System.String |
|
Order
Declaration
public int Order { get; }
Property Value
Type |
Description |
System.Int32 |
|
ShardSet
Declaration
public DefaultKdbStore.ShardSet ShardSet { get; }
Property Value
Store
Declaration
public DefaultKdbStore Store { get; }
Property Value
Methods
CompareTo(DefaultKdbStore.Shard)
Declaration
public int CompareTo(DefaultKdbStore.Shard other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements
System.IDisposable
System.IComparable<T>
Extension Methods