public class Job extends Object implements Serializable
| Constructor and Description |
|---|
Job()
No-argument constructor.
|
Job(Job origJob)
Cloning constructor.
|
Job(String className,
List<?> args)
A convenience constructor.
|
Job(String className,
Map<String,? extends Object> vars)
Create a new Job with the given class name and named arguments.
Resque 2.0-style Job. |
Job(String className,
Object... args)
Create a new Job with the given class name and arguments.
|
Job(String className,
Object[] args,
Map<String,? extends Object> vars)
Create a new Job with the given class name and both types of arguments.
Resque 2.0-style Job. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object[] |
getArgs() |
String |
getClassName() |
Object |
getUnknownField(String fieldName)
Get an unknown field.
|
Map<String,Object> |
getUnknownFields()
Get all unknown fields.
|
Map<String,Object> |
getVars() |
int |
hashCode() |
boolean |
isValid() |
void |
setArgs(Object... args)
Set the arguments.
|
void |
setClassName(String className)
Set the class name.
|
void |
setUnknownField(String name,
Object value)
Set an unknown field.
|
void |
setUnknownFields(Map<String,Object> unknownFields)
Set all unknown fields
|
void |
setVars(Map<String,? extends Object> vars)
Set the named arguments.
|
String |
toString() |
public Job()
public Job(Job origJob)
origJob - the Job to start fromIllegalArgumentException - if the origJob is nullpublic Job(String className, List<?> args)
className - the class name of the Jobargs - the arguments for the Jobpublic Job(String className, Object... args)
className - the class name of the Jobargs - the arguments for the Jobpublic Job(String className, Map<String,? extends Object> vars)
className - the class name of the Jobvars - the named arguments for the Jobpublic String getClassName()
public void setClassName(String className)
className - the new class namepublic Object[] getArgs()
public void setArgs(Object... args)
args - the new argumentspublic void setVars(Map<String,? extends Object> vars)
vars - the new named argumentspublic boolean isValid()
public Object getUnknownField(String fieldName)
fieldName - the field namepublic Map<String,Object> getUnknownFields()
public void setUnknownField(String name, Object value)
name - the unknown property namevalue - the unknown property valuepublic void setUnknownFields(Map<String,Object> unknownFields)
unknownFields - the new unknown fieldsCopyright © 2011-2015. All Rights Reserved.