package data.importer.impl;

import com.arcturus.data.importer.IImportInterface;
import com.arcturus.data.importer.ImportUtils;

public class ImporterImpl implements IImportInterface{

	@Override
	public void startImport() {
		Runnable runnable = new Runnable() {
//			public void run() {
//				while (true) {
//					 // generating random duration
//					long duration = (long) (Math.random() * 1000);
//					//Adding http call
//					ImportUtils.addHttpInvocation("/request.from.outside" , duration);
//					// Adding btm record
//					ImportUtils.addBtmInvocation("/request.from.outside", duration , System.currentTimeMillis() , "localhost","server1");
//					ImportUtils.addBtmInvocation("/request.from.outside", duration , System.currentTimeMillis() , "localhost","server2");
//					ImportUtils.addBtmInvocation("/request.from.outside", duration , System.currentTimeMillis() , "localhost","server3");
//					// Adding uem call
//					ImportUtils.addUEMInvocation( "http://www.google.com", "server1", false,10, 11, "CHROME", "0.5", "OS2", 200, System.currentTimeMillis() - 2000, System.currentTimeMillis(), 20, 40, 80, "here is the ip");
//					System.out.println("a new record added");
//					try {
//						Thread.sleep(15 * 60 * 1000l);
//					} catch (InterruptedException e) {
//						// TODO Auto-generated catch block
//						e.printStackTrace();
//					}
//				}
//			}
//
//			
//		};
//		
//		new Thread(runnable).start();
		
	}

}
