KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The test migrator More...
Classes | |
class | Dependence |
The dependence resource More... | |
class | Dependent |
The dependent resource More... | |
Public Member Functions | |
TestMigrator (Config config) | |
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... | |
Static Public Member Functions | |
static void | SetMigrationPoint (string connectionString, string point) |
Sets the current migration point for the resource More... | |
Public Attributes | |
string | LatestPoint => this.DefinedMigrationPoints?.LastOrDefault() |
decimal | Priority => 1M |
Properties | |
abstract EnResourceDependencyType | DependencyType [get] |
abstract string | Name [get] |
Config | Config [get] |
Gets the migrator config More... | |
abstract List< string > | DefinedMigrationPoints [get] |
Gets the list of defined migration points More... | |
abstract List< string > | Resources [get] |
Gets the list of defined migration resources 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 test migrator
Definition at line 28 of file TestMigrator.cs.
KlusterKite.NodeManager.Tests.Migrations.TestMigrator.TestMigrator | ( | Config | config | ) |
Definition at line 31 of file TestMigrator.cs.
IEnumerable<string> KlusterKite.NodeManager.Tests.Migrations.TestMigrator.GetAllPoints | ( | ) |
Gets all possible migration points defined in this assembly
Implements KlusterKite.NodeManager.Migrator.IMigrator.
Definition at line 74 of file TestMigrator.cs.
string KlusterKite.NodeManager.Tests.Migrations.TestMigrator.GetCurrentPoint | ( | ResourceId | resourceId | ) |
Gets the current configuration migration point for specified resource
Implements KlusterKite.NodeManager.Migrator.IMigrator.
Definition at line 85 of file TestMigrator.cs.
IEnumerable<ResourceId> KlusterKite.NodeManager.Tests.Migrations.TestMigrator.GetMigratableResources | ( | ) |
Gets the list of cluster resources that this migrator can migrate
Implements KlusterKite.NodeManager.Migrator.IMigrator.
Definition at line 105 of file TestMigrator.cs.
IEnumerable<string> KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Migrate | ( | ResourceId | resourceId, |
string | pointToMigrate | ||
) |
Performs the migration procedure
Implements KlusterKite.NodeManager.Migrator.IMigrator.
Definition at line 124 of file TestMigrator.cs.
|
static |
Sets the current migration point for the resource
connectionString | The resource connection string |
point | The current migration point |
Definition at line 68 of file TestMigrator.cs.
string KlusterKite.NodeManager.Tests.Migrations.TestMigrator.LatestPoint => this.DefinedMigrationPoints?.LastOrDefault() |
Definition at line 40 of file TestMigrator.cs.
decimal KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Priority => 1M |
Definition at line 46 of file TestMigrator.cs.
|
getprotected |
Gets the migrator config
Definition at line 51 of file TestMigrator.cs.
|
getprotected |
Gets the list of defined migration points
Definition at line 56 of file TestMigrator.cs.
|
get |
Definition at line 37 of file TestMigrator.cs.
|
get |
Definition at line 43 of file TestMigrator.cs.
|
getprotected |
Gets the list of defined migration resources
Definition at line 61 of file TestMigrator.cs.