Class MdbArea.Partition.Shard
Represents a SHARD information for the DB particular host
Inheritance
System.Object
MdbArea.Partition.Shard
Implements
System.IDisposable
System.IComparable
System.IComparable<MdbArea.Partition.Shard>
System.IEquatable<MdbArea.Partition.Shard>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Mdb
Assembly: Azos.Sky.dll
Syntax
public sealed class Shard : MdbAppComponent, IDisposable, IApplicationComponent, IExternallyParameterized, IComparable, IComparable<MdbArea.Partition.Shard>, IEquatable<MdbArea.Partition.Shard>
Fields
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
Area
Declaration
public MdbArea Area { get; }
Property Value
Type | Description |
---|---|
MdbArea |
ConnectionType
Returns either primary or secondary connect string depending on connection type
Declaration
[ExternalParameter(new string[]{"data"})]
public MdbArea.Partition.ShardBackendConnection ConnectionType { get; set; }
Property Value
Type | Description |
---|---|
MdbArea.Partition.ShardBackendConnection |
ConnectStrings
Returns Primary then secondary connect strings
Declaration
public IEnumerable<string> ConnectStrings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
CRUDOperations
Returns new wrapper for operations on this shard
Declaration
public CRUDOperations CRUDOperations { get; }
Property Value
Type | Description |
---|---|
CRUDOperations |
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 |
Partition
Declaration
public MdbArea.Partition Partition { get; }
Property Value
Type | Description |
---|---|
MdbArea.Partition |
Methods
CompareTo(MdbArea.Partition.Shard)
Declaration
public int CompareTo(MdbArea.Partition.Shard other)
Parameters
Type | Name | Description |
---|---|---|
MdbArea.Partition.Shard | other |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Equals(MdbArea.Partition.Shard)
Declaration
public bool Equals(MdbArea.Partition.Shard other)
Parameters
Type | Name | Description |
---|---|---|
MdbArea.Partition.Shard | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.IDisposable
System.IComparable
System.IComparable<T>
System.IEquatable<T>