public abstract class SchedulableJobModel extends java.lang.Object implements XMLMarshallable, java.lang.Comparable<SchedulableJobModel>
abstract Java class represents a job for BART Server as it is presented on client side and in the BART Tool user interface.
A schedulable job for BART is defined by three parameters:
The known Java implementations of this class are:
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_ACTIVE
This status indicates that the job is active
|
static int |
STATUS_INACTIVE
This status indicates that the job is inactive
|
| Constructor and Description |
|---|
SchedulableJobModel() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
_getJobID()
Returns The unique job identifier
|
java.util.Date |
_getLastActivationDate()
FOR INTERNAL USE ONLY - Returns the last activation date.
|
void |
_setJobID(java.lang.Long id)
Sets the unique job identifier
|
void |
_setLastActivationDate(java.util.Date lad)
FOR INTERNAL USE ONLY - Sets the last activation date.
|
int |
compareTo(SchedulableJobModel o) |
java.lang.String |
getDescription()
Returns The job description
|
abstract java.lang.String |
getJobClassName()
Gets the class name of the job.
|
java.lang.Long |
getPollingPeriod()
Gets the polling period.
|
com.highdeal.util.Recurrence |
getRecurrence()
Gets the recurrence.
|
java.lang.String |
getRecurrenceAsString()
Gets the recurrence in String format.
|
int |
getStatus()
Returns the status of the job.
|
protected void |
innerMarshall(XMLOutputter output) |
protected void |
innerSetAttributes(XMLAttributes atts) |
protected int |
parseStatus(java.lang.String s)
Transforms the status from its string form to its constant value.
|
void |
setDescription(java.lang.String s)
Sets the job description
|
void |
setPollingPeriod(java.lang.Long pollingPeriod)
Sets the polling period.
|
void |
setRecurrence(com.highdeal.util.Recurrence recurrence)
Sets the recurrence.
|
void |
setRecurrenceAsString(java.lang.String recurrenceFormat)
Sets the recurrence in String format.
|
void |
setStatus(int status)
Sets the status of the job.
|
protected java.lang.String |
statusToString()
Transforms the current status to its string representation.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCharacterData, addChild, marshal, setAttributespublic static final int STATUS_ACTIVE
public static final int STATUS_INACTIVE
public void setPollingPeriod(java.lang.Long pollingPeriod)
pollingPeriod - The polling periodpublic void setRecurrenceAsString(java.lang.String recurrenceFormat)
recurrenceFormat - The recurrence in String formatpublic java.lang.Long getPollingPeriod()
public java.lang.String getRecurrenceAsString()
public void setRecurrence(com.highdeal.util.Recurrence recurrence)
recurrence - The recurrencepublic com.highdeal.util.Recurrence getRecurrence()
public java.lang.String getDescription()
public void setDescription(java.lang.String s)
public void setStatus(int status)
status - The status of the jobpublic int getStatus()
public abstract java.lang.String getJobClassName()
public java.lang.Long _getJobID()
public void _setJobID(java.lang.Long id)
public java.util.Date _getLastActivationDate()
public void _setLastActivationDate(java.util.Date lad)
lad - The last activation datepublic java.lang.String toString()
toString in class java.lang.Objectprotected int parseStatus(java.lang.String s)
s - The status in its string formprotected java.lang.String statusToString()
protected void innerMarshall(XMLOutputter output)
protected void innerSetAttributes(XMLAttributes atts)
public int compareTo(SchedulableJobModel o)
compareTo in interface java.lang.Comparable<SchedulableJobModel>