Changeset 297

Show
Ignore:
Timestamp:
02/22/08 06:46:25 (9 months ago)
Author:
rm
Message:

stats - ThrudexPassthruBackend?, StatsBackend?, thrudex_rrdtool.pl,

Location:
trunk/thrudex
Files:
4 added
2 modified
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/thrudex/scripts/thrudex_rrdpull.pl

    r247 r297  
    1818 
    1919my $hostname = shift @ARGV; 
    20 my $port = 9091; 
     20my $port = 9092; 
    2121my $interval = 60; 
    2222 
  • trunk/thrudex/src/Makefile.am

    r293 r297  
    1010                  CLuceneRAMDirectory.cpp               \ 
    1111                  CLuceneIndex.cpp                      \ 
     12                  StatsBackend.cpp                      \ 
    1213                  UpdateFilter.cpp                      \ 
    1314                  main.cpp 
  • trunk/thrudex/src/main.cpp

    r259 r297  
    3838#include "ThrudexBackend.h" 
    3939#include "CLuceneBackend.h" 
     40#include "StatsBackend.h" 
    4041#include "ConfigFile.h" 
    4142#include "utils.h" 
    42  
    4343 
    4444using namespace log4cxx; 
     
    9696        shared_ptr<ThrudexBackend>    backend(new CLuceneBackend(index_root)); 
    9797 
     98 
     99        if (ConfigManager->read<int>("KEEP_STATS", 0)) 
     100          backend = shared_ptr<ThrudexBackend> (new StatsBackend (backend)); 
    98101 
    99102        shared_ptr<TProtocolFactory>  protocolFactory  (new TBinaryProtocolFactory());