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 nameInterface nameFunctionType
1jp.co.Hitachi.soft.sdp.apiSDPConnectorInterface for the connector that attaches a custom adaptor to the SDP server. Used for connecting to an input stream or output stream.Common API
2StreamInputInterface used for sending stream data to the SDP server and for disconnecting from the input streamCommon API
3StreamOutputInterface used for receiving query results from the SDP server, for registering or unregistering listener objects for callback, and for disconnecting from the output streamCommon API
4jp.co.Hitachi.soft.sdp.api.inprocessStreamEventListenerInterface for implementing the process to be used for callbacksIn-process connection API
5StreamInprocessUPInterface 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 nameClass nameFunctionType
1jp.co.Hitachi.soft.sdp.apiSDPConnectorFactoryClass for generating an SDPConnector type objectRMI connection API
2jp.co.Hitachi.soft.sdp.common.utilStreamTimeClass for specifying date and timeCommon API
3jp.co.Hitachi.soft.sdp.common.dataStreamTupleClass for expressing a stream tupleCommon API

These interfaces and classes are explained in alphabetic order below.