|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.jobs.SequenceJob
public class SequenceJob
<oddjob id="this" xmlns:scheduling="http://rgordon.co.uk/oddjob/scheduling" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"> <job> <scheduling:timer id="daily"> <schedule> <schedules:daily/> </schedule> <job> <scheduling:timer> <schedule> <schedules:count count="10"/> </schedule> <job> <sequential> <jobs> <sequence id="seqnum" watch="${daily.current}"/> <variables id="vars"> <seqnumFormatted> <format format="0000" number="${seqnum.current}"/> </seqnumFormatted> </variables> <copy name="Create file" to="${work.dir}/sequence${vars.seqnumFormatted}.txt"> <input> <value value="This text will be in every file."/> </input> </copy> </jobs> </sequential> </job> </scheduling:timer> </job> </scheduling:timer> </job> </oddjob>The watch property is set to watch when the daily scheule move forward so the sequence is restarted.
Constructor Summary | |
---|---|
SequenceJob()
|
Method Summary | |
---|---|
Integer |
getCurrent()
Get the current sequence number. |
int |
getFrom()
|
String |
getName()
Get the name. |
Object |
getWatch()
|
void |
run()
|
void |
setCurrent(Integer current)
|
void |
setFrom(int from)
|
void |
setName(String name)
Set the name |
void |
setWatch(Object watch)
Set an object to watch. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceJob()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name.public Integer getCurrent()
public void setCurrent(Integer current)
public void setFrom(int from)
public int getFrom()
public void run()
run
in interface Runnable
public void setWatch(Object watch)
reset
- The reset to set.public Object getWatch()
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |