| Apache Ignite C++

ignite_binding_context.h
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
23 #ifndef _IGNITE_IGNITE_BINDING_CONTEXT
24 #define _IGNITE_IGNITE_BINDING_CONTEXT
25
26 #include <ignite/ignite_binding.h>
27 #include <ignite/ignite_configuration.h>
28
29 namespace ignite
30 {
31 namespace impl
32 {
33 class IgniteEnvironment;
34 }
35
42 class IgniteBindingContext
43 {
44 friend class impl::IgniteEnvironment;
45 public:
51 IgniteBinding GetBinding() const
52 {
53 return binding;
54 }
55
61 const IgniteConfiguration& GetConfiguration() const
62 {
63 return cfg;
64 }
65
66 private:
73 IgniteBindingContext(const IgniteConfiguration& cfg, const IgniteBinding& binding) :
74 cfg(cfg),
75 binding(binding)
76 {
77 // No-op.
78 }
79
81 const IgniteConfiguration& cfg;
82
84 IgniteBinding binding;
85 };
86 }
87
88 #endif //_IGNITE_IGNITE_BINDING_CONTEXT
ignite::IgniteBinding
Ignite Binding.
Definition: ignite_binding.h:38
ignite
Apache Ignite API.
Definition: cache.h:48
ignite::IgniteBindingContext::GetConfiguration
const IgniteConfiguration & GetConfiguration() const
Get configuration for current node.
Definition: ignite_binding_context.h:61
ignite::IgniteBindingContext
Ignite binding context.
Definition: ignite_binding_context.h:42
ignite::IgniteConfiguration
Ignite configuration.
Definition: ignite_configuration.h:35
ignite::IgniteBindingContext::GetBinding
IgniteBinding GetBinding() const
Get binding.
Definition: ignite_binding_context.h:51
ignite_configuration.h
ignite_binding.h