SAP CC 3.0 BART API

com.highdeal.bart.hci
Class SchedulableJobModel

java.lang.Object
  extended by com.highdeal.bart.hci.SchedulableJobModel
All Implemented Interfaces:
java.lang.Comparable<SchedulableJobModel>
Direct Known Subclasses:
CleanDatabaseJobModel, RunRatingSessionJobModel

public abstract class SchedulableJobModel
extends java.lang.Object
implements java.lang.Comparable<SchedulableJobModel>

This class represents a Job as it is presented on client side.

A "schedulable" job is define by three parameters:

Known implementations of schedulable job are:


Field Summary
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 Summary
SchedulableJobModel()
           
 
Method Summary
 java.lang.Long _getJobID()
          Returns the unique job identifier
 java.util.Date _getLastActivationDate()
          Returns the last activation date.
 void _setJobID(java.lang.Long id)
          Sets the unique job identifier
 void _setLastActivationDate(java.util.Date lad)
          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.
 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(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_ACTIVE

public static final int STATUS_ACTIVE
This status indicates that the job is active.

See Also:
Constant Field Values

STATUS_INACTIVE

public static final int STATUS_INACTIVE
This status indicates that the job is inactive.

See Also:
Constant Field Values
Constructor Detail

SchedulableJobModel

public SchedulableJobModel()
Method Detail

setPollingPeriod

public void setPollingPeriod(java.lang.Long pollingPeriod)
Sets the polling period.

Parameters:
pollingPeriod - the polling period

setRecurrenceAsString

public void setRecurrenceAsString(java.lang.String recurrenceFormat)
Sets the recurrence in String format.

Parameters:
recurrenceFormat - the recurrence in String format.

getPollingPeriod

public java.lang.Long getPollingPeriod()
Gets the polling period.

Returns:
the polling period.

getRecurrenceAsString

public java.lang.String getRecurrenceAsString()
Gets the recurrence in String format.

Returns:
the recurrence in String format.

setRecurrence

public void setRecurrence(Recurrence recurrence)
Sets the recurrence.

Parameters:
recurrence - the recurrence

getRecurrence

public Recurrence getRecurrence()
Gets the recurrence.

Returns:
the recurrence.

getDescription

public java.lang.String getDescription()
Returns the job description


setDescription

public void setDescription(java.lang.String s)
Sets the job description


setStatus

public void setStatus(int status)
Sets the status of the job.

Parameters:
status - the status of the job

getStatus

public int getStatus()
Returns the status of the job.

Returns:
the status of the job.

getJobClassName

public abstract java.lang.String getJobClassName()
Gets the class name of the job.

Returns:
the class name of the job.

_getJobID

public java.lang.Long _getJobID()
Returns the unique job identifier


_setJobID

public void _setJobID(java.lang.Long id)
Sets the unique job identifier


_getLastActivationDate

public java.util.Date _getLastActivationDate()
Returns the last activation date. Reserved for internal use.

Returns:
lastActivationDate

_setLastActivationDate

public void _setLastActivationDate(java.util.Date lad)
Sets the last activation date. Reserved for internal use.

Parameters:
lad - the last activation date

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parseStatus

protected int parseStatus(java.lang.String s)
Transforms the status from its string form to its constant value.

Parameters:
s - the status in its string form
Returns:
the status in its constant value.

statusToString

protected java.lang.String statusToString()
Transforms the current status to its string representation.

Returns:
the current status to its string representation.

innerMarshall

protected void innerMarshall(XMLOutputter output)

innerSetAttributes

protected void innerSetAttributes(XMLAttributes atts)

compareTo

public int compareTo(SchedulableJobModel o)
Specified by:
compareTo in interface java.lang.Comparable<SchedulableJobModel>

SAP CC 3.0 BART API

(c) Copyright 2011 SAP AG. All rights reserved. SAP Convergent Charging 3.0