| java.lang.Object java.lang.Thread com.xoetrope.task.XJob
XJob | public class XJob extends Thread implements XArguments(Code) | | Create a new job. A job is associated with an executable task and is run at
a defined interval or after a defined time.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.4 $
|
Constructor Summary | |
public | XJob(int jobId, Object cls, int t, long intrvl, long start, Object[] args) |
keepRunning | boolean keepRunning(Code) | | |
sleepInterval | long sleepInterval(Code) | | |
startDate | long startDate(Code) | | |
XJob | public XJob(int jobId, Object cls, int t, long intrvl, long start, Object[] args)(Code) | | Create a new job
Parameters: jobId - the ID by which the job will be identified Parameters: cls - the XExecutable class Parameters: t - the type Parameters: intrvl - the interval Parameters: start - the start time Parameters: args - the arguments |
execute | public void execute()(Code) | | Execute the task, the actual work of the callback or executable object
|
getArgument | public Object getArgument(int index)(Code) | | Get an argument
Parameters: index - the index of the argument the argument object |
getNumArguments | public int getNumArguments()(Code) | | Get the number of arguments belonging/needed by to this job
the number of arguments |
kill | public void kill()(Code) | | End the job
|
run | public void run()(Code) | | Run the job and execute the task when ready
|
|
|