Changed signature of parse method.
Increased default timeout to 10 minutes.
This commit is contained in:
parent
96f551142c
commit
855a461648
1 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ public class CronJob {
|
||||||
|
|
||||||
private String name = null;
|
private String name = null;
|
||||||
private String function = null;
|
private String function = null;
|
||||||
private long timeout = 20000;
|
private long timeout = 600000;
|
||||||
|
|
||||||
/** A method for parsing properties. It looks through the properties
|
/** A method for parsing properties. It looks through the properties
|
||||||
* file for entries that look like this:
|
* 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 ();
|
Hashtable jobs = new Hashtable ();
|
||||||
Enumeration e = props.keys ();
|
Enumeration e = props.keys ();
|
||||||
while (e.hasMoreElements ()) {
|
while (e.hasMoreElements ()) {
|
||||||
|
@ -222,8 +222,8 @@ public class CronJob {
|
||||||
} catch (NoSuchElementException nsee) {
|
} catch (NoSuchElementException nsee) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Vector jobVec = new Vector (jobs.values ());
|
List jobVec = new ArrayList (jobs.values ());
|
||||||
return (Vector) sort (jobVec);
|
return sort (jobVec);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List sort (List list) {
|
public static List sort (List list) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue