33 #ifndef NATIVEDAEMON_H_
34 #define NATIVEDAEMON_H_
62 virtual void eventRaised(
const std::string &event,
const std::string &action,
const std::vector<std::string> &data)
throw () = 0;
122 void addData(
const std::string &tag,
size_t data) {
123 _tags.push_back(tag);
124 _data.push_back(data);
128 std::vector<std::string> _tags;
129 std::vector<size_t> _data;
140 class NativeEventLoop;
144 static const std::string
TAG;
184 void setLogging(const std::
string &defaultTag,
int logLevel) const throw ();
189 void setLogFile(const std::
string &path,
int logLevel) const throw ();
211 NativeNode getInfo(const std::
string &neighbor_eid) const throw (NativeDaemonException);
221 void addConnection(std::
string eid, std::
string protocol, std::
string address, std::
string service,
bool local = false) const throw ();
226 void removeConnection(std::
string eid, std::
string protocol, std::
string address, std::
string service,
bool local = false) const throw ();
241 std::vector<std::
string>
getVersion() const throw ();
252 void addEventData(const dtn::data::
Bundle &b, std::vector<std::
string> &data) const;
253 void addEventData(const dtn::data::
MetaBundle &b, std::vector<std::
string> &data) const;
254 void addEventData(const dtn::data::
BundleID &b, std::vector<std::
string> &data) const;
262 void init_core() throw (NativeDaemonException);
263 void shutdown_core() throw (NativeDaemonException);
268 void init_storage() throw (NativeDaemonException);
269 void shutdown_storage() const throw (NativeDaemonException);
274 void init_routing() throw (NativeDaemonException);
275 void shutdown_routing() const throw (NativeDaemonException);
281 void init_api() throw (NativeDaemonException);
282 void shutdown_api() throw (NativeDaemonException);
287 void init_network() throw (NativeDaemonException);
288 void shutdown_network() throw (NativeDaemonException);
293 void init_routing_extensions() throw (NativeDaemonException);
294 void shutdown_routing_extensions() const throw (NativeDaemonException);
297 ibrcommon::Conditional _runlevel_cond;
304 typedef std::list< dtn::daemon::
Component* > component_list;
306 component_map _components;
314 ibrcommon::File _config_file;
321 virtual void run(
void)
throw ();
322 virtual void __cancellation()
throw ();