|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.admin.hci.CleanupAllOp
public class CleanupAllOp
This operation allows you to trigger the cleanup of all subscriptions and provider contracts that are involved in session-based charging operations or in prerating operations (deprecated).
The SAP CC system resends a message to all rater instances for cleaning the subscriptions managed by each of them.
Each rater instance cleans up all expired recurring events until the specified toDate for all charge activations
of the given subscription.
In addition, a maxThroughput can be provided to control the resources used by each rater instance
to perform the cleanup to preserve performance level for the usage rating. The unit represents the number of subscriptions
cleaned per second for each rater instance. 0, the default value means that no limitation is applied.
A negative value or a value greater than 1,000 will be ignored and the throughput will be set to 0.
If some attributes are missing then a
CleanupException is thrown.
This operation returns a CleanupAllResult that
contains an execution status (performed, stopped, or incomplete) and
the total count of cleaned subscriptions and contracts.
See the SAP CC Admin+ user interface
and the start_cleanup command.
CleanupAllResult The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cleanupAll">
<xs:complexType>
<xs:attribute name="maxThroughput" type="xs:integer" default="0"/>
<xs:attribute name="toDate" type="xs:dateTime" use="required"/>
</xs:complexType>
</xs:element>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | No | No | No | No | Yes |
| Field Summary | |
|---|---|
static java.lang.String |
OPERATION_NAME
The XML tag name of this service operation: "cleanupAll" |
| Constructor Summary | |
|---|---|
CleanupAllOp()
Constructs an empty CleanupAll Operation. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
int |
getMaxThroughput()
Returns the max throughput (max number of expired subscription cleaned per second into each rater instance). |
java.lang.String |
getName()
The name of this operation is "cleanupAll". |
java.util.Date |
getToDate()
Gets the to date for this cleanupAll operation. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setMaxThroughput(int val)
Sets the max throughput value; If val is greater than 1000 then the throughput is
considered without limitation and the value is set to 0. |
void |
setToDate(java.util.Date toDate)
Sets the to date for this cleanupAll operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPERATION_NAME
| Constructor Detail |
|---|
public CleanupAllOp()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface MessageOperationpublic java.util.Date getToDate()
public void setToDate(java.util.Date toDate)
toDate - The to date for this cleanupAll operationpublic int getMaxThroughput()
public void setMaxThroughput(int val)
val is greater than 1000 then the throughput is
considered without limitation and the value is set to 0.
A negative value is considered like 0 (no limitation).
val - The value of the maxThroughputpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||