~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/stats_schema.h

  • Committer: Joe Daly
  • Date: 2010-06-06 18:08:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1614.
  • Revision ID: skinny.moey@gmail.com-20100606180800-414svjbgxc9wz1z3
fix compiler warning (hopefully) change lu to PRIu64

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  public:
50
50
    Generator(drizzled::Field **arg, LoggingStats *logging_stats);
51
51
 
52
 
    ~Generator();
53
 
 
54
52
    bool populate();
55
53
 
56
54
  private:
57
 
    GlobalStats *global_stats_to_display; 
 
55
    GlobalStats *global_stats; 
58
56
    uint32_t count;
59
57
  };
60
58
 
114
112
    std::vector<ScoreboardSlot *>::iterator scoreboard_vector_end;
115
113
    std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_it;
116
114
    std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_end; 
117
 
    boost::shared_mutex* current_lock;
 
115
    pthread_rwlock_t* current_lock;
118
116
 
119
117
    void setVectorIteratorsAndLock(uint32_t bucket_number);
120
118
  };
153
151
  LoggingStats *outer_logging_stats;
154
152
};
155
153
 
156
 
class CumulativeUserStatsTool : public drizzled::plugin::TableFunction
 
154
class StatusVarTool : public drizzled::plugin::TableFunction
157
155
{
158
156
public:
159
157
 
160
 
  CumulativeUserStatsTool(LoggingStats *logging_stats);
 
158
  StatusVarTool(LoggingStats *logging_stats);
161
159
 
162
160
  class Generator : public drizzled::plugin::TableFunction::Generator
163
161
  {
179
177
  LoggingStats *outer_logging_stats;
180
178
};
181
179
 
182
 
class ScoreboardStatsTool : public drizzled::plugin::TableFunction
183
 
{
184
 
public:
185
 
 
186
 
  ScoreboardStatsTool(LoggingStats *logging_stats);
187
 
 
188
 
  class Generator : public drizzled::plugin::TableFunction::Generator
189
 
  {
190
 
  public:
191
 
    Generator(drizzled::Field **arg, LoggingStats *logging_stats);
192
 
 
193
 
    bool populate();
194
 
  private:
195
 
    LoggingStats *inner_logging_stats;
196
 
    bool is_last_record;
197
 
  };
198
 
 
199
 
  Generator *generator(drizzled::Field **arg)
200
 
  {
201
 
    return new Generator(arg, outer_logging_stats);
202
 
  }
203
 
private:
204
 
  LoggingStats *outer_logging_stats;
205
 
};
206
 
 
207
180
#endif /* PLUGIN_LOGGING_STATS_STATS_SCHEMA_H */