@Override
	public void storeRepositoryData(String repoName, int noRecords,
			float avgFSize, float storageReq, float informativeness,
			String schema) {
		// TODO Auto-generated method stub

		ConfigureLogger conf = new ConfigureLogger();

		String sFileName = repoName + "_GeneralInfo" + ".csv";

		Properties props = new Properties();
		try {
			props.load(new FileInputStream("configure.properties"));
		} catch (FileNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			System.exit(-1);
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			System.exit(-1);
		}
		;
		File anls = new File(props.getProperty(AnalyticsConstants.resultsPath)
				+ "Analysis_Results");

		if (!anls.exists())
			anls.mkdir();

		File dir = new File(anls, repoName);
		if (!dir.exists())
			dir.mkdir();

		File file = new File(dir, sFileName);

		Logger logger = conf.getLogger("generalInfo", anls + File.separator
				+ "repoGeneralInfo.log");

		StringBuffer logString = new StringBuffer();

		this.setGeneralDataFilePath(file.getAbsolutePath());
		FileWriter writer;
		BufferedWriter bw = null;
		try {
			writer = new FileWriter(file);
			bw = new BufferedWriter(writer);
			// create header
			bw.append("Repository Name");
			bw.append(",");
			bw.append("Number of records");
			bw.append(",");
			bw.append("Average file size(bytes)");
			bw.append(",");
			bw.append("Approximate Storage requirements(bytes)");
			bw.append(",");
			bw.append("Repository Informativeness(bits)");
			bw.append(",");
			bw.append("Metadata schema namespace");
			bw.newLine();

			// insert data
			bw.append(repoName);
			logString.append(repoName);
			bw.append(",");
			bw.append(String.valueOf(noRecords));
			logString.append(" " + String.valueOf(noRecords));
			bw.append(",");
			bw.append(String.valueOf(avgFSize));
			logString.append(" " + String.valueOf(avgFSize));
			bw.append(",");
			bw.append(String.valueOf(storageReq));
			logString.append(" " + String.valueOf(storageReq));

			bw.append(",");
			bw.append(String.valueOf(informativeness));
			logString.append(" " + String.valueOf(informativeness));
			bw.append(",");
			bw.append(schema);
			logString.append(" " + schema);
			bw.close();

			logger.info(logString.toString());

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			try {
				if (bw != null)
					bw.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}

	}