001    /*
002     * MonaLisaQueueInfo.java
003     *
004     * Created on May 18, 2004, 12:20 PM
005     *
006     * This file is part of the STAR Scheduler.
007     * Copyright (c) 2002-2006 STAR Collaboration - Brookhaven National Laboratory
008     *
009     * STAR Scheduler is free software; you can redistribute it and/or modify
010     * it under the terms of the GNU General Public License as published by
011     * the Free Software Foundation; either version 2 of the License, or
012     * (at your option) any later version.
013     *
014     * STAR Scheduler is distributed in the hope that it will be useful,
015     * but WITHOUT ANY WARRANTY; without even the implied warranty of
016     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
017     * GNU General Public License for more details.
018     *
019     * You should have received a copy of the GNU General Public License
020     * along with STAR Scheduler; if not, write to the Free Software
021     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
022     */
023    
024    package gov.bnl.star.offline.scheduler.monitor;
025    
026    /**
027     *
028     * @author  stratos
029     */
030    public class MonaLisaQueueInfo implements QueueInfo {
031        
032        private String queueName = null;
033        
034        private int runningJobs = 0;
035        
036        private int waitingJobs = 0;
037        
038        private int totalJobs = 0;
039        
040        private double estimatedResponseTime = 0.;
041        
042        private double worstResponseTime = 0.;
043        
044        private String status = null;
045        
046        private int freeCPUs = 0;
047        
048        private double averageRunTime =0.;
049        
050        /** Creates a new instance of MonaLisaQueueInfo */
051        public MonaLisaQueueInfo() {
052        }
053        
054        public double getEstimatedResponseTime() {
055            return estimatedResponseTime;
056        }
057        
058        public double getWorstResponseTime() {
059            return worstResponseTime;
060        }
061        
062        public int getWaitingJobs() {
063            return waitingJobs;
064        }
065        
066        public int getTotalJobs() {
067            return totalJobs;
068        }
069        
070        public String getStatus() {
071            return status;
072        }
073        
074        public int getRunningJobs() {
075            return runningJobs;
076        }
077        
078        public String getQueueName() {
079            return queueName;
080        }
081        
082        public int getFreeCPUs() {
083            return freeCPUs;
084        }
085        
086        public double getAverageRunTime() {
087            return averageRunTime;
088        }
089        
090        
091        void setEstimatedResponseTime(double estimatedResponseTime) {
092            this.estimatedResponseTime = estimatedResponseTime;
093        }
094        
095        void setWorstResponseTime(double worstResponseTime) {
096            this.worstResponseTime = worstResponseTime;
097        }
098        
099        void setRunningJobs(int runningJobs) {
100            this.runningJobs = runningJobs;
101        }
102        
103        void setWaitingJobs(int waitingJobs) {
104            this.waitingJobs = waitingJobs;
105        }
106        
107        void setTotalJobs(int totalJobs) {
108            this.totalJobs = totalJobs;
109        }
110        
111        void setStatus(String status) {
112            this.status = status;
113        }
114        
115        void setFreeCPUs(int freeCPUs) {
116            this.freeCPUs = freeCPUs;
117        }
118        
119        void setQueueName(String queueName) {
120            this.queueName = queueName;
121        }
122        
123        void setAverageRunTime(double averageRunTime){
124            this.averageRunTime = averageRunTime;
125        }
126        
127        
128        
129    }