public static ConsolidatorData readData(String host, int port) {
//System.out.println("ConsolidatorData:Reading data start");
ConsolidatorData[] data = null;
ConsolidatorData sumData = new ConsolidatorData();
try {
DataConsumer consumer = new DataConsumer(host,port);
Object [] obj = consumer.getMessages();
data = new ConsolidatorData[obj.length];
for (int i=0;i<data.length;i++) {
data[i] = (ConsolidatorData) obj[i];
sumData.add(data[i]);
}