📄 ldapjobhost.java
字号:
/* * LdapJobHost.java * * Created on April 16, 2005, 12:54 PM */package jwsgrid.resourcemanager.priv;import java.util.List;import java.util.Vector;/** * * @author sean */public class LdapJobHost { public String wsaddr = null; public String clusterId = null; public String osName = null; public String osVersion = null; public String osArch = null; public String cpuVendor = null; public String cpuModel = null; public Integer cpuSpeed = null; public Integer cpuCount = null; public Integer cpuUserTime = null; public Integer cpuIdleTime = null; public Integer cpuSysTime = null; public Integer cpuLoad = null; public Integer memTotal = null; public Integer memFree = null; public Integer diskSpaceTot = null; public Integer diskSpaceFree = null; public Vector<String> jobTypeList = new Vector(); public LdapJobHost() { } public LdapJobHost( String clusterId, String osName, String osVersion, String osArch, String cpuVendor, String cpuModel, Integer cpuCount, Integer cpuSpeed, Integer cpuUserTime, Integer cpuIdleTime, Integer cpuSysTime, Integer cpuLoad, Integer memTotal, Integer memFree, Integer diskSpaceTot, Integer diskSpaceFree, List<String> jobTypeList ) { this.clusterId = clusterId; this.osName = osName; this.osArch = osArch; this.osVersion = osVersion; this.cpuVendor = cpuVendor; this.cpuModel = cpuModel; this.cpuSpeed = cpuSpeed; this.cpuCount = cpuCount; this.cpuUserTime = cpuUserTime; this.cpuIdleTime = cpuIdleTime; this.cpuSysTime = cpuSysTime; this.cpuLoad = cpuLoad; this.memTotal = memTotal; this.memFree = memFree; this.diskSpaceTot = diskSpaceTot; this.diskSpaceFree = diskSpaceFree; for ( int i = 0; i < jobTypeList.size(); i++ ) { this.jobTypeList.addElement( jobTypeList.get( i ) ); } } public LdapJobHost( String wsaddr, String clusterId, String osName, String osVersion, String osArch, String cpuVendor, String cpuModel, Integer cpuCount, Integer cpuSpeed, Integer cpuUserTime, Integer cpuIdleTime, Integer cpuSysTime, Integer cpuLoad, Integer memTotal, Integer memFree, Integer diskSpaceTot, Integer diskSpaceFree, List<String> jobTypeList ) { this.wsaddr = wsaddr; this.clusterId = clusterId; this.osName = osName; this.osArch = osArch; this.osVersion = osVersion; this.cpuVendor = cpuVendor; this.cpuModel = cpuModel; this.cpuSpeed = cpuSpeed; this.cpuCount = cpuCount; this.cpuUserTime = cpuUserTime; this.cpuIdleTime = cpuIdleTime; this.cpuSysTime = cpuSysTime; this.cpuLoad = cpuLoad; this.memTotal = memTotal; this.memFree = memFree; this.diskSpaceTot = diskSpaceTot; this.diskSpaceFree = diskSpaceFree; for ( int i = 0; i < jobTypeList.size(); i++ ) { this.jobTypeList.addElement( jobTypeList.get( i ) ); } } public String toString() { String string = ""; string += "ws address : " + wsaddr + "\n"; string += "cluster id : " + clusterId + "\n"; string += "os name : " + osName + "\n"; string += "os version : " + osVersion + "\n"; string += "os arch : " + osArch + "\n"; string += "cpu vendor : " + cpuVendor + "\n"; string += "cpu model : " + cpuModel + "\n"; string += "cpu speed : " + cpuSpeed.toString() + "\n"; string += "cpu count : " + cpuCount.toString() + "\n"; string += "cpu usertime : " + cpuUserTime.toString() + "\n"; string += "cpu idletime : " + cpuIdleTime.toString() + "\n"; string += "cpu systime : " + cpuSysTime.toString() + "\n"; string += "cpu load : " + cpuLoad.toString() + "\n"; string += "mem total : " + memTotal.toString() + "\n"; string += "mem free : " + memFree.toString() + "\n"; string += "disk space total : " + diskSpaceTot.toString() + "\n"; string += "disk space free : " + diskSpaceFree.toString() + "\n"; for ( int i = 0; i < jobTypeList.size(); i++ ) { string += "job type : " + jobTypeList.get( i ) + "\n"; } return string; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -