package ncku.hpds.hadoop.fedhdfs;

public class CloudInfo {
	
	private long hdfsRemain;
	private long dataSize;

	public void setHdfs(long hdfs) {
		this.hdfsRemain = hdfs;
	}

	public void setData(long data) {
		this.dataSize = data;
	}

	protected long getHdfs() {
		return hdfsRemain;
	}

	protected long getData() {
		return dataSize;
	}

	public String toString() {
		return hdfsRemain + " " + dataSize;
	}
}

@@ -28,16 +28,49 @@
 dhdfs;%0A%0A
+import java.text.DecimalFormat;%0A%0A
 public c
@@ -137,16 +137,69 @@
 ataSize;
+%0A%09private double mValue;%0A%09private double Alpha = 0.7;
 %0A%0A%09publi
@@ -312,24 +312,107 @@
 e = data;%0A%09%7D
+%0A%09%0A%09public void setValue() %7B%0A%09%09mValue = (Alpha*dataSize + (1-Alpha)*hdfsRemain);%0A%09%7D
 %0A%0A%09protected
@@ -499,24 +499,77 @@
 dataSize;%0A%09%7D
+%0A%09%0A%09protected double getValue() %7B%0A%09%09return mValue;%0A%09%7D
 %0A%0A%09public St
@@ -618,19 +618,68 @@
 %22 + dataSize
+ + %22 %22 + new DecimalFormat(%22#.##%22).format(mValue)
 ;%0A%09%7D%0A%7D%0A

add formula to select top cloud