1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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  }