import org.libvirt.Connect;
import org.libvirt.Domain;
import org.libvirt.LibvirtException;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Connect conn = null;
		int flags = 0;

		try {
			// conn = new Connect("qemu+ssh:///root@pun-blgrlnx02/system",
			// false);
			
			conn = new Connect("qemu:///system", false);
			for(int i= 0;i<10;i++)
			{
				
				Runnable test = new TestMultiThreadingLibvirt(conn);
				Thread thread = new Thread(test);
				thread.start();
				Runnable test2 = new TestMultiThreadingLibvirtWithError(conn);
				Thread thread2 = new Thread(test2);
				thread2.start();
				System.out.println("start class "+i);
				
			}
			
						
		} catch (LibvirtException e) {
			System.out.println("exception caught:" + e);
			System.out.println(e.getError());

			return;
		}

	}

}
