IBR-DTNSuite  0.8
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 (ibrcommon::Timer *)
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 21 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 28 of file StatisticLogger.cpp.

Definition at line 34 of file StatisticLogger.cpp.


Member Function Documentation

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

Implements dtn::daemon::Component.

Definition at line 274 of file StatisticLogger.cpp.

This method will be called if the timer timed out.

Parameters:
timerThe reference to the timer which timed out.
Exceptions:
Timer::StopTimerExceptionif thrown will abort the timer
Returns:
The new timeout value.

Implements ibrcommon::TimerCallback.

Definition at line 74 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: