KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.NodeManager.Mock.MockResourceMigratorDependent Class Reference

The mock resource to implement EnResourceDependencyType.ResourceDependsOnCode More...

Inheritance diagram for KlusterKite.NodeManager.Mock.MockResourceMigratorDependent:
KlusterKite.NodeManager.Mock.MockResourceMigrator KlusterKite.NodeManager.Migrator.IMigrator

Public Member Functions

 MockResourceMigratorDependent (Config config)
 Initializes a new instance of the MockResourceMigratorDependent class. More...
 
- 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< ResourceIdGetMigratableResources ()
 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 dependent on code"
 
override EnResourceDependencyType DependencyType => EnResourceDependencyType.ResourceDependsOnCode
 
override string ResourcePointsConfigPath => "KlusterKite.NodeManager.Mock.Dependent.ResourcePoints"
 
override string ResourcesConfigPath => "KlusterKite.NodeManager.Mock.Dependent.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...
 

Detailed Description

The mock resource to implement EnResourceDependencyType.ResourceDependsOnCode

Definition at line 19 of file MockResourceMigratorDependent.cs.

Constructor & Destructor Documentation

◆ MockResourceMigratorDependent()

KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.MockResourceMigratorDependent ( Config  config)

Initializes a new instance of the MockResourceMigratorDependent class.

Parameters
configThe config.

Definition at line 27 of file MockResourceMigratorDependent.cs.

Member Function Documentation

◆ GetRedisKey()

override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.GetRedisKey ( ResourceId  resourceId)
protectedvirtual

Gets the redis key for specified resource

Implements KlusterKite.NodeManager.Mock.MockResourceMigrator.

Definition at line 50 of file MockResourceMigratorDependent.cs.

◆ GetResourceName()

override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.GetResourceName ( string  resourceCode)
protectedvirtual

Creates the resource name for the resource code

Implements KlusterKite.NodeManager.Mock.MockResourceMigrator.

Definition at line 44 of file MockResourceMigratorDependent.cs.

Member Data Documentation

◆ DependencyType

override EnResourceDependencyType KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.DependencyType => EnResourceDependencyType.ResourceDependsOnCode

Definition at line 35 of file MockResourceMigratorDependent.cs.

◆ Name

override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.Name => "The mock resources dependent on code"

Definition at line 32 of file MockResourceMigratorDependent.cs.

◆ ResourcePointsConfigPath

override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.ResourcePointsConfigPath => "KlusterKite.NodeManager.Mock.Dependent.ResourcePoints"

Definition at line 38 of file MockResourceMigratorDependent.cs.

◆ ResourcesConfigPath

override string KlusterKite.NodeManager.Mock.MockResourceMigratorDependent.ResourcesConfigPath => "KlusterKite.NodeManager.Mock.Dependent.Resources"

Definition at line 41 of file MockResourceMigratorDependent.cs.


The documentation for this class was generated from the following file: