public interface UserLogger
Java interface defines the necessary methods invoked by the Import/Export Connector (IEC) application
when processing a Log Action component configured in the executed scenario; You
develop a Java class implementing this interface to customize the
behavior of the IEC application in your SAP CC system landscape.
When you need to add and customize a Log Action component in a
scenario configured
with the CAT Tool user interface of SAP Convergent Charging,
you develop a Java class that implements the functions expected by your business requirements.
Design and develop the behavior of the methods invoked by the running IEC application when starting, processing a Log Action component configured in the exectued scenario:
Note
If you want that the running IEC application is able to initialize some properties, make sure
you extend your customized Java class with the JavaTask abstract class.
Design and develop the JavaTask.setProperties(..) method.
Your customized Java class must implement this UserLogger Java interface.
To implement this interface, you develop its five methods depending on your business requirements:
init()
close()
terminated(DataCollection, String)
rejected(DataCollection, String, String[], String)
filtered(DataCollection, String, String[], String)
To compile this Java class you need the iec.jar file in your Java compiler classpath.
Once developed, you specify your Java class in the relevant customized scenario and component:
Set up a Log Action component with CAT Tool.
Code Snippet
Refer to the tutorial: Implementing a console logger
This example shows you how to develop a class that implements the UserLogger interface.
The example defines the ConsoleLogger class that is used to print each event on a console.
DataCollection,
JavaTask| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invoked by a running IEC application when the execution of the UserLogger is complete.
|
void |
filtered(DataCollection dc,
java.lang.String reasonCode,
java.lang.String[] args,
java.lang.String actionUid)
Invoked by an action when the processing of the
data collection is complete and filtered. |
void |
init()
Invoked by a running IEC application to initialize the UserLogger at the time of its creation.
|
void |
rejected(DataCollection dc,
java.lang.String reasonCode,
java.lang.String[] args,
java.lang.String actionUid)
Invoked by an action when the processing of the
data collection is complete but failed. |
void |
terminated(DataCollection dc,
java.lang.String actionUid)
Invoked by an action when
the processing of the
data collection is complete and successful. |
void init()
void close()
void terminated(DataCollection dc, java.lang.String actionUid)
data collection is complete and successful.dc - The data collectionactionUid - The ID of the actionvoid rejected(DataCollection dc, java.lang.String reasonCode, java.lang.String[] args, java.lang.String actionUid)
data collection is complete but failed.
Two parameters specify more details about the failure: the reason code and the array of parameters related to the reason code.dc - The data collectionreasonCode - The reason code of the rejectionargs - The parameter array relating to the reason codeactionUid - The ID of the actionvoid filtered(DataCollection dc, java.lang.String reasonCode, java.lang.String[] args, java.lang.String actionUid)
data collection is complete and filtered.dc - The data collectionreasonCode - The reason code of the filteringargs - The parameter array relating to the reason codeactionUid - The ID of the action