1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.messaging;
16  
17  /**
18   * <a href="DestinationStatistics.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Michael C. Han
21   * @author Brian Wing Shun Chan
22   */
23  public class DestinationStatistics {
24  
25      public int getActiveThreadCount() {
26          return _activeThreadCount;
27      }
28  
29      public int getCurrentThreadCount() {
30          return _currentThreadCount;
31      }
32  
33      public int getLargestThreadCount() {
34          return _largestThreadCount;
35      }
36  
37      public int getMaxThreadPoolSize() {
38          return _maxThreadPoolSize;
39      }
40  
41      public int getMinThreadPoolSize() {
42          return _minThreadPoolSize;
43      }
44  
45      public long getPendingMessageCount() {
46          return _pendingMessageCount;
47      }
48  
49      public long getSentMessageCount() {
50          return _sentMessageCount;
51      }
52  
53      public void setActiveThreadCount(int activeThreadCount) {
54          _activeThreadCount = activeThreadCount;
55      }
56  
57      public void setCurrentThreadCount(int currentThreadCount) {
58          _currentThreadCount = currentThreadCount;
59      }
60  
61      public void setLargestThreadCount(int largestThreadCount) {
62          _largestThreadCount = largestThreadCount;
63      }
64  
65      public void setMaxThreadPoolSize(int maxThreadPoolSize) {
66          _maxThreadPoolSize = maxThreadPoolSize;
67      }
68  
69      public void setMinThreadPoolSize(int minThreadPoolSize) {
70          _minThreadPoolSize = minThreadPoolSize;
71      }
72  
73      public void setPendingMessageCount(long pendingMessageCount) {
74          _pendingMessageCount = pendingMessageCount;
75      }
76  
77      public void setSentMessageCount(long sentMessageCount) {
78          _sentMessageCount = sentMessageCount;
79      }
80  
81      private int _activeThreadCount;
82      private int _currentThreadCount;
83      private int _largestThreadCount;
84      private int _maxThreadPoolSize;
85      private int _minThreadPoolSize;
86      private long _pendingMessageCount;
87      private long _sentMessageCount;
88  
89  }