VMware GemFire Native C++ Reference  9.1
StatisticDescriptor.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_STATISTICS_STATISTICDESCRIPTOR_H_
4 #define GEODE_STATISTICS_STATISTICDESCRIPTOR_H_
5 
6 /*
7  * Licensed to the Apache Software Foundation (ASF) under one or more
8  * contributor license agreements. See the NOTICE file distributed with
9  * this work for additional information regarding copyright ownership.
10  * The ASF licenses this file to You under the Apache License, Version 2.0
11  * (the "License"); you may not use this file except in compliance with
12  * the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 
23 #include <geode/geode_globals.hpp>
24 
25 using namespace apache::geode::client;
26 
30 namespace apache {
31 namespace geode {
32 namespace statistics {
33 
48  public:
54  virtual int32_t getId() = 0;
55 
59  virtual const char* getName() = 0;
60 
64  virtual const char* getDescription() = 0;
65 
71  virtual bool isCounter() = 0;
72 
76  virtual bool isLargerBetter() = 0;
77 
81  virtual const char* getUnit() = 0;
82 
83  /*
84  * Destructor
85  */
86  virtual ~StatisticDescriptor() {}
87 
88 }; // class
89 } // namespace statistics
90 } // namespace geode
91 } // namespace apache
92 
93 #endif // GEODE_STATISTICS_STATISTICDESCRIPTOR_H_
Definition: Assert.hpp:33
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
Describes an individual statistic whose value is updated by an application and may be archived by Geo...
Definition: StatisticDescriptor.hpp:47
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation