client-cpp
0.10.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
IFailoverStrategy.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2014-2016 CyberVision, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (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
* http://www.apache.org/licenses/LICENSE-2.0
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
17
#ifndef IFAILOVERSTRATEGY_HPP_
18
#define IFAILOVERSTRATEGY_HPP_
19
20
#include <memory>
21
22
#include "
kaa/failover/FailoverCommon.hpp
"
23
24
namespace
kaa {
25
26
class
IFailoverStrategy
{
27
public
:
28
virtual
FailoverStrategyDecision
onFailover
(
KaaFailoverReason
failover) = 0;
29
30
virtual
~IFailoverStrategy
() {}
31
32
};
33
34
typedef
std::shared_ptr<IFailoverStrategy>
IFailoverStrategyPtr
;
35
36
}
37
38
#endif
/* IFAILOVERSTRATEGY_HPP_ */
kaa::KaaFailoverReason
KaaFailoverReason
Definition:
FailoverCommon.hpp:25
kaa::IFailoverStrategyPtr
std::shared_ptr< IFailoverStrategy > IFailoverStrategyPtr
Definition:
IFailoverStrategy.hpp:34
kaa::FailoverStrategyDecision
Definition:
FailoverCommon.hpp:98
FailoverCommon.hpp
kaa::IFailoverStrategy
Definition:
IFailoverStrategy.hpp:26
kaa::IFailoverStrategy::~IFailoverStrategy
virtual ~IFailoverStrategy()
Definition:
IFailoverStrategy.hpp:30
kaa::IFailoverStrategy::onFailover
virtual FailoverStrategyDecision onFailover(KaaFailoverReason failover)=0
architec
Documents
kaa
client
client-multi
client-cpp
kaa
failover
IFailoverStrategy.hpp
Generated on Mon Oct 31 2016 16:51:43 for client-cpp by
1.8.6