GridGain C++
ignite_binding_context.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_IGNITE_BINDING_CONTEXT
23 #define _IGNITE_IGNITE_BINDING_CONTEXT
24 
25 #include <ignite/ignite_binding.h>
27 
28 namespace ignite
29 {
30  namespace impl
31  {
32  class IgniteEnvironment;
33  }
34 
42  {
43  friend class impl::IgniteEnvironment;
44  public:
51  {
52  return binding;
53  }
54 
61  {
62  return cfg;
63  }
64 
65  private:
72  IgniteBindingContext(const IgniteConfiguration& cfg, const IgniteBinding& binding) :
73  cfg(cfg),
74  binding(binding)
75  {
76  // No-op.
77  }
78 
80  const IgniteConfiguration& cfg;
81 
83  IgniteBinding binding;
84  };
85 }
86 
87 #endif //_IGNITE_IGNITE_BINDING_CONTEXT
ignite::IgniteBinding
Ignite Binding.
Definition: ignite_binding.h:37
ignite
Ignite API.
Definition: cache.h:47
ignite::IgniteBindingContext::GetConfiguration
const IgniteConfiguration & GetConfiguration() const
Get configuration for current node.
Definition: ignite_binding_context.h:60
ignite::IgniteBindingContext
Ignite binding context.
Definition: ignite_binding_context.h:41
ignite::IgniteConfiguration
Ignite configuration.
Definition: ignite_configuration.h:34
ignite::IgniteBindingContext::GetBinding
IgniteBinding GetBinding() const
Get binding.
Definition: ignite_binding_context.h:50
ignite_configuration.h
ignite_binding.h