uCosminexus Stream Data Platform - Application Framework Application Development Guide

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

openStreamOutput(String group_name,String stream_name) method

Format

StreamOutput openStreamOutput(String group_name,String stream_name)

Explanation

Connects to the output 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 output stream.
  • The connector was already closed.
SDPClientRelationStateException The specified stream is in the relation state.

Return value

The output stream (StreamOutput type object) that was connected