blob: 2826c555aba8c2d8fe929e48518d50514f2ea868 (
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
|
//=============================================================================
/**
* @file ImplRepo_i.h
*
* $Id$
*
* @author Darrell Brunsch and Irfan Pyarali
*/
// ===================================================================
#ifndef TAO_IMPLREPO_I_H
#define TAO_IMPLREPO_I_H
#include "ace/pre.h"
#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PortableServer/ImplRepoS.h"
#include "tao/ORB.h"
/**
* @class ServerObject_i
*
* @brief Class for pinging a server. Implementation Repository uses
* this to communicate with the IMR registered servers.
*
* \nosubgrouping
*
**/
class TAO_PortableServer_Export ServerObject_i
: public POA_ImplementationRepository::ServerObject,
public PortableServer::RefCountServantBase
{
public:
/// Constructor.
ServerObject_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa);
/// Ping method.
void ping (CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Shutdown the server.
void shutdown (CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Returns the default POA for this servant.
PortableServer::POA_ptr _default_POA (CORBA::Environment &);
protected:
/// Our ORB. We need this member in case we need to shutdown the
/// server.
CORBA::ORB_var orb_;
/// POA that we are registered with.
PortableServer::POA_var poa_;
};
#include "ace/post.h"
#endif /* TAO_IMPLREPO_I_H */
|