~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/parameters_ms.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 11:44:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623114430-no355yypk4y3icqb
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2010 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
25
25
 */
26
26
 
27
27
#ifdef DRIZZLED
28
 
#include "config.h"
 
28
#include <config.h>
29
29
#include <set>
30
30
#include <drizzled/common.h>
31
31
#include <drizzled/plugin.h>
32
32
#include <drizzled/session.h>
 
33
#include <drizzled/sql_lex.h>
33
34
 
34
35
 
35
36
#define my_strdup(a,b) strdup(a)
384
385
#ifdef DRIZZLED
385
386
        my_table_match = set_match_type(my_table_list.c_str());
386
387
        const module::option_map &vm= context.getOptions();
387
 
        my_events_enabled= (vm.count("watch-disable")) ? false : true;
 
388
        my_events_enabled= not vm.count("watch-disable");
388
389
 
389
390
        context.registerVariable(new sys_var_constrained_value_readonly<in_port_t>("port",
390
391
                                                                         pbms_port_number));
423
424
{
424
425
        context("port",
425
426
                po::value<port_constraint>(&pbms_port_number)->default_value(DEFAULT_PBMS_PORT),
426
 
                N_("Port number to use for connection or 0 for default PBMS port "));
 
427
                _("Port number to use for connection or 0 for default PBMS port "));
427
428
        context("repository-threshold",
428
429
                po::value<std::string>(&my_repository_threshold)->default_value(MS_REPO_THRESHOLD_DEF),
429
 
                N_("The maximum size of a BLOB repository file."));
 
430
                _("The maximum size of a BLOB repository file."));
430
431
        context("temp-log-threshold",
431
432
                po::value<std::string>(&my_temp_log_threshold)->default_value(MS_TEMP_LOG_THRESHOLD_DEF),
432
 
                N_("The maximum size of a temorary BLOB log file."));
 
433
                _("The maximum size of a temorary BLOB log file."));
433
434
        context("http-metadata-headers",
434
435
                po::value<std::string>(&my_http_metadata_headers)->default_value(MS_HTTP_METADATA_HEADERS_DEF),
435
 
                N_("A ':' delimited list of metadata header names to be used to initialize "
 
436
                _("A ':' delimited list of metadata header names to be used to initialize "
436
437
                   "the pbms_metadata_header table when a database is created."));
437
438
        context("garbage-threshold",
438
439
                po::value<percent_constraint>(&my_garbage_threshold)->default_value(MS_DEFAULT_GARBAGE_LEVEL),
439
 
                N_("The percentage of garbage in a repository file before it is compacted."));
 
440
                _("The percentage of garbage in a repository file before it is compacted."));
440
441
        context("temp-blob-timeout",
441
442
                po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_TEMP_LOG_WAIT),
442
 
                N_("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database."));
 
443
                _("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database."));
443
444
        context("max-keep-alive",
444
445
                po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_KEEP_ALIVE),
445
 
                N_("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection."));
 
446
                _("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection."));
446
447
        context("next-backup-db-id",
447
448
                po::value<uint32_nonzero_constraint>(&my_backup_db_id)->default_value(1),
448
 
                N_("The next backup ID to use when backing up a PBMS database."));
 
449
                _("The next backup ID to use when backing up a PBMS database."));
449
450
        context("watch-tables",
450
451
                po::value<std::string>(&my_table_list)->default_value("*"),
451
 
                N_("A comma delimited list of tables to watch of the format: <database>.<table>, ..."));
 
452
                _("A comma delimited list of tables to watch of the format: <database>.<table>, ..."));
452
453
        context("watch-disable",
453
 
                N_("Enable PBMS daemon Insert/Update/Delete event scanning"));
 
454
                _("Enable PBMS daemon Insert/Update/Delete event scanning"));
454
455
 
455
456
        context("before-insert-position",
456
457
                po::value<before_position_constraint>(&my_before_insert_position)->default_value(1),
457
 
                N_("Before insert row event observer call position"));
 
458
                _("Before insert row event observer call position"));
458
459
 
459
460
        context("before-update-position",
460
461
                po::value<before_position_constraint>(&my_before_update_position)->default_value(1),
461
 
                N_("Before update row event observer call position"));
 
462
                _("Before update row event observer call position"));
462
463
 
463
464
}
464
465
#endif