Adapter type: SampleAdapter. Edit and use the Sample Input and
Output adapter as practice for building an external managed adapter.
To run the adapter, write the following Java files in the adapter's source code:
- SampleAdapter.java - starts and stops the adapter process. To
use this file, set the parameters you require for your implementation in the
SampleAdapter\examples\adapter.xml file.
- Marshalling.java - translates and formats the data for Event
Stream Processor or the destination of the data. To use this file, write an
extended class of Marshalling.java for publishing, or an
extended class of Marshalling.java for subscribing.
- DataTransport.java - accesses or stores the data. To use this
file, write an extended class of DataTransport.java.
- CsvTransfer.java - extends
DataTransport.java, reads the csv file, and sends lines
to the Marshalling.java class.
- toEsp.java - extends Marshalling.java,
creates the publisher from the project, and inputs the data into Event Stream
Processor.
- toCsv.java - extends Marshalling.java,
creates the subscriber, and stores an output file.