GridGain C++
ignition.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 GridGain Systems, Inc. and Contributors.
3  *
4  * Licensed under the GridGain Community Edition License (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef _IGNITE_IGNITION
23 #define _IGNITE_IGNITION
24 
25 #include <ignite/ignite_error.h>
26 
27 #include "ignite/ignite.h"
29 
30 namespace ignite
31 {
35  class IGNITE_IMPORT_EXPORT Ignition
36  {
37  public:
44  static Ignite Start(const IgniteConfiguration& cfg);
45 
53  static Ignite Start(const IgniteConfiguration& cfg, IgniteError& err);
54 
62  static Ignite Start(const IgniteConfiguration& cfg, const char* name);
63 
72  static Ignite Start(const IgniteConfiguration& cfg, const char* name, IgniteError& err);
73 
79  static Ignite Get();
80 
87  static Ignite Get(IgniteError& err);
88 
95  static Ignite Get(const char* name);
96 
104  static Ignite Get(const char* name, IgniteError& err);
105 
112  static bool Stop(bool cancel);
113 
121  static bool Stop(bool cancel, IgniteError& err);
122 
130  static bool Stop(const char* name, bool cancel);
131 
140  static bool Stop(const char* name, bool cancel, IgniteError& err);
141 
147  static void StopAll(bool cancel);
148 
155  static void StopAll(bool cancel, IgniteError& err);
156  };
157 }
158 
159 #endif //_IGNITE_IGNITION
ignite
Ignite API.
Definition: cache.h:47
ignite.h
ignite::Ignition
This class defines a factory for the main Ignite API.
Definition: ignition.h:35
ignite::Ignite
Main interface to operate with Ignite.
Definition: ignite.h:44
ignite::IgniteConfiguration
Ignite configuration.
Definition: ignite_configuration.h:34
ignite_configuration.h
ignite_error.h
ignite::IgniteError
Ignite error information.
Definition: ignite_error.h:93