blob: 93837842a05e09179f4966df73917a6bfcf50d55 (
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
|
// $Id$
// ============================================================================
//
// = LIBRARY
// PortableServer
//
// = FILENAME
// Strategized_Object_Proxy_Broker.h
//
// = DESCRIPTION
// This files contains the strategized proxy broker implementation.
//
// = AUTHOR
// Angelo Corsaro <corsaro@cs.wustl.edu>
//
// ============================================================================
#ifndef TAO_STRATEGIZED_OBJECT_PROXY_BROKER_H_
#define TAO_STRATEGIZED_OBJECT_PROXY_BROKER_H_
// -- PortableServer Include --
#include "portableserver_export.h"
// -- ACE Include --
#include "ace/pre.h"
// -- TAO Include --
#include "tao/corbafwd.h"
#include "tao/Object_Proxy_Broker.h"
#include "tao/ORB_Core.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class TAO_PortableServer_Export TAO_Strategized_Object_Proxy_Broker : public TAO_Object_Proxy_Broker
{
public:
// -- Ctor/Dtor --
TAO_Strategized_Object_Proxy_Broker (void);
~TAO_Strategized_Object_Proxy_Broker (void);
virtual TAO_Object_Proxy_Impl &select_proxy (CORBA::Object_ptr object,
CORBA::Environment &ACE_TRY_ENV);
private:
void create_proxy (int collocation_strategy,
CORBA::Environment &ACE_TRY_ENV);
private:
TAO_Object_Proxy_Impl
*proxy_cache_[TAO_Collocation_Strategies::CS_LAST];
TAO_SYNCH_MUTEX mutex_;
};
TAO_Strategized_Object_Proxy_Broker *the_tao_strategized_object_proxy_broker (void);
// This function is used to access the unique instance of strategized
// proxy broker. All the CORBA::Object share the proxy broker.
#include "ace/post.h"
#endif /* TAO_STRATEGIZED_OBJECT_PROXY_BROKER_H_ */
|