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

The actor responsible for non-code cluster migrations and updates More...

Inheritance diagram for KlusterKite.NodeManager.MigrationActor:

Classes

class  Data
 The current data More...
 

Public Types

enum  EnState { EnState.Idle, EnState.Migration, EnState.InitializationFailed }
 The state of migration More...
 

Public Member Functions

 MigrationActor (UniversalContextFactory contextFactory, IPackageRepository nugetRepository)
 Initializes a new instance of the MigrationActor class. More...
 

Static Public Member Functions

static IEnumerable< MigratorTemplateMigrationStateCreateMigrationState (IReadOnlyCollection< MigratorTemplateConfigurationState > sourceMigratorTemplateStates, IReadOnlyCollection< MigratorTemplateConfigurationState > destinationMigratorTemplateStates)
 Creates migration state from configuration states More...
 

Protected Member Functions

override void PreStart ()
 

Properties

virtual IActorRef Parent [get]
 Gets the parent actor to notify of action complete More...
 

Detailed Description

The actor responsible for non-code cluster migrations and updates

Definition at line 42 of file MigrationActor.cs.

Member Enumeration Documentation

◆ EnState

The state of migration

Enumerator
Idle 

There is no migration in process

Migration 

There is migration in process

InitializationFailed 

The state checked failed

Definition at line 100 of file MigrationActor.cs.

Constructor & Destructor Documentation

◆ MigrationActor()

KlusterKite.NodeManager.MigrationActor.MigrationActor ( UniversalContextFactory  contextFactory,
IPackageRepository  nugetRepository 
)

Initializes a new instance of the MigrationActor class.

Parameters
contextFactoryThe context Factory.
nugetRepositoryThe nuget Repository.

Definition at line 84 of file MigrationActor.cs.

Member Function Documentation

◆ CreateMigrationState()

static IEnumerable<MigratorTemplateMigrationState> KlusterKite.NodeManager.MigrationActor.CreateMigrationState ( IReadOnlyCollection< MigratorTemplateConfigurationState sourceMigratorTemplateStates,
IReadOnlyCollection< MigratorTemplateConfigurationState destinationMigratorTemplateStates 
)
static

Creates migration state from configuration states

Parameters
sourceMigratorTemplateStatesThe resource state according to source configuration
destinationMigratorTemplateStatesThe resource state according to destination configuration
Returns
The overall resource migration state

Definition at line 129 of file MigrationActor.cs.

◆ PreStart()

override void KlusterKite.NodeManager.MigrationActor.PreStart ( )
protected

Definition at line 175 of file MigrationActor.cs.

Property Documentation

◆ Parent

virtual IActorRef KlusterKite.NodeManager.MigrationActor.Parent
getprotected

Gets the parent actor to notify of action complete

Definition at line 121 of file MigrationActor.cs.


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