KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Singleton actor performing all node configuration related work More...
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... | |
Singleton actor performing all node configuration related work
Definition at line 53 of file NodeManagerActor.cs.
KlusterKite.NodeManager.NodeManagerActor.NodeManagerActor | ( | IComponentContext | componentContext, |
UniversalContextFactory | contextFactory, | ||
IMessageRouter | router, | ||
IPackageRepository | nugetRepository | ||
) |
Initializes a new instance of the NodeManagerActor class.
componentContext | The DI context |
contextFactory | Configuration context factory |
router | The node message router |
nugetRepository | The nuget repository |
Definition at line 226 of file NodeManagerActor.cs.
|
protectedvirtual |
Method called before object modification in database
TObject | The type of object |
newObject | The new Object. |
oldObject | The old Object. |
Reimplemented from KlusterKite.Data.BaseCrudActor< ConfigurationContext >.
Definition at line 286 of file NodeManagerActor.cs.
|
protectedvirtual |
Gets current data context
Implements KlusterKite.Data.BaseCrudActor< ConfigurationContext >.
Definition at line 301 of file NodeManagerActor.cs.
|
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
message | The unhandled message. |
Definition at line 316 of file NodeManagerActor.cs.
const string KlusterKite.NodeManager.NodeManagerActor.ConfigConnectionStringPath |
Akka configuration path to connection string
Definition at line 58 of file NodeManagerActor.cs.
const string KlusterKite.NodeManager.NodeManagerActor.ConfigDatabaseNamePath = "KlusterKite.NodeManager.ConfigurationDatabaseName" |
Akka configuration path to connection string
Definition at line 64 of file NodeManagerActor.cs.
const string KlusterKite.NodeManager.NodeManagerActor.ConfigDatabaseProviderNamePath |
Akka configuration path to connection string
Definition at line 69 of file NodeManagerActor.cs.
const string KlusterKite.NodeManager.NodeManagerActor.PackageRepositoryUrlPath = "KlusterKite.NodeManager.PackageRepository" |
Akka configuration path to connection string
Definition at line 75 of file NodeManagerActor.cs.
|
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.