|
CoreDX DDS for Java from Twin Oaks Computing, Inc. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.toc.coredx.DDS.Entity
com.toc.coredx.DDS.DomainEntity
com.toc.coredx.DDS.Subscriber
public class Subscriber
The Subscriber configures, creates, manages and destroys DataReaders.
| Method Summary | |
|---|---|
ReturnCode_t |
begin_access()
This operation indicates that the application is about to access the data samples in any of the DataReader objects contained in the Subscriber s. The application is expected to use this operation only if PRESENTATION QosPolicy of the Subscriber has the access_scope set to GROUP. |
ReturnCode_t |
copy_from_topic_qos(DataReaderQos qos,
TopicQos topic_qos)
This operation copies the QoS settings in a_topic_qos to the corresponding settings in a_datareader_qos. The a_datareader_qos parameter is populated with a copy of the QoS policies from the a_topic_qos structure. |
DataReader |
create_datareader(TopicDescription topic,
DataReaderQos qos,
DataReaderListener listener,
long mask)
This operation creates a DataReader. |
ReturnCode_t |
delete_contained_entities()
This operation deletes all the DataReaders created by means of the Subscriber.create_datareader() operation on the Subscriber s. This routine will recursively call the corresponding delete_contained_entities() operation on each of the contained DataReader objects. |
ReturnCode_t |
delete_datareader(DataReader datareader)
This operation deletes a DataReader. |
ReturnCode_t |
enable()
Enables the Subscriber. |
ReturnCode_t |
end_access()
This operation closes a corresponding Subscriber.begin_access(). |
ReturnCode_t |
get_datareaders(java.util.Vector readers,
long sample_states,
long view_states,
long instance_states)
This operation allows the application to access DataReader objects that contain samples with the specified sample_states, view_states, and instance_states. |
ReturnCode_t |
get_default_datareader_qos(DataReaderQos qos)
Provides access to the default DataReaderQos settings held in the Subscriber s. The provided qos argument is populated with the current default qos settings. |
SubscriberListener |
get_listener()
This operation returns the currently installed SubscriberListener. |
DomainParticipant |
get_participant()
This operation returns the DomainParticipant this Subscriber belongs to. |
ReturnCode_t |
get_qos(SubscriberQos qos)
Returns the current SubscriberQos settings held in the Subscriber s. The qos parameter is populated with a copy of the current Subscriber QoS properties. |
DataReader |
lookup_datareader(java.lang.String topic_name)
This operation retrieves a previously-created DataReader contained in the Subscriber, attached to a Topic named topic_name. If multiple DataReaders are found, one of them will be returned. |
ReturnCode_t |
set_default_datareader_qos(DataReaderQos qos)
Sets the default DataReaderQos held in the Subscriber. |
ReturnCode_t |
set_listener(SubscriberListener new_listener,
long mask)
Installs a SubscriberListener on Subscriber s. Only one listener may be attached to a Subscriber at a time. |
ReturnCode_t |
set_qos(SubscriberQos qos)
Sets the SubscriberQos values. |
| Methods inherited from class com.toc.coredx.DDS.Entity |
|---|
get_instance_handle, get_status_changes, get_statuscondition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ReturnCode_t enable()
enable in class Entity
public DataReader create_datareader(TopicDescription topic,
DataReaderQos qos,
DataReaderListener listener,
long mask)
The created DataReader (if not NULL) must be destroyed by a call to Subscriber.delete_datareader().
This routine will fail if the provided QoS settings are internally inconsistent. In this case, the routine will return NULL.
public ReturnCode_t delete_datareader(DataReader datareader)
public ReturnCode_t delete_contained_entities()
If any of the objects cannot be deleted, this routine will return ReturnCode_t.RETCODE_PRECONDITION_NOT_MET.
public DataReader lookup_datareader(java.lang.String topic_name)
This routine is useful to obtain access to a particular built-in DataReader.
public ReturnCode_t get_datareaders(java.util.Vector readers,
long sample_states,
long view_states,
long instance_states)
If the PRESENTATION QosPolicy of the Subscriber to which the DataReader belongs has the access_scope set to GROUP, this operation should be invoked only inside a begin_access/end_access block. Otherwise it will return the error PRECONDITION_NOT_MET.
The returned collection of DataReader objects may either be a set (containing each DataReader at most once in no specified order), or a list (containing each DataReader one or more times in a specific order).
This method is currently unsupported.
public DomainParticipant get_participant()
public ReturnCode_t set_qos(SubscriberQos qos)
public ReturnCode_t get_qos(SubscriberQos qos)
public ReturnCode_t set_listener(SubscriberListener new_listener,
long mask)
a_listener can be NULL, which indicates a listener that does nothing.
public SubscriberListener get_listener()
public ReturnCode_t begin_access()
This method is currently unsupported.
public ReturnCode_t end_access()
This method is currently unsupported.
public ReturnCode_t set_default_datareader_qos(DataReaderQos qos)
public ReturnCode_t get_default_datareader_qos(DataReaderQos qos)
public ReturnCode_t copy_from_topic_qos(DataReaderQos qos,
TopicQos topic_qos)
|
Copyright © 2010 Twin Oaks Computing, Inc, All Rights Reserved |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||