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

The resource state according to the migration More...

Inheritance diagram for KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState:
KlusterKite.NodeManager.Client.MigrationStates.ResourceConfigurationState

Static Public Member Functions

static ResourceMigrationState CreateFrom (string templateCode, MigratorConfigurationState state, ResourceConfigurationState resource, EnMigratorPosition position)
 Creates ResourceMigrationState More...
 
static ResourceMigrationState CreateFrom (string templateCode, MigratorConfigurationState sourceMigratorState, ResourceConfigurationState sourceState, MigratorConfigurationState destinationMigratorState, ResourceConfigurationState destinationState)
 Creates ResourceMigrationState More...
 

Properties

string SourcePoint [get, set]
 Gets or sets the migration source position for this resource type More...
 
string DestinationPoint [get, set]
 Gets or sets the migration destination position for this resource type More...
 
EnMigrationSide MigrationToSourceExecutor [get, set]
 Gets or sets a value indicating what configuration can execute migration to source configuration point More...
 
EnMigrationSide MigrationToDestinationExecutor [get, set]
 Gets or sets a value indicating what configuration can execute migration to destination configuration point More...
 
- Properties inherited from KlusterKite.NodeManager.Client.MigrationStates.ResourceConfigurationState
string Name [get, set]
 Gets or sets the human readable resource name More...
 
string Code [get, set]
 Gets or sets the resource identification More...
 
string CurrentPoint [get, set]
 Gets or sets the current migration point of the resource More...
 
EnResourcePosition Position [get, set]
 Gets or sets the resource current position More...
 
string TemplateCode [get, set]
 Gets or sets the code of MigratorTemplate.Code More...
 
string MigratorTypeName [get, set]
 Gets or sets the type name of IMigrator More...
 

Additional Inherited Members

- Public Member Functions inherited from KlusterKite.NodeManager.Client.MigrationStates.ResourceConfigurationState
void SetPosition (MigratorConfigurationState sourceConfiguration)
 Calculates the resource position according to configuration More...
 
- Public Attributes inherited from KlusterKite.NodeManager.Client.MigrationStates.ResourceConfigurationState
string Key => $"{this.TemplateCode}:{this.MigratorTypeName}:{this.Code}"
 The resource unique key More...
 

Detailed Description

The resource state according to the migration

Definition at line 18 of file ResourceMigrationState.cs.

Member Function Documentation

◆ CreateFrom() [1/2]

static ResourceMigrationState KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.CreateFrom ( string  templateCode,
MigratorConfigurationState  state,
ResourceConfigurationState  resource,
EnMigratorPosition  position 
)
static

Creates ResourceMigrationState

Parameters
templateCodeThe migrator template code
stateThe migrator state
resourceThe resource state
positionThe migrator position
Returns
The ResourceMigrationState

Definition at line 52 of file ResourceMigrationState.cs.

◆ CreateFrom() [2/2]

static ResourceMigrationState KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.CreateFrom ( string  templateCode,
MigratorConfigurationState  sourceMigratorState,
ResourceConfigurationState  sourceState,
MigratorConfigurationState  destinationMigratorState,
ResourceConfigurationState  destinationState 
)
static

Creates ResourceMigrationState

Parameters
templateCodeThe migrator template code
sourceMigratorStateThe migrator state in source configuration
sourceStateThe resource state in source configuration
destinationMigratorStateThe migrator state in destination configuration
destinationStateThe resource state in destination configuration
Returns
The ResourceMigrationState

Definition at line 110 of file ResourceMigrationState.cs.

Property Documentation

◆ DestinationPoint

string KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.DestinationPoint
getset

Gets or sets the migration destination position for this resource type

Definition at line 30 of file ResourceMigrationState.cs.

◆ MigrationToDestinationExecutor

EnMigrationSide KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.MigrationToDestinationExecutor
getset

Gets or sets a value indicating what configuration can execute migration to destination configuration point

Definition at line 42 of file ResourceMigrationState.cs.

◆ MigrationToSourceExecutor

EnMigrationSide KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.MigrationToSourceExecutor
getset

Gets or sets a value indicating what configuration can execute migration to source configuration point

Definition at line 36 of file ResourceMigrationState.cs.

◆ SourcePoint

string KlusterKite.NodeManager.Client.MigrationStates.ResourceMigrationState.SourcePoint
getset

Gets or sets the migration source position for this resource type

Definition at line 24 of file ResourceMigrationState.cs.


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