blob: 26919ad8486bbfd57b17fedfe8a19e7f0da5531b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// $Id$
/**
* @file CIAO_ComponentServer.h
* @author William R. Otte
*
* Defines interface for the bootstrap element of the CIAO Component
* Server.
*/
#ifndef CIAO_COMPONENTSERVER_H_
#define CIAO_COMPONENTSERVER_H_
#include "ace/String_Base.h"
#include "ace/Task.h"
#include "tao/ORB.h"
#include "ciao/Logger/Logger_Service.h"
namespace CIAO
{
namespace Deployment
{
class ComponentServer_Configurator;
class ComponentServer_Task : ACE_Task_Base
{
public:
ComponentServer_Task (int argc, ACE_TCHAR **argv);
int svc (void);
struct Error
{
Error (const ACE_CString &err) : err_(err) {}
ACE_CString err_;
};
void run (void);
private:
void parse_args (int argc, ACE_TCHAR **argv);
void get_log_level (int argc, ACE_TCHAR **argv);
void set_log_level (void);
void configure_logging_backend (void);
void usage (void);
const char * sched_policy_name (int sched_policy);
void check_supported_priorities (void);
CORBA::ORB_var orb_;
auto_ptr<CIAO::Logger_Service> logger_;
ACE_CString uuid_;
ACE_TString callback_ior_str_;
ACE_TString output_file_;
auto_ptr<ComponentServer_Configurator> configurator_;
};
}
}
#endif
|