Package com.highdeal.bart.hci
Class RunRatingSessionJobModel
java.lang.Object
com.highdeal.bart.hci.SchedulableJobModel
com.highdeal.bart.hci.RunRatingSessionJobModel
- All Implemented Interfaces:
XMLMarshallable,Comparable<SchedulableJobModel>
Run rating session job model is a extends of abstract class
A run rating session job model is used to launch a rating session periodically.
A run rating session job model is similar to an SchedulableJobModel except for those parameters:
SchedulableJobModel.
A run rating session job model is used to launch a rating session periodically.
A run rating session job model is similar to an SchedulableJobModel except for those parameters:
- The delay: Each time the job is launched, the delay is remove from the current date. All CDRs which have an consumption date older to this delay are rated.
- The batch rating group Id
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="runRatingSessionJob">
<xs:complexType>
<xs:attribute name="pollingPeriod" type="xs:string"/>
<xs:attribute name="recurrence" type="xs:string"/>
<xs:attribute name="batchRatingGroupId" type="xs:string"/>
<xs:attribute name="mode" type="xs:string"/>
<xs:attribute name="delay" type="xs:string"/>
<xs:attribute name="status" type="RunRatingSessionJobStatusType"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="jobID" type="xs:long"/>
</xs:complexType>
</xs:element><xs:simpleType name="RunRatingSessionJobStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="active"/>
<xs:enumeration value="inactive"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsFields inherited from class com.highdeal.bart.hci.SchedulableJobModel
STATUS_ACTIVE, STATUS_INACTIVE -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty job modelRunRatingSessionJobModel(Integer batchRatingGroupId, Long delay, RatingSessionModel.Mode mode, Long pollingPeriod, String recurrence, int status, String description) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the batch rating group Id.getDelay()Gets the delay compared to system date.Gets the class name of this job.getMode()GetsRatingSessionModel.Mode.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetBatchRatingGroupId(Integer batchRatingGroupId) Sets the batch rating group Id.voidSets the delay compared to system date.voidSetsRatingSessionModel.Mode.Methods inherited from class com.highdeal.bart.hci.SchedulableJobModel
_getJobID, _getLastActivationDate, _setJobID, _setLastActivationDate, compareTo, getDescription, getPollingPeriod, getRecurrence, getRecurrenceAsString, getStatus, innerMarshall, innerSetAttributes, parseStatus, setDescription, setPollingPeriod, setRecurrence, setRecurrenceAsString, setStatus, statusToString, toString
-
Field Details
-
NAME
XML tag name of this model.- See Also:
-
-
Constructor Details
-
RunRatingSessionJobModel
public RunRatingSessionJobModel()Builds an empty job model -
RunRatingSessionJobModel
public RunRatingSessionJobModel(Integer batchRatingGroupId, Long delay, RatingSessionModel.Mode mode, Long pollingPeriod, String recurrence, int status, String description) Public constructor- Parameters:
batchRatingGroupId-delay-pollingPeriod-recurrence-status-
-
-
Method Details
-
setBatchRatingGroupId
Sets the batch rating group Id.- Parameters:
batchRatingGroupId- the batch rating group Id
-
getBatchRatingGroupId
Gets the batch rating group Id.- Returns:
- the batch rating group Id.
-
setDelay
Sets the delay compared to system date.- Parameters:
delay- number of seconds
-
getDelay
Gets the delay compared to system date.- Returns:
- the delay compared to system date.
-
setMode
SetsRatingSessionModel.Mode.- Parameters:
mode-RatingSessionModel.Mode
-
getMode
GetsRatingSessionModel.Mode.- Returns:
RatingSessionModel.Mode.
-
getJobClassName
Gets the class name of this job.- Specified by:
getJobClassNamein classSchedulableJobModel- Returns:
- the class name of job.
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-