Write a subscriber class based on the subscriber reference code that is provided, or
create your own class that extends the AbstractSubscriber class.
About this task
Your subscriber class must meet the following requirements:
Procedure
To write a subscriber class:
- Add code to the reference subscriber that retrieves data
from the remote system you are connecting to. See Subscriber class template for reference subscriber source code.
- Add the subscriber class Javadoc to your Eclipse development environment.
- Right-click the project_name and select .
- Click the Libraries tab.
- If CounterFraud_Common.jar is not already in the classpath, add it.
- Expand the CounterFraud_Common.jar node.
- Select Javadoc location and click Edit.
- Add CounterFraud_Common.jar as the archive that contains the
Javadoc.
- Create a Counter Fraud event with an event type corresponding
to the data the subscriber received from the remote system. Set the Counter Fraud event type either directly, or optionally by using the
subscribe framework's investigation to event mapping capability. Using investigation to event
mapping allows your code to change mappings without changing Java code.
- The AbstractSubscriber base class provides a number of helper methods. Use
code helpers to complete the following steps:
- Get the mapping from the external investigation stereotype to the Counter Fraud event stereotype:
getExternalAlertStereotypeToCounterFraudStereotypeMap();
- Map an external investigation stereotype to a Counter Fraud
event stereotype and send the event: processNotification( Event event, String
external_alert_stereotype );
- Get the configured initialization string for the subscriber class instance:
getInitializationString();
The subscriber framework calls the run() call helper method for your classes to
start the execution thread. See the AbstractSubscriber base class for a complete
list of helper methods.