blob: a8ddde7fd7949a02793b1227931b6ebaf6e78c5c (
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
|
// $Id$
// -*- C++ -*-
// ============================================================================
//
// = LIBRARY
// TAO/examples/Load_Balancing
//
// = FILENAME
// Load_Balancing_Service.h
//
// = DESCRIPTION
// Driver for Load Balancing service.
//
// = AUTHORS
// Marina Spivak <marina@cs.wustl.edu>
//
// ============================================================================
#ifndef LOAD_BALANCING_SERVICE_H_
#define LOAD_BALANCING_SERVICE_H_
#include "tao/Utils/ORB_Manager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class Load_Balancing_Service
{
// =TITLE
// Server, which creates and initializes a
// <Load_Balancer::Object_Group_Factory>
// object, and runs the orb loop.
public:
Load_Balancing_Service (void);
// Default constructor.
~Load_Balancing_Service (void);
// Destructor.
int init (int argc, char *argv[]);
// Initialize the <Load_Balancing_Service>: initializes the ORB, parses
// arguments, creates a servant ...
int run (void);
// Run the server.
private:
int parse_args (int argc, char *argv[]);
// Parses the commandline arguments.
TAO_ORB_Manager orb_manager_;
// The ORB manager.
FILE *ior_output_file_;
// File to output the <Object_Group_Factory> IOR.
};
#endif /* LOAD_BALANCING_SERVICE_H_ */
|