From: <bsc...@us...> - 2009-02-13 16:10:58
|
Revision: 4188 http://unicore.svn.sourceforge.net/unicore/?rev=4188&view=rev Author: bschuller Date: 2009-02-13 16:10:53 +0000 (Fri, 13 Feb 2009) Log Message: ----------- fixes Modified Paths: -------------- xnjs/trunk/xnjs-module-core/src/main/java/de/fzj/unicore/xnjs/simple/LocalTS.java xnjs/trunk/xnjs-module-core/src/test/java/de/fzj/unicore/xnjs/persistence/LoadTestWithPersistActionStore.java Modified: xnjs/trunk/xnjs-module-core/src/main/java/de/fzj/unicore/xnjs/simple/LocalTS.java =================================================================== --- xnjs/trunk/xnjs-module-core/src/main/java/de/fzj/unicore/xnjs/simple/LocalTS.java 2009-02-13 14:28:28 UTC (rev 4187) +++ xnjs/trunk/xnjs-module-core/src/main/java/de/fzj/unicore/xnjs/simple/LocalTS.java 2009-02-13 16:10:53 UTC (rev 4188) @@ -49,8 +49,6 @@ import org.apache.log4j.Logger; -import com.sun.org.apache.bcel.internal.generic.GETSTATIC; - import de.fzj.unicore.xnjs.Configuration; import de.fzj.unicore.xnjs.XnjsComponentImpl; import de.fzj.unicore.xnjs.aaa.Client; @@ -138,7 +136,7 @@ * @see de.fzj.unicore.xnjs.ems.TSI#chmod(java.lang.String, java.lang.String) */ public void chmod(String file, Permissions perm) throws ExecutionException { - throw new ExecutionException("Operation not supported."); + //not supported --- maybe when we use Java 6 } /* (non-Javadoc) * @see de.fzj.unicore.xnjs.ems.TSI#commit() @@ -295,7 +293,7 @@ File dir=new File(getWorkingDir()); if(!dir.isDirectory())throw new IOException("Not a directory."); File fs[]=dir.listFiles(); - if(offset>=fs.length)throw new IllegalArgumentException("Specified offset <"+offset+"> is larger than the total number of results <"+fs.length+">"); + if(offset>fs.length)throw new IllegalArgumentException("Specified offset <"+offset+"> is larger than the total number of results <"+fs.length+">"); int numResults=Math.min(fs.length, limit); XnjsFile[] res=new XnjsFileImpl[numResults]; for(int i=0;i<numResults;i++){ Modified: xnjs/trunk/xnjs-module-core/src/test/java/de/fzj/unicore/xnjs/persistence/LoadTestWithPersistActionStore.java =================================================================== --- xnjs/trunk/xnjs-module-core/src/test/java/de/fzj/unicore/xnjs/persistence/LoadTestWithPersistActionStore.java 2009-02-13 14:28:28 UTC (rev 4187) +++ xnjs/trunk/xnjs-module-core/src/test/java/de/fzj/unicore/xnjs/persistence/LoadTestWithPersistActionStore.java 2009-02-13 16:10:53 UTC (rev 4188) @@ -78,13 +78,13 @@ p1.setValue("true"); Property p2=p.addNewProperty(); p2.setName(BasicManager.XNJSWORKERS); - p2.setValue("1"); + p2.setValue("4"); } //test N actions with timing public void testN()throws Exception{ ((JDBCActionStore)xnjs.getConfig().getActionStore("JOBS")).doCleanup(); - int n=200; //how many jobs + int n=10; //how many jobs long start,end; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |