Windows) is a command-line utility for controlling the job agent.
The syntax is:
./jobagent.sh [options] command
The options are optional, but a
must always be given. The script is located in the
<base-dir>/bin directory and you must
change to that directory to be able to use the script.
The path to the configuration file to use, for example:
./jobagent.sh -c other.config start
The default value is
The classpath is not searched which means that it doesn't find
the configuration file in
unless you specify the path to it.
See Appendix G, jobagent.properties reference
for more information about job agent configuration files.
Register the job agent with the BASE server. If the job agent already exists this command does nothing.
Unregister/delete the job agent from the BASE server. If the job agent does not exist this command does nothing.
Start the job agent. As soon as it is up and running it will check the database for jobs that are waiting to be executed.
Pause the job agent. The job agent will continue running but
does not check the database for jobs. To start it again use the
Stop the job agent. To start it again use the
Get information about the job agent. This will output a string
in the form:
Paused. For each job that is currently
running, the ID is given. In the future, the
command may output more information. For example, there is already
infrastructure code for CPU and memory usage. The only problem is
that the information is not easy to get for a Java program.
Similar to the
info command but with less output.
The output is either
Running, Pauses or Stopped.
In case of an unexpected error, an error message may be displayed instead.
Display usage information.