blob: e2262581bd714d5287c6a53e5360afe17df64290 (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
// -*- C++ -*-
//============================================================
/**
* @file RoundTrip_exec.h
*
* Header file for the Executor implementation.
*
* $Id$
*
* @author Diego Sevilla <dsevilla@um.es>
* @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
*/
//============================================================
#ifndef ROUNDTRIP_EXEC_H
#define ROUNDTRIP_EXEC_H
#include "RoundTripEIC.h"
#include "tao/LocalObject.h"
#include "ace/Thread_Manager.h"
#include "ace/Task.h"
namespace MyImpl
{
/**
* @class RoundTrip_exec_i
*
* RoundTrip executor implementation class.
*/
class ROUNDTRIP_EXEC_Export RoundTrip_exec_i :
public virtual Benchmark::RoundTrip_Exec,
public virtual TAO_Local_RefCounted_Object
{
public:
/// Default constructor.
RoundTrip_exec_i ();
/// Operation to test the data
virtual CORBA::Long makeCall (CORBA::Long data)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual ::Benchmark::CCM_LatencyTest*
get_latency ()
ACE_THROW_SPEC ((CORBA::SystemException));
// Operations from Components::SessionComponent
virtual void set_session_context (Components::SessionContext_ptr ctx)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
virtual void ciao_preactivate ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
virtual void ccm_activate ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
virtual void ciao_postactivate ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
virtual void ccm_passivate ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
virtual void ccm_remove ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
/// Helper function to be called back by timeout_Handler
void pulse (void);
protected:
/// Destructor.
~RoundTrip_exec_i ();
protected:
/// Copmponent specific context
Benchmark::CCM_RoundTrip_Context_var context_;
};
/**
* @class RoundTripHome_exec_i
*
* RoundTrip home executor implementation class.
*/
class ROUNDTRIP_EXEC_Export RoundTripHome_exec_i :
public virtual Benchmark::CCM_RoundTripHome,
public virtual TAO_Local_RefCounted_Object
{
public:
/// Default ctor.
RoundTripHome_exec_i ();
// Implicit home operations.
virtual ::Components::EnterpriseComponent_ptr
create ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException));
protected:
/// Destructor.
~RoundTripHome_exec_i ();
};
}
extern "C" ROUNDTRIP_EXEC_Export ::Components::HomeExecutorBase_ptr
createRoundTripHome_Impl (void);
#endif /* ROUNDTRIP_EXEC_H */
|