VMware GemFire Native Client Cache Reference  9.0.6
Statistics.hpp
Go to the documentation of this file.
1 #ifndef _GEMFIRE_STATISTICS_STATISTICS_HPP_
2 #define _GEMFIRE_STATISTICS_STATISTICS_HPP_
3 /*=========================================================================
4  * Copyright (c) 2004-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *=========================================================================
9  */
10 
11 #include "../gfcpp_globals.hpp"
12 #include "StatisticsType.hpp"
13 #include "StatisticDescriptor.hpp"
14 
18 namespace gemfire_statistics {
24 
25  public :
32  virtual void close()=0;
33 
35 
47  virtual int32 nameToId(const char* name)=0;
48 
49 
61  virtual StatisticDescriptor* nameToDescriptor(const char* name)=0;
62 
66  virtual int64 getUniqueId()=0;
67 
71  virtual StatisticsType* getType()=0;
75  virtual const char* getTextId()=0;
80 virtual int64 getNumericId()=0;
90  virtual bool isAtomic()=0;
97  virtual bool isShared()=0;
101  virtual bool isClosed()=0;
102 
104 
115  virtual void setInt(int32 id, int32 value)=0;
116 
127  virtual void setInt(char* name, int32 value)=0;
128 
140  virtual void setInt(StatisticDescriptor* descriptor, int32 value)=0;
141 
155  virtual void setLong(int32 id, int64 value) = 0;
167  virtual void setLong(StatisticDescriptor* descriptor, int64 value)=0;
168 
179  virtual void setLong(char* name, int64 value)=0;
180 
191  virtual void setDouble(int32 id, double value)=0;
192 
204  virtual void setDouble(StatisticDescriptor* descriptor, double value)=0;
215  virtual void setDouble(char* name, double value)=0;
216 
218 
227  virtual int32 getInt(int32 id)=0;
228 
239  virtual int32 getInt(StatisticDescriptor* descriptor)=0;
250  virtual int32 getInt(char* name)=0;
251 
260  virtual int64 getLong(int32 id)=0;
261 
262 
273  virtual int64 getLong(StatisticDescriptor* descriptor)=0;
284  virtual int64 getLong(char* name)=0;
285 
294  virtual double getDouble(int32 id)=0;
295 
306  virtual double getDouble(StatisticDescriptor* descriptor)=0;
317  virtual double getDouble(char* name)=0;
318 
327 // virtual Number get(StatisticDescriptor* descriptor)=0;
328 
335 // virtual Number get(char* name)=0;
336 
345  virtual int64 getRawBits(StatisticDescriptor* descriptor)=0;
346 
353  // virtual double getRawBits(char* name)=0;
354 
356 
370  virtual int32 incInt(int32 id, int32 delta)=0;
371 
385  virtual int32 incInt(StatisticDescriptor* descriptor, int32 delta)=0;
386 
399  virtual int32 incInt(char* name, int32 delta)=0;
400 
414  virtual int64 incLong(int32 id, int64 delta)=0;
415 
430  virtual int64 incLong(StatisticDescriptor* descriptor, int64 delta)=0;
444  virtual int64 incLong(char* name, int64 delta)=0;
445 
459  virtual double incDouble(int32 id, double delta)=0;
460 
475  virtual double incDouble(StatisticDescriptor* descriptor, double delta)=0;
489  virtual double incDouble(char* name, double delta)=0;
490 
491 protected:
495  virtual ~Statistics()=0;
496 };//class
497 
498 };//namespace
499 
500 #endif // _GEMFIRE_STATISTICS_STATISTICS_HPP_
This namespace contains all the GemFire C++ statistics API classes.
int64_t int64
signed 64 bit integer
Definition: gf_base.hpp:180
int32_t int32
signed 32 bit integer
Definition: gf_base.hpp:178
An instantiation of an existing StatisticsType object with methods for setting, incrementing and gett...
Definition: Statistics.hpp:23
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
Describes an individual statistic whose value is updated by an application and may be archived by Gem...
Definition: StatisticDescriptor.hpp:34
Used to describe a logical collection of StatisticDescriptors.
Definition: StatisticsType.hpp:31

GemFire C++ Cache API Documentation