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 #if 0 /* just to make Emacs auto-indent happy */
28 }
29 #endif
30 
31 /** @class RRDAspect <plugins/rrd/aspect/rrd.h>
32  * Thread aspect create, update, and graph round-robin databases (RRD).
33  * Give this aspect to your thread to create, update, and graph round-robin
34  * databases produced by rrdtool.
35  *
36  * @ingroup Aspects
37  * @author Tim Niemueller
38  */
39 
40 /** @var fawkes::RRDManager * RRDAspect::rrd_manager
41  * Manager class to access RRD features. It will take care of properly
42  * distributing the work.
43  */
44 
45 /** Constructor. */
47 {
48  add_aspect("RRDAspect");
49 }
50 
51 
52 /** Virtual empty destructor. */
54 {
55 }
56 
57 
58 /** Init RRD aspect.
59  * This set the RRD manager to access RRDs.
60  * It is guaranteed that this is called for a RRD Thread before start
61  * is called (when running regularly inside Fawkes).
62  * @param bb RRD to use
63  */
64 void
65 RRDAspect::init_RRDAspect(RRDManager *rrd_manager)
66 {
67  this->rrd_manager = rrd_manager;
68 }
69 
70 } // end namespace fawkes
RRDManager * rrd_manager
Manager class to access RRD features.
Definition: rrd.h:45
Interface for a RRD connection creator.
Definition: rrd_manager.h:40
Fawkes library namespace.
virtual ~RRDAspect()
Virtual empty destructor.
Definition: rrd.cpp:53
void add_aspect(const char *name)
Add an aspect to a thread.
Definition: aspect.cpp:52
RRDAspect()
Constructor.
Definition: rrd.cpp:46