uCosminexus Stream Data Platform - Application Framework Application Development Guide

[Contents][Index][Back][Next]

7.2 List of APIs for sending and receiving data

The APIs for sending and receiving data can be classified into the three types described below. Use the one best suited to the custom adaptor being created.

The interfaces and classes of the APIs for sending and receiving data are listed below.

Table 7-1 List of APIs for sending and receiving data (interface)

No. Package name Interface name Function Type
1 jp.co.Hitachi.soft.sdp.api SDPConnector Interface for the connector that attaches a custom adaptor to the SDP server. Used for connecting to an input stream or output stream. Common API
2 StreamInput Interface used for sending stream data to the SDP server and for disconnecting from the input stream Common API
3 StreamOutput Interface used for receiving query results from the SDP server, for registering or unregistering listener objects for callback, and for disconnecting from the output stream Common API
4 jp.co.Hitachi.soft.sdp.api.inprocess StreamEventListener Interface for implementing the process to be used for callbacks In-process connection API
5 StreamInprocessUP Interface for implementing the main process, which is equivalent to a custom adaptor's main method. The implementing class of the StreamInprocessUP interface is loaded and executed when the SDP server is started. In-process connection API

Table 7-2 List of APIs for sending and receiving data (class)

No. Package name Class name Function Type
1 jp.co.Hitachi.soft.sdp.api SDPConnectorFactory Class for generating an SDPConnector type object RMI connection API
2 jp.co.Hitachi.soft.sdp.common.util StreamTime Class for specifying date and time Common API
3 jp.co.Hitachi.soft.sdp.common.data StreamTuple Class for expressing a stream tuple Common API

These interfaces and classes are explained in alphabetic order below.