Fawkes API
Fawkes Development Version
rrd.cpp
1
2
/***************************************************************************
3
* rrd.cpp - RRD aspect for Fawkes
4
*
5
* Created: Fri Dec 17 00:21:28 2010
6
* Copyright 2006-2010 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#include <plugins/rrd/aspect/rrd.h>
25
26
namespace
fawkes
{
27
28
/** @class RRDAspect <plugins/rrd/aspect/rrd.h>
29
* Thread aspect create, update, and graph round-robin databases (RRD).
30
* Give this aspect to your thread to create, update, and graph round-robin
31
* databases produced by rrdtool.
32
*
33
* @ingroup Aspects
34
* @author Tim Niemueller
35
*/
36
37
/** @var fawkes::RRDManager * RRDAspect::rrd_manager
38
* Manager class to access RRD features. It will take care of properly
39
* distributing the work.
40
*/
41
42
/** Constructor. */
43
RRDAspect::RRDAspect
()
44
{
45
add_aspect
(
"RRDAspect"
);
46
}
47
48
/** Virtual empty destructor. */
49
RRDAspect::~RRDAspect
()
50
{
51
}
52
53
/** Init RRD aspect.
54
* This set the RRD manager to access RRDs.
55
* It is guaranteed that this is called for a RRD Thread before start
56
* is called (when running regularly inside Fawkes).
57
* @param bb RRD to use
58
*/
59
void
60
RRDAspect::init_RRDAspect(
RRDManager
*rrd_manager)
61
{
62
this->rrd_manager =
rrd_manager
;
63
}
64
65
}
// end namespace fawkes
fawkes::Aspect::add_aspect
void add_aspect(const char *name)
Add an aspect to a thread.
Definition:
aspect.cpp:49
fawkes::RRDAspect::~RRDAspect
virtual ~RRDAspect()
Virtual empty destructor.
Definition:
rrd.cpp:49
fawkes::RRDAspect::RRDAspect
RRDAspect()
Constructor.
Definition:
rrd.cpp:43
fawkes
Fawkes library namespace.
fawkes::RRDManager
Interface for a RRD connection creator.
Definition:
rrd_manager.h:37
fawkes::RRDAspect::rrd_manager
RRDManager * rrd_manager
Manager class to access RRD features.
Definition:
rrd.h:44
src
plugins
rrd
aspect
rrd.cpp
Generated by
1.8.20