|
@@ -131,6 +131,26 @@ public:
|
|
|
/// \return the value of the counter specified by \a type.
|
|
|
///
|
|
|
uint64_t getCounter(const AuthCounters::CounterType type) const;
|
|
|
+
|
|
|
+ /// \brief A type of validation function for the specification in
|
|
|
+ /// isc::config::ModuleSpec.
|
|
|
+ ///
|
|
|
+ /// This type might be useful for not only statistics
|
|
|
+ /// specificatoin but also for config_data specification and for
|
|
|
+ /// commnad.
|
|
|
+ ///
|
|
|
+ typedef boost::function<bool(const isc::data::ConstElementPtr&)>
|
|
|
+ validator_type;
|
|
|
+
|
|
|
+ /// \brief Register a function type of the statistics validation
|
|
|
+ /// function for AuthCounters.
|
|
|
+ ///
|
|
|
+ /// This method never throws an exception.
|
|
|
+ ///
|
|
|
+ /// \param validator A function type of the validation of
|
|
|
+ /// statistics specification.
|
|
|
+ ///
|
|
|
+ void registerStatisticsValidator(AuthCounters::validator_type validator) const;
|
|
|
};
|
|
|
|
|
|
#endif // __STATISTICS_H
|