~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/drizzle_protocol.cc

  • Committer: Andrew Hutchings
  • Date: 2011-01-31 14:35:57 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110131143557-ul09gpvfwhx0p0nt
Add protocol counters table

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  const module::option_map &vm= context.getOptions();
99
99
 
100
100
  context.add(new StatusTable);
101
 
  context.add(new ListenDrizzleProtocol("drizzle_protocol", vm["bind-address"].as<std::string>(), true));
 
101
  ListenDrizzleProtocol *protocol=new ListenDrizzleProtocol("drizzle_protocol", vm["bind-address"].as<std::string>(), true);
 
102
  protocol->addCountersToTable();
 
103
  context.add(protocol);
102
104
  context.registerVariable(new sys_var_constrained_value_readonly<in_port_t>("port", port));
103
105
  context.registerVariable(new sys_var_constrained_value_readonly<uint32_t>("connect_timeout", connect_timeout));
104
106
  context.registerVariable(new sys_var_constrained_value_readonly<uint32_t>("read_timeout", read_timeout));