Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * rrd.cpp - RRD aspect for Fawkes 00004 * 00005 * Created: Fri Dec 17 00:21:28 2010 00006 * Copyright 2006-2010 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #include <plugins/rrd/aspect/rrd.h> 00025 00026 namespace fawkes { 00027 #if 0 /* just to make Emacs auto-indent happy */ 00028 } 00029 #endif 00030 00031 /** @class RRDAspect <plugins/rrd/aspect/rrd.h> 00032 * Thread aspect create, update, and graph round-robin databases (RRD). 00033 * Give this aspect to your thread to create, update, and graph round-robin 00034 * databases produced by rrdtool. 00035 * 00036 * @ingroup Aspects 00037 * @author Tim Niemueller 00038 */ 00039 00040 /** @var fawkes::RRDManager * RRDAspect::rrd_manager 00041 * Manager class to access RRD features. It will take care of properly 00042 * distributing the work. 00043 */ 00044 00045 /** Constructor. */ 00046 RRDAspect::RRDAspect() 00047 { 00048 add_aspect("RRDAspect"); 00049 } 00050 00051 00052 /** Virtual empty destructor. */ 00053 RRDAspect::~RRDAspect() 00054 { 00055 } 00056 00057 00058 /** Init RRD aspect. 00059 * This set the RRD manager to access RRDs. 00060 * It is guaranteed that this is called for a RRD Thread before start 00061 * is called (when running regularly inside Fawkes). 00062 * @param bb RRD to use 00063 */ 00064 void 00065 RRDAspect::init_RRDAspect(RRDManager *rrd_manager) 00066 { 00067 this->rrd_manager = rrd_manager; 00068 } 00069 00070 } // end namespace fawkes