[Home] [Index] [Next]

Getting Started

Installing and Running Oddjob.

Requirements

Installing on Windows

Download the file oddjob-1.6-SNAPSHOT.zip and unzip to a directory of your choice.

Installing on Linux

Download the .tar.gz move to a directory of your choice, and then unpack the tarball

tar xzvf oddjob-1.6-SNAPSHOT.tar.gz

Running Oddjob

To quickly see Oddjob running something try:

java -jar run-oddjob.jar -f server-jobs.xml

And you should see something like:

[Main] Oddjob Home has been provided and is [C:\Users\rob\java\oddjob]
[Main] Starting Oddjob version 1.6-SNAPSHOT October 7 2020
 [Oddjob server-jobs.xml] Executing.
 [Oddjob server-jobs.xml] Scanning directory [C:\Users\rob\java\oddjob\oddballs] for Oddballs.
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-ant]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-aws]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-hsql]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-mail]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-net]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-ssh]
 [Oddjob server-jobs.xml] Addding Oddall [C:\Users\rob\java\oddjob\oddballs\oj-web]
 [Oddjob server-jobs.xml] Loading from configuration server-jobs.xml
  [5 Min Timer] Executing.
  [5 Min Timer] Starting Scheduled Exector with 13 threads.
  [5 Min Timer] Calculating schedule from current clock date time.
  [5 Min Timer] Next due at Mon Oct 12 09:53:20 BST 2020 in 0 seconds.
   [5 Min Timer] Executing [SequentialJob] due at Mon Oct 12 09:53:20 BST 2020
 [Oddjob server-jobs.xml] Execution finished.
     [Echo Hello] Hard Reset complete.
     [Echo World] Hard Reset complete.
    [SequentialJob] Hard Reset complete.
    [SequentialJob] Executing.
    [SequentialJob] Executing child [Echo Hello]
     [Echo Hello] Executing.
Hello
     [Echo Hello] Finished.
    [SequentialJob] Executing child [Echo World]
     [Echo World] Executing.
World
     [Echo World] Finished.
     [5 Min Timer] Next due at Mon Oct 12 09:58:20 BST 2020 in 4 minutes 59 seconds.
    [SequentialJob] Execution finished.
   [5 Min Timer] Finished executing [SequentialJob]
		

Which is Hello and World being echoed every 5 minutes. To stop it press ctl-C.

Oddjob executes a file of xml configuration. By default that file is oddjob.xml which launches Oddjob explorer. There is more on this in the next section.


[Home] [Index] [Next]