001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.messaging;
016    
017    /**
018     * @author Michael C. Han
019     * @author Brian Wing Shun Chan
020     */
021    public class DestinationStatistics {
022    
023            public int getActiveThreadCount() {
024                    return _activeThreadCount;
025            }
026    
027            public int getCurrentThreadCount() {
028                    return _currentThreadCount;
029            }
030    
031            public int getLargestThreadCount() {
032                    return _largestThreadCount;
033            }
034    
035            public int getMaxThreadPoolSize() {
036                    return _maxThreadPoolSize;
037            }
038    
039            public int getMinThreadPoolSize() {
040                    return _minThreadPoolSize;
041            }
042    
043            public long getPendingMessageCount() {
044                    return _pendingMessageCount;
045            }
046    
047            public long getSentMessageCount() {
048                    return _sentMessageCount;
049            }
050    
051            public void setActiveThreadCount(int activeThreadCount) {
052                    _activeThreadCount = activeThreadCount;
053            }
054    
055            public void setCurrentThreadCount(int currentThreadCount) {
056                    _currentThreadCount = currentThreadCount;
057            }
058    
059            public void setLargestThreadCount(int largestThreadCount) {
060                    _largestThreadCount = largestThreadCount;
061            }
062    
063            public void setMaxThreadPoolSize(int maxThreadPoolSize) {
064                    _maxThreadPoolSize = maxThreadPoolSize;
065            }
066    
067            public void setMinThreadPoolSize(int minThreadPoolSize) {
068                    _minThreadPoolSize = minThreadPoolSize;
069            }
070    
071            public void setPendingMessageCount(long pendingMessageCount) {
072                    _pendingMessageCount = pendingMessageCount;
073            }
074    
075            public void setSentMessageCount(long sentMessageCount) {
076                    _sentMessageCount = sentMessageCount;
077            }
078    
079            private int _activeThreadCount;
080            private int _currentThreadCount;
081            private int _largestThreadCount;
082            private int _maxThreadPoolSize;
083            private int _minThreadPoolSize;
084            private long _pendingMessageCount;
085            private long _sentMessageCount;
086    
087    }