client-c  0.8.1
ext_kaa_failover_strategy.h File Reference
#include <stddef.h>
#include "../kaa_error.h"
#include "../platform/time.h"
+ Include dependency graph for ext_kaa_failover_strategy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaa_failover_decision_t
 

Macros

#define KAA_FAILOVER_RETRY_PERIOD   2
 
#define KAA_BOOTSTRAP_RESPONSE_PERIOD   5
 

Enumerations

enum  kaa_failover_strategy_action_t {
  KAA_NOOP = 0, KAA_RETRY, KAA_USE_NEXT_BOOTSTRAP, KAA_USE_NEXT_OPERATIONS,
  KAA_STOP_APP
}
 
enum  kaa_failover_reason { KAA_BOOTSTRAP_SERVERS_NA = 0, KAA_OPERATION_SERVERS_NA, KAA_NO_OPERATION_SERVERS_RECEIVED, KAA_NO_CONNECTIVITY }
 

Functions

kaa_failover_decision_t kaa_failover_strategy_on_failover (void *self, kaa_failover_reason reason)
 Returns the decision, depending on the failover reason. More...
 

Macro Definition Documentation

#define KAA_BOOTSTRAP_RESPONSE_PERIOD   5

Definition at line 25 of file ext_kaa_failover_strategy.h.

#define KAA_FAILOVER_RETRY_PERIOD   2

Copyright 2014-2016 CyberVision, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 24 of file ext_kaa_failover_strategy.h.

Enumeration Type Documentation

Enumerator
KAA_BOOTSTRAP_SERVERS_NA 
KAA_OPERATION_SERVERS_NA 
KAA_NO_OPERATION_SERVERS_RECEIVED 
KAA_NO_CONNECTIVITY 

Definition at line 35 of file ext_kaa_failover_strategy.h.

Enumerator
KAA_NOOP 
KAA_RETRY 
KAA_USE_NEXT_BOOTSTRAP 
KAA_USE_NEXT_OPERATIONS 
KAA_STOP_APP 

Definition at line 27 of file ext_kaa_failover_strategy.h.

Function Documentation

kaa_failover_decision_t kaa_failover_strategy_on_failover ( void *  self,
kaa_failover_reason  reason 
)

Returns the decision, depending on the failover reason.

Parameters
[in]selfPointer to the failover strategy instance.
[in]reasonReason that caused failover strategy to be executed.
Returns
kaa_failover_decision_t