public static void main(String[] args) throws IOException, WrongArgumentException, JDOMException, InterruptedException {
		// TODO Auto-generated method stub
		int [] srcStart = {0,0,0};
		int [] vsize = {900,247, 20};
		int [] shape = {90,50,20};
		int [] srcShape = {9,1,1};// �д洢
		int [] dstShape = {9,5,4};
		int [] dstShape2 = {9,1,1};
		Vector<int []>strategy = new Vector<int []>();
		strategy.add(dstShape2);
		strategy.add(dstShape);
		
		strategy.add(srcShape);
		String name = "testArray";
		OptimusConfiguration conf = new OptimusConfiguration("./conf");
		ZoneClient zcreater = new ZoneClient(conf);
		OptimusZone zone = zcreater.openZone("test");
		if(zone == null)
		{
			zone = zcreater.createZone("test", vsize, shape, strategy);
		}
		if(zone == null)
		{
			System.out.println("Unknown error");
			return;
		}
		long btime = System.currentTimeMillis();
		ArrayCreater creater = new ArrayCreater(conf,zone,srcShape,"test3",1,0);
		creater.create();
		
		DataChunk chunk = new DataChunk(vsize,shape);
		double [] srcData = new double[900*247*20];
		for(int i = 0  ; i < srcData.length; i++)
		{
			srcData[i] = i;
		}
		
		OptimusScanner scanner = new OptimusMemScanner(srcData,srcStart,vsize);
		do{
		//	float [] dstData = new float [8*8*8];
		//	readFromMem(chunk.getStart(), chunk.getChunkStep(),vsize,shape, 
		//			srcData,srcStart, dstData, chunk.getStart());
			//creater.create();
			System.out.println(chunk);
			creater.createPartition(scanner,chunk,"testArray");
		}while(chunk.nextChunk());
		creater.close(1000, TimeUnit.SECONDS);
		long etime = System.currentTimeMillis();
		System.out.println("Total time used:"+(etime-btime));
	}