Qore EmpathicBuildingDataProvider Module Reference 1.1
Loading...
Searching...
No Matches
EmpathicBuildingDataProviderBase.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
28class EmpathicBuildingDataProviderBase : public DataProvider::AbstractDataProvider {
29
30public:
32 const RetrySet = ...;
33
34
36 const MaxIoRetries = 5;
37
38protected:
40 RestClient::RestClient rest;
41
42public:
43
46
47
49 constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger);
50
51
53 setLogger(*LoggerInterface logger);
54
55
57
60 updateConnectionObjects(object conn, object connobj);
61
62
64 static date getTimestamp(int epoch_ms);
65
67protected:
68 hash<auto> doRestCommand(string method, string path, auto body, reference<hash<auto>> info);
69public:
70
71
73protected:
74 bool retry(hash<ExceptionInfo> ex, reference<int> retries);
75public:
76
77};
78};
The EmpathicBuilding data provider class.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:28
static date getTimestamp(int epoch_ms)
Converts a Haltian ms epoch offset to a date/time value.
setLogger(*LoggerInterface logger)
Accepts a LoggerInterface object for logging (or clears it)
const MaxIoRetries
Max retries.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:36
const RetrySet
IO errors for REST retries.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:32
updateConnectionObjects(object conn, object connobj)
Update any connection used by the data provider.
constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger)
Creates the object.
bool retry(hash< ExceptionInfo > ex, reference< int > retries)
Returns True if the error indicates that the operation should be retried.
hash< auto > doRestCommand(string method, string path, auto body, reference< hash< auto > > info)
Makes a REST call and returns the response.
RestClient::RestClient rest
The REST client object for API calls.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:40
Qore EmpathicBuildingDataProvider module definition.
Definition EmpathicBuildingDataProvider.qc.dox.h:26