UniSet
2.6.0
|
Открытые члены | |
DBServer_SQLite (uniset::ObjectId id, const std::string &prefix) | |
DBServer_SQLite (const std::string &prefix) | |
std::shared_ptr< LogAgregator > | logAggregator () |
std::shared_ptr< DebugStream > | log () |
![]() | |
DBServer (uniset::ObjectId id, const std::string &prefix="db") | |
DBServer (const std::string &prefix="db") | |
![]() | |
UniSetObject (const std::string &name, const std::string §ion) | |
UniSetObject (uniset::ObjectId id) | |
std::shared_ptr< UniSetObject > | get_ptr () |
virtual CORBA::Boolean | exist () override |
virtual uniset::ObjectId | getId () override |
const uniset::ObjectId | getId () const |
std::string | getName () const |
virtual uniset::ObjectType | getType () override |
const std::string | getStrType () |
virtual uniset::SimpleInfo * | getInfo (const char *userparam="") override |
virtual uniset::SimpleInfo * | apiRequest (const char *query) override |
virtual void | push (const uniset::TransportMessage &msg) override |
поместить сообщение в очередь Подробнее... | |
virtual Poco::JSON::Object::Ptr | httpGet (const Poco::URI::QueryParameters &p) override |
virtual Poco::JSON::Object::Ptr | httpHelp (const Poco::URI::QueryParameters &p) override |
uniset::ObjectPtr | getRef () const |
virtual timeout_t | askTimer (uniset::TimerId timerid, timeout_t timeMS, clock_t ticks=-1, uniset::Message::Priority p=uniset::Message::High) override |
![]() | |
timeout_t | checkTimers (UniSetObject *obj) |
timeout_t | getTimeInterval (uniset::TimerId timerid) |
timeout_t | getTimeLeft (uniset::TimerId timerid) |
![]() | |
virtual Poco::JSON::Object::Ptr | httpRequest (const std::string &req, const Poco::URI::QueryParameters &p) |
Открытые статические члены | |
static std::shared_ptr < DBServer_SQLite > | init_dbserver (int argc, const char *const *argv, const std::string &prefix="sqlite") |
static void | help_print (int argc, const char *const *argv) |
![]() | |
static std::string | help_print () |
Защищенные типы | |
enum | Timers { PingTimer, ReconnectTimer, lastNumberOfTimer } |
typedef std::unordered_map < int, std::string > | DBTableMap |
typedef std::queue< std::string > | QueryBuffer |
![]() | |
typedef std::deque< TimerInfo > | TimersList |
Защищенные члены | |
virtual void | initDBServer () override |
virtual void | initDB (std::shared_ptr< SQLiteInterface > &db) |
virtual void | initDBTableMap (DBTableMap &tblMap) |
virtual void | timerInfo (const uniset::TimerMessage *tm) override |
virtual void | sysCommand (const uniset::SystemMessage *sm) override |
virtual void | sensorInfo (const uniset::SensorMessage *sm) override |
virtual void | confirmInfo (const uniset::ConfirmMessage *cmsg) override |
bool | writeToBase (const string &query) |
void | createTables (SQLiteInterface *db) |
std::string | tblName (int key) |
void | flushBuffer () |
![]() | |
virtual void | processingMessage (const uniset::VoidMessage *msg) override |
virtual bool | activateObject () override |
Активизация объекта (переопределяется для необходимых действий после активизации) Подробнее... | |
![]() | |
VoidMessagePtr | receiveMessage () |
virtual VoidMessagePtr | waitMessage (timeout_t msec=UniSetTimer::WaitUpTime) |
void | termWaiting () |
size_t | countMessages () |
size_t | getCountOfLostMessages () const |
virtual bool | deactivateObject () |
Деактивиция объекта (переопределяется для необходимых действий перед деактивацией) Подробнее... | |
virtual void | sigterm (int signo) |
void | terminate () |
void | thread (bool create) |
void | offThread () |
void | onThread () |
virtual void | callback () |
void | setID (uniset::ObjectId id) |
void | setThreadPriority (Poco::Thread::Priority p) |
void | setMaxSizeOfMessageQueue (size_t s) |
size_t | getMaxSizeOfMessageQueue () const |
bool | isActive () const |
void | setActive (bool set) |
virtual Poco::JSON::Object::Ptr | httpGetMyInfo (Poco::JSON::Object::Ptr root) |
Poco::JSON::Object::Ptr | request_conf (const std::string &req, const Poco::URI::QueryParameters &p) |
Poco::JSON::Object::Ptr | request_conf_name (const std::string &name, const std::string &props) |
![]() | |
virtual std::string | getTimerName (int id) |
TimersList | getTimersList () |
Защищенные данные | |
std::shared_ptr< SQLiteInterface > | db |
int | PingTime |
int | ReconnectTime |
bool | connect_ok |
bool | activate |
QueryBuffer | qbuf |
unsigned int | qbufSize |
bool | lastRemove |
uniset::uniset_rwmutex | mqbuf |
![]() | |
std::shared_ptr< LogAgregator > | loga |
std::shared_ptr< DebugStream > | dblog |
std::shared_ptr< LogServer > | logserv |
std::string | logserv_host = {""} |
int | logserv_port = {0} |
const std::string | prefix = { "db" } |
![]() | |
std::shared_ptr< UInterface > | ui |
std::string | myname |
std::string | section |
std::weak_ptr< UniSetManager > | mymngr |
![]() | |
timeout_t | sleepTime |
|
protected |
|
static |
глобальная функция для вывода help-а
|
static |
глобальная функция для инициализации объекта
|
protected |
признак наличия соеднинения с сервером БД