001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }