-
Notifications
You must be signed in to change notification settings - Fork 29
Hatohol server technical information
Kazuhiro Yamato edited this page Jul 4, 2014
·
18 revisions
A REST interface to get unified data and configure Hatohol itself.
A component to get monitoring data from monitoring servers such as Zabbix server.
- A base class to access DBs
- Actual Subclassess: DBAgentMySQL and DBAgentSQLite3
- The subclasses do the following things
- Provides C++ like API to access data in DB.
- manages one or more tables on DB.
- Convert data format: list or vector <==> ItemTable.
- A virtual base class to handle various type of value with the same interfaces.
- Implemented subclasses:
- ItemInt
- ItemBool
- ItemString
- ItemDouble
- ItemUint64
- A ItemData instance has the following information
- ItemID (can be SYSTEM_ITEM_ID_ANONYMOUS)
- Data type
- Null flag
- Value
- Used count (derived from UsedCountable class)
- Cannot modify the value once it is added to ItemGroup because it has ItemData as const. After that ItemData can be used multiple contexts on different threads.
- An instance is typically wrapped by ItemDataPtr that is a smart pointer for ItemData and increments (decrements) the used count at the constructor (destructor).