Scopira  20080306
agent/loop.h
1 
2 /*
3  * Copyright (c) 2005 National Research Council
4  *
5  * All rights reserved.
6  *
7  * This material is confidential and proprietary information of
8  * National Research Council Canada ("Confidential Information").
9  * This Confidential Information may only be used and reproduced
10  * in accordance with the terms of the license agreement.
11  *
12  */
13 
14 #ifndef __INCLUDED_SCOPIRA_AGENT_LOOP_H__
15 #define __INCLUDED_SCOPIRA_AGENT_LOOP_H__
16 
17 #include <scopira/tool/export.h>
18 #include <scopira/tool/object.h>
19 #include <scopira/agent/agent.h>
20 
21 namespace scopira
22 {
28  namespace agent
29  {
30  class agent_loop;
31  }
32 }
33 
46 {
47  public:
53  SCOPIRA_EXPORT agent_loop(void);
59  SCOPIRA_EXPORT agent_loop(int &argc, char **&argv);
64  SCOPIRA_EXPORT ~agent_loop();
65 
71  bool failed(void) const { return dm_worker->failed(); }
72 
81  SCOPIRA_EXPORT void set_wait_for_quit(void);
82 
83  private:
84  class clusterboot;
88  volatile bool dm_daemon_mode;
91 };
92 
232 #endif
233 
Definition: agent/loop.h:45
Definition: archiveflow.h:20
bool failed(void) const
Definition: agent/loop.h:71
virtual bool failed(void) const =0