This section explains how to create an RMI connection custom adaptor.
An RMI connection custom adaptor, which runs as a separate process, connects to the SDP server using RMI communication and acquires an SDPConnector type object. To connect to the SDP server, the connect method in the SDPConnectorFactory class is used.
Stream data is sent and received using methods in the StreamInput interface and the StreamOutput interface. A StreamInput type object and a StreamOutput type object are created using the SDPConnector interface method. You can also create both a StreamInput type object and a StreamOutput type object from a single SDPConnector type object.
An overview of the interfaces used for sending and receiving stream data is provided below.
- For sending stream data
- For sending stream data, the StreamInput interface is used.
- A custom adaptor uses an SDPConnector type object acquired from the connect method in the SDPConnectorFactory class to generate a StreamInput type object. The generated StreamInput type object uses the put method to send data.
- For receiving stream data
- For receiving stream data, the StreamOutput interface is used.
- A custom adaptor uses an SDPConnector type object acquired from the connect method in the SDPConnectorFactory class to generate a StreamOutput type object. The generated StreamOutput type object uses the get or getAll method to receive data.
- The get or getAll method dynamically acquires the result data from the SDP server. This data acquisition method is called the polling method.
- Organization of this section
- 6.2.1 Sending stream data (RMI connection custom adaptor)
- 6.2.2 Receiving query result data (RMI connection custom adaptor)