GridGain C++ Client Library
grid_factory.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) GridGain Systems. All Rights Reserved.
3  * _________ _____ __________________ _____
4  * __ ____/___________(_)______ /__ ____/______ ____(_)_______
5  * _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
6  * / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
7  * \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/
8  */
9 
15 #ifndef _GRIDGAIN_GRID_FACTORY
16 #define _GRIDGAIN_GRID_FACTORY
17 
18 #include "gridgain/grid.h"
20 #include "gridgain/grid_error.h"
21 
22 namespace gridgain
23 {
27  class IGNITE_IMPORT_EXPORT GridFactory
28  {
29  public:
36  static Grid Start(const GridConfiguration& cfg);
37 
45  static Grid Start(const GridConfiguration& cfg, GridError* err);
46 
54  static Grid Start(const GridConfiguration& cfg, const char* name);
55 
64  static Grid Start(const GridConfiguration& cfg, const char* name, GridError* err);
65 
71  static Grid Get();
72 
79  static Grid Get(GridError* err);
80 
87  static Grid Get(const char* name);
88 
96  static Grid Get(const char* name, GridError* err);
97 
104  static bool Stop(bool cancel);
105 
113  static bool Stop(bool cancel, GridError* err);
114 
122  static bool Stop(const char* name, bool cancel);
123 
132  static bool Stop(const char* name, bool cancel, GridError* err);
133 
139  static void StopAll(bool cancel);
140 
147  static void StopAll(bool cancel, GridError* err);
148  };
149 }
150 
151 #endif
Main interface to operate with GridGain.
Definition: grid.h:27
Declares gridgain::GridError class.
Declares gridgain::Grid class.
Grid configuration.
Definition: grid_configuration.h:87
Declares gridgain::GridJvmOption class and gridgain::GridConfiguration structs.
GridGain API.
Definition: cache.h:35
Grid error information.
Definition: grid_error.h:70
This class defines a factory for the main GridGain API.
Definition: grid_factory.h:27