blob: 9eac271416a832b9081614d3bd86e02e42af13ff (
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
|
// $Id$
#include "JAWS/Policy.h"
#include "JAWS/Concurrency.h"
#include "JAWS/IO_Handler.h"
#include "JAWS/IO_Acceptor.h"
ACE_RCSID(JAWS, Policy, "$Id$")
JAWS_Dispatch_Policy::JAWS_Dispatch_Policy (void)
{
}
JAWS_Dispatch_Policy::~JAWS_Dispatch_Policy (void)
{
}
JAWS_Default_Dispatch_Policy::JAWS_Default_Dispatch_Policy (void)
: ratio_ (1),
concurrency_ (JAWS_Thread_Pool_Singleton::instance ()),
ioh_factory_ (JAWS_Synch_IO_Handler_Factory_Singleton::instance ()),
acceptor_ (JAWS_IO_Synch_Acceptor_Singleton::instance ()),
io_ (JAWS_Synch_IO_Singleton::instance ())
{
}
JAWS_Default_Dispatch_Policy::~JAWS_Default_Dispatch_Policy (void)
{
}
int
JAWS_Default_Dispatch_Policy::ratio (void)
{
return this->ratio_;
}
JAWS_IO *
JAWS_Default_Dispatch_Policy::io (void)
{
return this->io_;
}
JAWS_IO_Handler_Factory *
JAWS_Default_Dispatch_Policy::ioh_factory (void)
{
return this->ioh_factory_;
}
JAWS_IO_Acceptor *
JAWS_Default_Dispatch_Policy::acceptor (void)
{
return this->acceptor_;
}
JAWS_Concurrency_Base *
JAWS_Default_Dispatch_Policy::concurrency (void)
{
return this->concurrency_;
}
void
JAWS_Default_Dispatch_Policy::ratio (int r)
{
this->ratio_ = r;
}
void
JAWS_Default_Dispatch_Policy::io (JAWS_IO *io)
{
this->io_ = io;
}
void
JAWS_Default_Dispatch_Policy::ioh_factory (JAWS_IO_Handler_Factory *iohf)
{
this->ioh_factory_ = iohf;
}
void
JAWS_Default_Dispatch_Policy::acceptor (JAWS_IO_Acceptor *acceptor)
{
this->acceptor_ = acceptor;
}
void
JAWS_Default_Dispatch_Policy::concurrency (JAWS_Concurrency_Base *concp)
{
this->concurrency_ = concp;
}
|