|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.tools.scheduler.bo.Job
public class Job
Conveys the detail properties of a given Job instance. Jobs have a name and group associated with them, which should uniquely identify them.
Constructor Summary | |
---|---|
Job()
|
Method Summary | |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
|
void |
addParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDescription()
Return the description given to the Job instance by its creator (if any). |
java.lang.String |
getGroupName()
|
java.lang.Class |
getJobClass()
Get the instance of the actual class that contains the business logic of the job and that will be executed by the scheduler |
java.lang.String |
getName()
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
|
int |
hashCode()
|
boolean |
isDurable()
Whether or not the Job should remain stored after it is orphaned
(no Triggers point to it). |
boolean |
isRequestsRecovery()
Instructs the Scheduler whether or not the Job should be re-executed if a 'recovery' or 'fail-over' situation is encountered. |
boolean |
isVolatile()
Whether or not the Job should not be persisted for re-use after program restarts. |
void |
setDescription(java.lang.String description)
Set a description for the Job instance - may be useful for remembering/displaying the purpose of the job, though the description has no meaning for the scheduler. |
void |
setDurable(boolean durable)
Instructs the Scheduler whether or not the Job should remain
stored after it is orphaned (no Triggers point to it). |
void |
setGroupName(java.lang.String groupName)
|
void |
setJobClass(java.lang.Class jobClass)
|
void |
setName(java.lang.String name)
|
void |
setRequestsRecovery(boolean requestsRecovery)
Instructs the Scheduler whether or not the Job should be re-executed if a 'recovery' or 'fail-over' situation is encountered. |
void |
setVolatile(boolean _volatile)
Instructs the Scheduler whether or not the Job should not be persisted for re-use after program restarts. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Job()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- a description of the job purposepublic java.lang.Class getJobClass()
public void setJobClass(java.lang.Class jobClass)
public boolean isDurable()
Job
should remain stored after it is orphaned
(no Triggers
point to it).
If not explicitly set, the default value is false.
public void setDurable(boolean durable)
Job
should remain
stored after it is orphaned (no Triggers
point to it).
public boolean isRequestsRecovery()
public void setRequestsRecovery(boolean requestsRecovery)
requestsRecovery
- true if the Job should be re-executed after 'recovery'
or 'fail-over' situation. False otherwisepublic boolean isVolatile()
public void setVolatile(boolean _volatile)
public void addParameter(java.lang.String name, java.lang.String value)
public void addParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |