summaryrefslogtreecommitdiff
path: root/TAO/tao/Dynamic_TP/Dynamic_TP_POA_StrategyImpl.cpp
blob: 75dfcebd17907e205854b79f95e8a62a310b54d1 (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
// $Id$

//#include "tao/CSD_Threadpool/CSD_TP_Strategy.h"
#include "tao/Dynamic_TP/Dynamic_TP_POA_StrategyImpl.h"
//#include "tao/CSD_ThreadPool/CSD_TP_Remote_Request.h"
//#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h"
//#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h"
//
//#include "tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h"
//#include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h"
//#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h"
#include "ace/Trace.h"
#include "tao/ORB_Core.h"

#if !defined (__ACE_INLINE__)
#include "tao/Dynamic_TP/Dynamic_TP_POA_StrategyImpl.inl"
#endif /* ! __ACE_INLINE__ */

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

TAO_Dynamic_TP_POA_StrategyImpl::~TAO_Dynamic_TP_POA_StrategyImpl()
{
}

int
TAO_Dynamic_TP_POA_StrategyImpl::get_initial_pool_threads()
{
  return this->initial_pool_threads_;
}

int
TAO_Dynamic_TP_POA_StrategyImpl::get_max_pool_threads()
{
  return this->max_pool_threads_;
}

size_t
TAO_Dynamic_TP_POA_StrategyImpl::get_max_request_queue_depth()
{
  return this->max_request_queue_depth_;
}

int
TAO_Dynamic_TP_POA_StrategyImpl::get_min_pool_threads()
{
  return this->min_pool_threads_;
}

TAO::CSD::TP_Servant_State::HandleType
TAO_Dynamic_TP_POA_StrategyImpl::get_servant_state(PortableServer::Servant servant)
{
  TAO::CSD::TP_Servant_State::HandleType servant_state;

  if (this->serialize_servants_)
    {
      servant_state = this->servant_state_map_.find(servant);
    }

  return servant_state;
}

TAO_Dynamic_TP_Task &
  TAO_Dynamic_TP_POA_StrategyImpl::get_Task()
{
  return this->task_;
}

ACE_Time_Value
TAO_Dynamic_TP_POA_StrategyImpl::get_thread_idle_time()
{
  return this->thread_idle_time_;
}

size_t
TAO_Dynamic_TP_POA_StrategyImpl::get_thread_stack_size()
{
  return this->thread_stack_size_;
}

TAO_END_VERSIONED_NAMESPACE_DECL