001 /* 002 * MDSHostInfo.java 003 * 004 * Created on May 12, 2003, 2:34 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 Gabriele Carcassi 029 */ 030 public class MDSHostInfo implements HostInfo { 031 032 private String hostName=null; 033 private double load1Min=0.; 034 private double load5Min=0.; 035 private double load15Min=0.; 036 private double loadSMP1Min=0.; 037 private double loadSMP5Min=0.; 038 private double loadSMP15Min=0.; 039 private double memoryAvailable=0.; 040 private double memorySize=0.; 041 private double processorSpeed=0.; 042 private int processorCount=0; 043 private String IPAddress=null; 044 private String adapterName=null; 045 private String uniqueID=null; 046 047 048 /** Creates a new instance of MDSHostInfo */ 049 public MDSHostInfo() { 050 } 051 052 public void setHostName(String hostName) { 053 this.hostName=hostName; 054 } 055 056 public String getHostName() { 057 return hostName; 058 } 059 060 public void setLoad1Min(double load1Min) { 061 this.load1Min=load1Min; 062 } 063 064 public double getLoad1m() { 065 return load1Min; 066 } 067 068 public void setLoad5Min(double load5Min) { 069 this.load5Min=load5Min; 070 } 071 072 public double getLoad5m() { 073 return load5Min; 074 } 075 076 public void setLoad15Min(double load15Min) { 077 this.load15Min=load15Min; 078 } 079 080 public double getLoad15m() { 081 return load15Min; 082 } 083 084 public void setLoadSMP1Min(double loadSMP1Min) { 085 this.loadSMP1Min = loadSMP1Min; 086 } 087 088 public double getLoadSMP1Min() { 089 return loadSMP1Min; 090 } 091 092 public void setLoadSMP5Min(double loadSMP5Min) { 093 this.loadSMP5Min = loadSMP5Min; 094 } 095 096 public double getLoadSMP5Min() { 097 return loadSMP5Min; 098 } 099 100 public void setLoadSMP15Min(double loadSMP15Min) { 101 this.loadSMP15Min = loadSMP15Min; 102 } 103 104 public double getLoadSMP15Min() { 105 return loadSMP15Min; 106 } 107 108 public void setMemoryAvailable(double memoryAvailable) { 109 this.memoryAvailable=memoryAvailable; 110 } 111 112 public double getMemoryAvailable() { 113 return memoryAvailable; 114 } 115 116 public void setMemorySize(double memorySize) { 117 this.memorySize=memorySize; 118 } 119 120 public double getMemorySize() { 121 return memorySize; 122 } 123 124 public void setProcessorSpeed(double processorSpeed) { 125 this.processorSpeed=processorSpeed; 126 } 127 128 public double getProcessorSpeed() { 129 return processorSpeed; 130 } 131 132 public void setProcessorCount(int processorCount) { 133 this.processorCount=processorCount; 134 } 135 136 public int getProcessorCount() { 137 return processorCount; 138 } 139 140 public void setIPAddress(String IPAddress) { 141 this.IPAddress = IPAddress; 142 } 143 144 public String getIPAddress(){ 145 return IPAddress; 146 } 147 148 public void setAdapterName(String adapterName) { 149 this.adapterName = adapterName; 150 } 151 152 public String getAdapterName() { 153 return adapterName; 154 } 155 156 public void setUniqueID(String uniqueID) { 157 this.uniqueID=uniqueID; 158 } 159 160 public String getUniqueID() { 161 return uniqueID; 162 } 163 164 165 } 166