public abstract class Job extends Object implements IJob
JOB_CANCELLED, JOB_FINISHED, MODE_BACKGROUND, MODE_FOREGROUND, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL
Constructor and Description |
---|
Job(String name,
String description,
int mode,
int priority)
Create a job object.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a detailed description of what the job is doing.
|
int |
getMode()
Retunrs the mode of the job.
|
String |
getName()
Returns the name of the job.
|
int |
getPriority()
Returns the priority of the job.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, needLoggerConsole, run
public Job(String name, String description, int mode, int priority)
name
- the name of the jobdescription
- a description of the jobmode
- the running mode of the jobpriority
- the priority for the jobpublic String getName()
IJob
public String getDescription()
IJob
getDescription
in interface IJob
public int getMode()
IJob
public int getPriority()
IJob
getPriority
in interface IJob