GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::createTableMonitor. More...
#include <gpudb/protocol/create_table_monitor.h>
Public Member Functions | |
CreateTableMonitorRequest () | |
Constructs a CreateTableMonitorRequest object with default parameters. More... | |
CreateTableMonitorRequest (const std::string &tableName_, const std::map< std::string, std::string > &options_) | |
Constructs a CreateTableMonitorRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
Name of the table to monitor, in [ schema_name. ]table_name format, using standard name resolution rules. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::createTableMonitor.
Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by tableName) and forwards event notifications to subscribers via ZMQ. After this call completes, subscribe to the returned topicId on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using typeSchema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with GPUdb::clearTableMonitor.
For more information on table monitors, see Table Monitors.
Definition at line 36 of file create_table_monitor.h.
|
inline |
Constructs a CreateTableMonitorRequest object with default parameters.
Definition at line 42 of file create_table_monitor.h.
|
inline |
Constructs a CreateTableMonitorRequest object with the specified parameters.
[in] | tableName_ | Name of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules. |
[in] | options_ | Optional parameters.
|
Definition at line 175 of file create_table_monitor.h.
std::map<std::string, std::string> gpudb::CreateTableMonitorRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 269 of file create_table_monitor.h.
std::string gpudb::CreateTableMonitorRequest::tableName |
Name of the table to monitor, in [ schema_name. ]table_name format, using standard name resolution rules.
Definition at line 187 of file create_table_monitor.h.