IBR-DTNSuite
0.12
|
#include <NodeEvent.h>
Public Member Functions | |
virtual | ~NodeEvent () |
EventNodeAction | getAction () const |
const Node & | getNode () const |
const std::string | getName () const |
std::string | getMessage () const |
Public Member Functions inherited from dtn::core::Event | |
virtual | ~Event ()=0 |
virtual std::string | toString () const |
bool | isLoggable () const |
Static Public Member Functions | |
static void | raise (const Node &n, const EventNodeAction action) |
Static Public Attributes | |
static const std::string | className = "NodeEvent" |
Additional Inherited Members | |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 42 of file NodeEvent.h.
|
virtual |
Definition at line 52 of file NodeEvent.cpp.
EventNodeAction dtn::core::NodeEvent::getAction | ( | ) | const |
Definition at line 60 of file NodeEvent.cpp.
Referenced by dtn::api::EventConnection::raiseEvent(), dtn::net::FileConvergenceLayer::raiseEvent(), dtn::routing::NodeHandshakeExtension::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), dtn::dht::DHTNameService::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 70 of file NodeEvent.cpp.
References dtn::core::NODE_AVAILABLE, dtn::core::NODE_DATA_ADDED, dtn::core::NODE_DATA_REMOVED, and dtn::core::Node::NODE_UNAVAILABLE.
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 65 of file NodeEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
const Node & dtn::core::NodeEvent::getNode | ( | ) | const |
Definition at line 55 of file NodeEvent.cpp.
Referenced by dtn::net::TCPConnection::match(), dtn::api::EventConnection::raiseEvent(), dtn::net::FileConvergenceLayer::raiseEvent(), dtn::routing::NodeHandshakeExtension::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), dtn::dht::DHTNameService::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
static |
Definition at line 47 of file NodeEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::net::ConnectionManager::add(), and dtn::net::ConnectionManager::remove().
|
static |
Definition at line 55 of file NodeEvent.h.
Referenced by getName().