From 855a461648da748a7b41f3e3a180bbd0bb98530f Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 11 Jun 2003 13:47:45 +0000 Subject: [PATCH] Changed signature of parse method. Increased default timeout to 10 minutes. --- src/helma/util/CronJob.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helma/util/CronJob.java b/src/helma/util/CronJob.java index b232d852..87b83f98 100644 --- a/src/helma/util/CronJob.java +++ b/src/helma/util/CronJob.java @@ -87,7 +87,7 @@ public class CronJob { private String name = null; private String function = null; - private long timeout = 20000; + private long timeout = 600000; /** A method for parsing properties. It looks through the properties * file for entries that look like this: @@ -182,7 +182,7 @@ public class CronJob { } - public static Vector parse(Properties props) { + public static List parse(Properties props) { Hashtable jobs = new Hashtable (); Enumeration e = props.keys (); while (e.hasMoreElements ()) { @@ -222,8 +222,8 @@ public class CronJob { } catch (NoSuchElementException nsee) { } } - Vector jobVec = new Vector (jobs.values ()); - return (Vector) sort (jobVec); + List jobVec = new ArrayList (jobs.values ()); + return sort (jobVec); } public static List sort (List list) {