Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
------------ServerInfo.java--------------
package com.gooper.drool_test;
public class ServerInfo {
String name;
int processors;
int memory;
int diskSpace;
int cpuUsage;
public ServerInfo(String name, int processors, int memory, int diskSpace, int cpuUsage) {
super();
this.name = name;
this.processors = processors;
this.memory = memory;
this.diskSpace = diskSpace;
this.cpuUsage = cpuUsage;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getProcessors() {
return processors;
}
public void setProcessors(int processors) {
this.processors = processors;
}
public int getMemory() {
return memory;
}
public void setMemory(int memory) {
this.memory = memory;
}
public int getDiskSpace() {
return diskSpace;
}
public void setDiskSpace(int diskSpace) {
this.diskSpace = diskSpace;
}
public int getCpuUsage() {
return cpuUsage;
}
public void setCpuUsage(int cpuUsage) {
this.cpuUsage = cpuUsage;
}
@Override
public String toString() {
return "Server [name=" + name + ", processors=" + processors + ", memory=" + memory + ", diskSpace=" + diskSpace
+ ", cpuUsage=" + cpuUsage + ", getName()=" + getName() + ", getProcessors()=" + getProcessors()
+ ", getMemory()=" + getMemory() + ", getDiskSpace()=" + getDiskSpace() + ", getCpuUsage()="
+ getCpuUsage() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()="
+ super.toString() + "]";
}
}