IBR-DTNSuite 0.6

dtn::daemon::StatisticLogger Class Reference

#include <StatisticLogger.h>

Inheritance diagram for dtn::daemon::StatisticLogger:
Collaboration diagram for dtn::daemon::StatisticLogger:

List of all members.

Public Types

enum  LoggerType {
  LOGGER_STDOUT = 0, LOGGER_SYSLOG = 1, LOGGER_UDP = 2, LOGGER_FILE_PLAIN = 10,
  LOGGER_FILE_CSV = 11, LOGGER_FILE_STAT = 12
}

Public Member Functions

 StatisticLogger (LoggerType type, unsigned int interval, std::string address="127.0.0.1", unsigned int port=1234)
 StatisticLogger (LoggerType type, unsigned int interval, ibrcommon::File file)
virtual ~StatisticLogger ()
void componentUp ()
void componentDown ()
size_t timeout (size_t identifier)
void raiseEvent (const dtn::core::Event *evt)
virtual const std::string getName () const

Detailed Description

Definition at line 38 of file StatisticLogger.h.


Member Enumeration Documentation

Enumerator:
LOGGER_STDOUT 
LOGGER_SYSLOG 
LOGGER_UDP 
LOGGER_FILE_PLAIN 
LOGGER_FILE_CSV 
LOGGER_FILE_STAT 

Definition at line 41 of file StatisticLogger.h.


Constructor & Destructor Documentation

dtn::daemon::StatisticLogger::StatisticLogger ( LoggerType  type,
unsigned int  interval,
std::string  address = "127.0.0.1",
unsigned int  port = 1234 
)

Definition at line 22 of file StatisticLogger.cpp.

References IBRCOMMON_LOGGER, and IBRCOMMON_LOGGER_ENDL.

dtn::daemon::StatisticLogger::StatisticLogger ( LoggerType  type,
unsigned int  interval,
ibrcommon::File  file 
)

Definition at line 29 of file StatisticLogger.cpp.

dtn::daemon::StatisticLogger::~StatisticLogger ( ) [virtual]

Definition at line 35 of file StatisticLogger.cpp.


Member Function Documentation

void dtn::daemon::StatisticLogger::componentDown ( ) [virtual]
const std::string dtn::daemon::StatisticLogger::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 275 of file StatisticLogger.cpp.

void dtn::daemon::StatisticLogger::raiseEvent ( const dtn::core::Event evt) [virtual]
size_t dtn::daemon::StatisticLogger::timeout ( size_t  identifier) [virtual]

This method will be called if the timer timed out.

Parameters:
timerThe reference to the timer which timed out.
Returns:
The new countdown value.

Implements ibrcommon::SimpleTimerCallback.

Definition at line 75 of file StatisticLogger.cpp.

References LOGGER_FILE_CSV, LOGGER_FILE_PLAIN, LOGGER_FILE_STAT, LOGGER_STDOUT, LOGGER_SYSLOG, and LOGGER_UDP.


The documentation for this class was generated from the following files: