uCosminexus Stream Data Platform - Application Framework Application Development Guide

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

openStreamInput(String group_name,String stream_name) method

Format

StreamInput openStreamInput(String group_name,String stream_name)

Explanation

Connects to the input stream that corresponds to the group name and stream name specified in the parameters. An SDPConnector type object cannot connect to a stream with the same name more than once.

Parameters

group_name

Specifies a query group name.

stream_name

Specifies a stream name.

Exceptions

The following table shows the exceptions and the conditions for their generation.

Exception Generation condition
NullPointerException null is specified for the parameter.
SDPClientCommunicationException A communication exception occurred during RMI connection.
SDPClientException
  • A nonexistent group name or stream name is specified.
  • The same SDPConnector type object was already used to connect to the same input stream.
  • A stream that is not an input stream is specified.
  • The connector was already closed.

Return value

The input stream (StreamInput type object) that was connected