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

The test migrator More...

Inheritance diagram for KlusterKite.NodeManager.Tests.Migrations.TestMigrator:
KlusterKite.NodeManager.Migrator.IMigrator KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Dependence KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Dependent

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< 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...
 

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...
 

Detailed Description

The test migrator

Definition at line 28 of file TestMigrator.cs.

Constructor & Destructor Documentation

◆ TestMigrator()

KlusterKite.NodeManager.Tests.Migrations.TestMigrator.TestMigrator ( Config  config)

Definition at line 31 of file TestMigrator.cs.

Member Function Documentation

◆ GetAllPoints()

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.

◆ GetCurrentPoint()

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.

◆ GetMigratableResources()

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.

◆ Migrate()

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.

◆ SetMigrationPoint()

static void KlusterKite.NodeManager.Tests.Migrations.TestMigrator.SetMigrationPoint ( string  connectionString,
string  point 
)
static

Sets the current migration point for the resource

Parameters
connectionStringThe resource connection string
pointThe current migration point

Definition at line 68 of file TestMigrator.cs.

Member Data Documentation

◆ LatestPoint

string KlusterKite.NodeManager.Tests.Migrations.TestMigrator.LatestPoint => this.DefinedMigrationPoints?.LastOrDefault()

Definition at line 40 of file TestMigrator.cs.

◆ Priority

decimal KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Priority => 1M

Definition at line 46 of file TestMigrator.cs.

Property Documentation

◆ Config

Config KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Config
getprotected

Gets the migrator config

Definition at line 51 of file TestMigrator.cs.

◆ DefinedMigrationPoints

abstract List<string> KlusterKite.NodeManager.Tests.Migrations.TestMigrator.DefinedMigrationPoints
getprotected

Gets the list of defined migration points

Definition at line 56 of file TestMigrator.cs.

◆ DependencyType

abstract EnResourceDependencyType KlusterKite.NodeManager.Tests.Migrations.TestMigrator.DependencyType
get

Definition at line 37 of file TestMigrator.cs.

◆ Name

abstract string KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Name
get

Definition at line 43 of file TestMigrator.cs.

◆ Resources

abstract List<string> KlusterKite.NodeManager.Tests.Migrations.TestMigrator.Resources
getprotected

Gets the list of defined migration resources

Definition at line 61 of file TestMigrator.cs.


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