1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.management.stats; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
public class SedaServiceStatistics extends ServiceStatistics |
17 | |
{ |
18 | 0 | private int componentPoolMaxSize = 0; |
19 | 0 | private int componentPoolAbsoluteMaxSize = 0; |
20 | 0 | private int componentPoolSize = 0; |
21 | |
|
22 | |
public SedaServiceStatistics(String name, int threadPoolSize, int componentPoolsize) |
23 | |
{ |
24 | 0 | super(name, threadPoolSize); |
25 | 0 | this.componentPoolMaxSize = componentPoolsize; |
26 | 0 | this.componentPoolAbsoluteMaxSize = componentPoolMaxSize; |
27 | 0 | } |
28 | |
|
29 | |
public synchronized void clear() |
30 | |
{ |
31 | 0 | componentPoolSize = 0; |
32 | 0 | componentPoolAbsoluteMaxSize = 0; |
33 | 0 | super.clear(); |
34 | 0 | } |
35 | |
|
36 | |
public int getComponentPoolMaxSize() |
37 | |
{ |
38 | 0 | return componentPoolMaxSize; |
39 | |
} |
40 | |
|
41 | |
public int getComponentPoolAbsoluteMaxSize() |
42 | |
{ |
43 | 0 | return componentPoolAbsoluteMaxSize; |
44 | |
} |
45 | |
|
46 | |
public int getComponentPoolSize() |
47 | |
{ |
48 | 0 | return componentPoolSize; |
49 | |
} |
50 | |
|
51 | |
public synchronized void setComponentPoolSize(int componentPoolSize) |
52 | |
{ |
53 | 0 | this.componentPoolSize = componentPoolSize; |
54 | 0 | if (componentPoolSize > componentPoolAbsoluteMaxSize) |
55 | |
{ |
56 | 0 | componentPoolAbsoluteMaxSize = componentPoolSize; |
57 | |
} |
58 | 0 | } |
59 | |
} |