ソースを参照

fix #1179 change commandTimeout to 30s

Shinsuke Sugaya 8 年 前
コミット
3c1d58dd90

+ 15 - 3
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

@@ -40,11 +40,11 @@ public class CommandGenerator extends BaseThumbnailGenerator {
     @Resource
     protected ServletContext application;
 
-    public List<String> commandList;
+    protected List<String> commandList;
 
-    public long commandTimeout = 10 * 1000L;// 10sec
+    protected long commandTimeout = 30 * 1000L;// 30sec
 
-    public File baseDir;
+    protected File baseDir;
 
     private volatile Timer destoryTimer;
 
@@ -192,4 +192,16 @@ public class CommandGenerator extends BaseThumbnailGenerator {
         }
     }
 
+    public void setCommandList(List<String> commandList) {
+        this.commandList = commandList;
+    }
+
+    public void setCommandTimeout(long commandTimeout) {
+        this.commandTimeout = commandTimeout;
+    }
+
+    public void setBaseDir(File baseDir) {
+        this.baseDir = baseDir;
+    }
+
 }