~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/logging_stats/cumulative_stats.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    return global_status_vars;
68
68
  }
69
69
 
70
 
  int32_t getCumulativeStatsByUserMax()
 
70
  int32_t getCumulativeStatsByUserMax() const
71
71
  {
72
72
    return cumulative_stats_by_user_max; 
73
73
  }
74
74
 
75
 
  uint64_t getCumulativeSizeBytes()
 
75
  uint64_t getCumulativeSizeBytes() const
76
76
  {
77
77
    return cumulative_size_bytes;
78
78
  }
79
79
 
80
 
  int32_t getCumulativeStatsLastValidIndex();
 
80
  int32_t getCumulativeStatsLastValidIndex() const;
81
81
 
82
 
  bool hasOpenUserSlots()
 
82
  bool hasOpenUserSlots() const
83
83
  {
84
84
    return isOpenUserSlots;
85
85
  }
86
86
 
87
 
  void sumCurrentScoreboard(Scoreboard *scoreboard, 
88
 
                            StatusVars *current_status_vars,
89
 
                            UserCommands *current_user_commands);
 
87
  void sumCurrentScoreboard(Scoreboard*,  StatusVars*, UserCommands*);
90
88
 
91
89
private:
92
 
  std::vector<ScoreboardSlot* > *cumulative_stats_by_user_vector;
 
90
  std::vector<ScoreboardSlot*>* cumulative_stats_by_user_vector;
93
91
  GlobalStats *global_stats; 
94
92
  StatusVars *global_status_vars;
95
93
  uint64_t cumulative_size_bytes;