KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The mock resource to implement EnResourceDependencyType.CodeDependsOnResource More...
Public Member Functions | |
MockResourceMigratorDependence (Config config) | |
Public Member Functions inherited from KlusterKite.NodeManager.Mock.MockResourceMigrator | |
MockResourceMigrator (Config config) | |
Initializes a new instance of the MockResourceMigrator class. More... | |
IEnumerable< string > | GetAllPoints () |
Gets all possible migration points defined in this assembly More... | |
string | GetCurrentPoint (ResourceId resourceId) |
Gets the current configuration migration point for specified resource More... | |
IEnumerable< ResourceId > | GetMigratableResources () |
Gets the list of cluster resources that this migrator can migrate More... | |
IEnumerable< string > | Migrate (ResourceId resourceId, string pointToMigrate) |
Performs the migration procedure More... | |
Public Attributes | |
override string | Name => "The mock resources that code depends on" |
override EnResourceDependencyType | DependencyType => EnResourceDependencyType.CodeDependsOnResource |
override string | ResourcePointsConfigPath => "KlusterKite.NodeManager.Mock.Dependence.ResourcePoints" |
override string | ResourcesConfigPath => "KlusterKite.NodeManager.Mock.Dependence.Resources" |
Public Attributes inherited from KlusterKite.NodeManager.Mock.MockResourceMigrator | |
string | LatestPoint => this.GetAllPoints().Last() |
decimal | Priority => 1M |
Protected Member Functions | |
override string | GetResourceName (string resourceCode) |
Creates the resource name for the resource code More... | |
override string | GetRedisKey (ResourceId resourceId) |
Gets the redis key for specified resource More... | |
Additional Inherited Members | |
Properties inherited from KlusterKite.NodeManager.Mock.MockResourceMigrator | |
abstract string | Name [get] |
abstract EnResourceDependencyType | DependencyType [get] |
abstract string | ResourcePointsConfigPath [get] |
Gets the config path to the resource points More... | |
abstract string | ResourcesConfigPath [get] |
Gets the config path to the resources names More... | |
Properties inherited from KlusterKite.NodeManager.Migrator.IMigrator | |
string | LatestPoint [get] |
Gets the latest known migration point identification for this assembly More... | |
string | Name [get] |
Gets the human-readable migrator name More... | |
EnResourceDependencyType | DependencyType [get] |
Gets the type of resource dependency More... | |
decimal | Priority [get] |
Gets the priority of execution. In case of migration, the migrators will be run in order of priority from largest to lowest More... | |
The mock resource to implement EnResourceDependencyType.CodeDependsOnResource
Definition at line 18 of file MockResourceMigratorDependence.cs.
KlusterKite.NodeManager.Mock.MockResourceMigratorDependence.MockResourceMigratorDependence | ( | Config | config | ) |
Definition at line 21 of file MockResourceMigratorDependence.cs.
|
protectedvirtual |
Gets the redis key for specified resource
Implements KlusterKite.NodeManager.Mock.MockResourceMigrator.
Definition at line 45 of file MockResourceMigratorDependence.cs.
|
protectedvirtual |
Creates the resource name for the resource code
Implements KlusterKite.NodeManager.Mock.MockResourceMigrator.
Definition at line 39 of file MockResourceMigratorDependence.cs.
override EnResourceDependencyType KlusterKite.NodeManager.Mock.MockResourceMigratorDependence.DependencyType => EnResourceDependencyType.CodeDependsOnResource |
Definition at line 30 of file MockResourceMigratorDependence.cs.
override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependence.Name => "The mock resources that code depends on" |
Definition at line 27 of file MockResourceMigratorDependence.cs.
override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependence.ResourcePointsConfigPath => "KlusterKite.NodeManager.Mock.Dependence.ResourcePoints" |
Definition at line 33 of file MockResourceMigratorDependence.cs.
override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependence.ResourcesConfigPath => "KlusterKite.NodeManager.Mock.Dependence.Resources" |
Definition at line 36 of file MockResourceMigratorDependence.cs.