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

Seeds the ConfigurationContext More...

Inheritance diagram for KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder:
KlusterKite.NodeManager.Migrator.BaseSeeder

Public Member Functions

 Seeder (Config config, UniversalContextFactory contextFactory, IPackageRepository packageRepository)
 Initializes a new instance of the Seeder class. More...
 
override void Seed ()
 Performs seeding More...
 

Protected Member Functions

virtual IEnumerable< string > GetSeeds ()
 Gets the list of akka cluster seeds More...
 
virtual IEnumerable< NodeTemplateGetNodeTemplates ()
 Get the list of node templates More...
 
virtual IEnumerable< MigratorTemplateGetMigratorTemplates ()
 Get the list of migrator templates More...
 
virtual async Task< List< PackageDescription > > GetPackageDescriptions ()
 Get the list of package descriptions More...
 
virtual void SetupUsers (ConfigurationContext context)
 Installs default users and roles to the empty database More...
 

Protected Attributes

const string ConfigConnectionStringPath = "KlusterKite.NodeManager.ConfigurationDatabaseConnectionString"
 Akka configuration path to connection string More...
 
const string ConfigDatabaseNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseName"
 Akka configuration path to database name More...
 
const string ConfigDatabaseProviderNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseProviderName"
 Akka configuration path to database provider name More...
 

Properties

Config Config [get]
 Gets the seeder configuration More...
 

Detailed Description

Seeds the ConfigurationContext

Definition at line 38 of file Seeder.cs.

Constructor & Destructor Documentation

◆ Seeder()

KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.Seeder ( Config  config,
UniversalContextFactory  contextFactory,
IPackageRepository  packageRepository 
)

Initializes a new instance of the Seeder class.

Parameters
configThe config.
contextFactoryThe context factory.
packageRepositoryThe package repository.

Definition at line 80 of file Seeder.cs.

Member Function Documentation

◆ GetMigratorTemplates()

virtual IEnumerable<MigratorTemplate> KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.GetMigratorTemplates ( )
protectedvirtual

Get the list of migrator templates

Returns
The list of migrator templates

Definition at line 245 of file Seeder.cs.

◆ GetNodeTemplates()

virtual IEnumerable<NodeTemplate> KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.GetNodeTemplates ( )
protectedvirtual

Get the list of node templates

Returns
The list of node templates

Definition at line 172 of file Seeder.cs.

◆ GetPackageDescriptions()

virtual async Task<List<PackageDescription> > KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.GetPackageDescriptions ( )
protectedvirtual

Get the list of package descriptions

Returns
The list of package descriptions

Definition at line 273 of file Seeder.cs.

◆ GetSeeds()

virtual IEnumerable<string> KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.GetSeeds ( )
protectedvirtual

Gets the list of akka cluster seeds

Returns
The list of seed addresses

Definition at line 162 of file Seeder.cs.

◆ Seed()

override void KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.Seed ( )
virtual

Performs seeding

Implements KlusterKite.NodeManager.Migrator.BaseSeeder.

Definition at line 93 of file Seeder.cs.

◆ SetupUsers()

virtual void KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.SetupUsers ( ConfigurationContext  context)
protectedvirtual

Installs default users and roles to the empty database

Parameters
contextThe data context

Definition at line 284 of file Seeder.cs.

Member Data Documentation

◆ ConfigConnectionStringPath

const string KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.ConfigConnectionStringPath = "KlusterKite.NodeManager.ConfigurationDatabaseConnectionString"
protected

Akka configuration path to connection string

Definition at line 44 of file Seeder.cs.

◆ ConfigDatabaseNamePath

const string KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.ConfigDatabaseNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseName"
protected

Akka configuration path to database name

Definition at line 50 of file Seeder.cs.

◆ ConfigDatabaseProviderNamePath

const string KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.ConfigDatabaseProviderNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseProviderName"
protected

Akka configuration path to database provider name

Definition at line 56 of file Seeder.cs.

Property Documentation

◆ Config

Config KlusterKite.NodeManager.ConfigurationSource.Seeder.Seeder.Config
getprotected

Gets the seeder configuration

Definition at line 90 of file Seeder.cs.


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