KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The configuration management More...
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... | |
The configuration management
Definition at line 33 of file ConfigurationConnection.cs.
KlusterKite.NodeManager.WebApi.ConfigurationConnection.ConfigurationConnection | ( | ActorSystem | actorSystem, |
string | dataActorPath, | ||
TimeSpan? | timeout, | ||
RequestContext | context | ||
) |
Initializes a new instance of the ConfigurationConnection class.
actorSystem | The actor system. |
dataActorPath | The data actor path. |
timeout | The timeout. |
context | The context. |
Definition at line 50 of file ConfigurationConnection.cs.
async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.Check | ( | int | id | ) |
Checks the draft configuration if it can be moved to ready state.
id | The id of configuration draft |
Definition at line 69 of file ConfigurationConnection.cs.
async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetObsolete | ( | int | id | ) |
Mutation that moves Configuration.State from EnConfigurationState.Ready to EnConfigurationState.Obsolete
id | The id of configuration draft |
Definition at line 125 of file ConfigurationConnection.cs.
async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetReady | ( | int | id | ) |
Mutation that moves Configuration.State from EnConfigurationState.Draft to EnConfigurationState.Ready
id | The id of configuration draft |
Definition at line 97 of file ConfigurationConnection.cs.
async Task<MutationResult<Configuration> > KlusterKite.NodeManager.WebApi.ConfigurationConnection.SetStable | ( | int | id, |
bool | isStable | ||
) |
Mutation that sets the Configuration.IsStable
id | The id of configuration draft |
isStable | A value indicating the new Configuration.IsStable value |
-
Definition at line 154 of file ConfigurationConnection.cs.