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

Singleton actor performing all node configuration related work More...

Inheritance diagram for KlusterKite.NodeManager.NodeManagerActor:
KlusterKite.Data.BaseCrudActor< ConfigurationContext >

Public Member Functions

 NodeManagerActor (IComponentContext componentContext, UniversalContextFactory contextFactory, IMessageRouter router, IPackageRepository nugetRepository)
 Initializes a new instance of the NodeManagerActor class. More...
 

Public Attributes

const string ConfigConnectionStringPath
 Akka configuration path to connection string More...
 
const string ConfigDatabaseNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseName"
 Akka configuration path to connection string More...
 
const string ConfigDatabaseProviderNamePath
 Akka configuration path to connection string More...
 
const string PackageRepositoryUrlPath = "KlusterKite.NodeManager.PackageRepository"
 Akka configuration path to connection string More...
 

Protected Member Functions

override TObject BeforeUpdate< TObject > (TObject newObject, TObject oldObject)
 Method called before object modification in database More...
 
override ConfigurationContext GetContext ()
 Gets current data context More...
 
override void Unhandled (object message)
 Is called when a message isn't handled by the current behavior of the actor by default it fails with either a T:Akka.Actor.DeathPactException (in case of an unhandled T:Akka.Actor.Terminated message) or publishes an T:Akka.Event.UnhandledMessage to the actor's system's T:Akka.Event.EventStream More...
 
- Protected Member Functions inherited from KlusterKite.Data.BaseCrudActor< ConfigurationContext >
 BaseCrudActor (IComponentContext componentContext)
 
virtual void AfterCreate< TObject > (TObject result)
 Method called after successful object creation in database More...
 
virtual void AfterDelete< TObject > (TObject deletedObject)
 Method called after successful object removal from database More...
 
virtual void AfterUpdate< TObject > (TObject newObject, TObject oldObject)
 Method called after successful object modification in database More...
 
override bool AroundReceive (Receive receive, object message)
 
virtual TObject BeforeCreate< TObject > (TObject request)
 Method call before object creation in database More...
 
virtual TObject BeforeDelete< TObject > (TObject oldObject)
 Method call before object removal database More...
 
virtual async Task OnCollectionRequest< TObject, TId > (CollectionRequest< TObject > collectionRequest)
 Process collection requests More...
 
virtual void OnParcelException (ParcelException message)
 Handling the parcel receive exceptions More...
 
virtual async Task OnRequest< TObject, TId > (CrudActionMessage< TObject, TId > request)
 Request process method More...
 
virtual TObject OnSelect< TObject > (TObject result)
 Called on select. Sender will receive this method output. More...
 
virtual async Task< CrudActionResponse< TObject > > ProcessRequest< TObject, TId > (CrudActionMessage< TObject, TId > request)
 Request process method More...
 

Properties

IStash Stash [get, set]
 Gets or sets the stash. This will be automatically populated by the framework AFTER the constructor has been run. Implement this as an auto property. More...
 
- Properties inherited from KlusterKite.Data.BaseCrudActor< ConfigurationContext >
IComponentContext ComponentContext [get]
 Gets the DI component context More...
 

Detailed Description

Singleton actor performing all node configuration related work

Definition at line 53 of file NodeManagerActor.cs.

Constructor & Destructor Documentation

◆ NodeManagerActor()

KlusterKite.NodeManager.NodeManagerActor.NodeManagerActor ( IComponentContext  componentContext,
UniversalContextFactory  contextFactory,
IMessageRouter  router,
IPackageRepository  nugetRepository 
)

Initializes a new instance of the NodeManagerActor class.

Parameters
componentContextThe DI context
contextFactoryConfiguration context factory
routerThe node message router
nugetRepositoryThe nuget repository

Definition at line 226 of file NodeManagerActor.cs.

Member Function Documentation

◆ BeforeUpdate< TObject >()

override TObject KlusterKite.NodeManager.NodeManagerActor.BeforeUpdate< TObject > ( TObject  newObject,
TObject  oldObject 
)
protectedvirtual

Method called before object modification in database

Template Parameters
TObjectThe type of object
Parameters
newObjectThe new Object.
oldObjectThe old Object.
Returns
The new version of object or null to prevent update

Reimplemented from KlusterKite.Data.BaseCrudActor< ConfigurationContext >.

Definition at line 286 of file NodeManagerActor.cs.

◆ GetContext()

override ConfigurationContext KlusterKite.NodeManager.NodeManagerActor.GetContext ( )
protectedvirtual

Gets current data context

Implements KlusterKite.Data.BaseCrudActor< ConfigurationContext >.

Definition at line 301 of file NodeManagerActor.cs.

◆ Unhandled()

override void KlusterKite.NodeManager.NodeManagerActor.Unhandled ( object  message)
protected

Is called when a message isn't handled by the current behavior of the actor by default it fails with either a T:Akka.Actor.DeathPactException (in case of an unhandled T:Akka.Actor.Terminated message) or publishes an T:Akka.Event.UnhandledMessage to the actor's system's T:Akka.Event.EventStream

Parameters
messageThe unhandled message.

Definition at line 316 of file NodeManagerActor.cs.

Member Data Documentation

◆ ConfigConnectionStringPath

const string KlusterKite.NodeManager.NodeManagerActor.ConfigConnectionStringPath
Initial value:
=
"KlusterKite.NodeManager.ConfigurationDatabaseConnectionString"

Akka configuration path to connection string

Definition at line 58 of file NodeManagerActor.cs.

◆ ConfigDatabaseNamePath

const string KlusterKite.NodeManager.NodeManagerActor.ConfigDatabaseNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseName"

Akka configuration path to connection string

Definition at line 64 of file NodeManagerActor.cs.

◆ ConfigDatabaseProviderNamePath

const string KlusterKite.NodeManager.NodeManagerActor.ConfigDatabaseProviderNamePath
Initial value:
=
"KlusterKite.NodeManager.ConfigurationDatabaseProviderName"

Akka configuration path to connection string

Definition at line 69 of file NodeManagerActor.cs.

◆ PackageRepositoryUrlPath

const string KlusterKite.NodeManager.NodeManagerActor.PackageRepositoryUrlPath = "KlusterKite.NodeManager.PackageRepository"

Akka configuration path to connection string

Definition at line 75 of file NodeManagerActor.cs.

Property Documentation

◆ Stash

IStash KlusterKite.NodeManager.NodeManagerActor.Stash
getset

Gets or sets the stash. This will be automatically populated by the framework AFTER the constructor has been run. Implement this as an auto property.

The stash.

Definition at line 275 of file NodeManagerActor.cs.


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