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

The configuration management More...

Inheritance diagram for KlusterKite.NodeManager.WebApi.ConfigurationConnection:
KlusterKite.Data.CRUD.Connection< Configuration, int >

Public Member Functions

 ConfigurationConnection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context)
 Initializes a new instance of the ConfigurationConnection class. More...
 
async Task< MutationResult< Configuration > > Check (int id)
 Checks the draft configuration if it can be moved to ready state. More...
 
async Task< MutationResult< Configuration > > SetReady (int id)
 Mutation that moves Configuration.State from EnConfigurationState.Draft to EnConfigurationState.Ready More...
 
async Task< MutationResult< Configuration > > SetObsolete (int id)
 Mutation that moves Configuration.State from EnConfigurationState.Ready to EnConfigurationState.Obsolete More...
 
async Task< MutationResult< Configuration > > SetStable (int id, bool isStable)
 Mutation that sets the Configuration.IsStable More...
 
- Public Member Functions inherited from KlusterKite.Data.CRUD.Connection< Configuration, int >
 Connection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context)
 
async Task< MutationResult< TObject > > Create (TObject newNode)
 
async Task< MutationResult< TObject > > Delete (TId id)
 
async Task< QueryResult< TObject > > Query (Expression< Func< TObject, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest)
 
async Task< MutationResult< TObject > > Update (TId id, TObject newNode, ApiRequest apiRequest)
 

Additional Inherited Members

- Static Protected Member Functions inherited from KlusterKite.Data.CRUD.Connection< Configuration, int >
static MutationResult< TObject > CreateResponse (CrudActionResponse< TObject > response)
 Creates mutation response from actor response More...
 
- Properties inherited from KlusterKite.Data.CRUD.Connection< Configuration, int >
RequestContext Context [get]
 Gets the request context More...
 
string DataActorPath [get]
 Gets the path to the data actor More...
 
ActorSystem System [get]
 Gets the actor system More...
 
TimeSpan Timeout [get]
 Gets the request timeout More...
 

Detailed Description

The configuration management

Definition at line 33 of file ConfigurationConnection.cs.

Constructor & Destructor Documentation

◆ ConfigurationConnection()

KlusterKite.NodeManager.WebApi.ConfigurationConnection.ConfigurationConnection ( ActorSystem  actorSystem,
string  dataActorPath,
TimeSpan?  timeout,
RequestContext  context 
)

Initializes a new instance of the ConfigurationConnection class.

Parameters
actorSystemThe actor system.
dataActorPathThe data actor path.
timeoutThe timeout.
contextThe context.

Definition at line 50 of file ConfigurationConnection.cs.

Member Function Documentation

◆ Check()

async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.Check ( int  id)

Checks the draft configuration if it can be moved to ready state.

Parameters
idThe id of configuration draft
Returns
The mutation result

Definition at line 69 of file ConfigurationConnection.cs.

◆ SetObsolete()

async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetObsolete ( int  id)

Mutation that moves Configuration.State from EnConfigurationState.Ready to EnConfigurationState.Obsolete

Parameters
idThe id of configuration draft
Returns
The mutation result

Definition at line 125 of file ConfigurationConnection.cs.

◆ SetReady()

async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetReady ( int  id)

Mutation that moves Configuration.State from EnConfigurationState.Draft to EnConfigurationState.Ready

Parameters
idThe id of configuration draft
Returns
The mutation result

Definition at line 97 of file ConfigurationConnection.cs.

◆ SetStable()

async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetStable ( int  id,
bool  isStable 
)

Mutation that sets the Configuration.IsStable

Parameters
idThe id of configuration draft
isStableA value indicating the new Configuration.IsStable value
Returns
The mutation result

-

Definition at line 154 of file ConfigurationConnection.cs.


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