uCosminexus Stream Data Platform - Application Framework Application Development Guide
This section explains how to create an in-process connection custom adaptor.
To implement an in-process connection custom adaptor, you need to create a class containing an instance of the StreamInprocessUP interface.
An in-process connection custom adaptor receives an SDPConnector type object generated by the SDP server as a parameter of the execute method in the implemented StreamInprocessUP interface class. For the execute method, define a process that is equivalent to the main method of the custom adaptor.
Both the StreamInput interface and the StreamOutput interface are used for sending and receiving stream data. Both a StreamInput type object and a StreamOutput type object are generated by the method of the SDPConnector type object passed as the parameter of the execute method.
An overview of the interfaces used for sending and receiving stream data is provided below.
To use an in-process connection custom adaptor, you need to define the following in user_app.in-process-connection-application-name.properties.
user_app.classname=custom-adaptor-main-class-name user_app.classpath_dir=custom-adaptor-main-class-path-name |
For details about how to specify user_app.in-process-connection-application-name.properties, see the manual uCosminexus Stream Data Platform - Application Framework Setup and Operation Guide.
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.