summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h
blob: baba42815d31ba2b93770903d5e6dc85dd1bc8db (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* -*- C++ -*- */

// ============================================================================
/**
 *  @file   RTEvent_Logging_Service.h
 *
 *  $Id$
 *
 *  Front End of the Telecom Log Service
 *  RTEvent_Logging_Service
 *
 *
 *  @author D A Hanvey (d.hanvey@qub.ac.uk)
 */
// ============================================================================

#ifndef RTEVENT_LOGGING_SERVICE_H
#define RTEVENT_LOGGING_SERVICE_H

#include "ace/SString.h"

#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/RtecSchedulerS.h"

#include "orbsvcs/RTEventLogAdminS.h"

#include "orbsvcs/Log/RTEventLogFactory_i.h"

#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Naming/Naming_Client.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class RTEvent_Logging_Service
{
public:
  RTEvent_Logging_Service (void);
  virtual ~RTEvent_Logging_Service (void);

  int run (int argc, ACE_TCHAR* argv[]);
  // Run the event service.

private:
  int parse_args (int argc, ACE_TCHAR* argv[]);
  // parse the command line args

private:
  POA_RtecScheduler::Scheduler *sched_impl_;
  // The Scheduler implementation.

  ACE_CString service_name_;
  // The name we use to bind with the NameService

  ACE_CString ior_file_name_;
  // The name of the file were we output the Event_Service IOR.

  ACE_CString pid_file_name_;
  // The name of a file where the process stores its pid

  int global_scheduler_;
  // Should we use a global scheduler or a local one?

  const char* rtevent_log_factory_name_;
  // The name of the factory registered with the naming service.

  const char* child_poa_name_;
  // The name of the Child POA.

  TAO_RTEventLogFactory_i *factory_servant_;
  // The factory servant.

  CORBA::ORB_var orb_;
  // The ORB that we use.

  PortableServer::POA_var root_poa_;
  // Reference to the root poa.

  RTEventLogAdmin::EventLogFactory_var factory_;
  // The corba object after activation.

  TAO_Naming_Client naming_client_;
};

#endif /* RTEVENT_LOGGING_SERVICE_H */