org.jacorb.dds
Class SubscriberImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.dds.SubscriberPOA
          extended by org.jacorb.dds.SubscriberImpl
All Implemented Interfaces:
InvokeHandler, EntityOperations, SubscriberOperations

public class SubscriberImpl
extends SubscriberPOA

A Subscriber is the object responsible for the actual reception of the data resulting from its subscriptions. A Subscriber acts on the behalf of one or several DataReader objects that are related to it. When it receives data (from the other parts of the system), it builds the list of concerned DataReader objects, and then indicates to the application that data is available, through its listener or by enabling related conditions. The application can access the list of concerned DataReader objects through the operation get_datareaders and then access the data available though operations on the DataReader.


Constructor Summary
SubscriberImpl(SubscriberQos qos, SubscriberListener listner, DomainParticipant DP)
           
 
Method Summary
 boolean add(DataReader DR)
           
 int begin_access()
          Not Implemented
 int copy_from_topic_qos(DataReaderQosHolder a_datareader_qos, TopicQos a_topic_qos)
           
 DataReader create_datareader(TopicDescription a_topic, DataReaderQos qos, DataReaderListener a_listener)
           
 int delete_contained_entities()
          Not Implemented
 int delete_datareader(DataReader a_datareader)
           
 int enable()
          Not Implemented
 int end_access()
          Not Implemented
 int get_datareaders(DataReaderSeqHolder readers, int sample_states, int view_states, int instance_states)
           
 void get_default_datareader_qos(DataReaderQosHolder qos)
           
 SubscriberListener get_listener()
           
 DomainParticipant get_participant()
           
 void get_qos(SubscriberQosHolder qos)
           
 int get_status_changes()
          Not Implemented
 StatusCondition get_statuscondition()
          Not Implemented
 DomainParticipant getDP_Parent()
           
 Object getInstance()
           
 Vector getVector_DataReaders()
           
 boolean isDeletable()
          Not Implemented
 DataReader lookup_datareader(String topic_name)
           
 void notify_datareaders()
           
 boolean remove(DataReader DR)
           
 int set_default_datareader_qos(DataReaderQos qos)
           
 int set_listener(SubscriberListener a_listener, int mask)
           
 int set_qos(SubscriberQos qos)
           
 void setInstance(Object instance)
           
 void setORB(ORB orb)
           
 void setPOA(POA poa)
           
 
Methods inherited from class org.omg.dds.SubscriberPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriberImpl

public SubscriberImpl(SubscriberQos qos,
                      SubscriberListener listner,
                      DomainParticipant DP)
Parameters:
qos -
listner -
DP -
Method Detail

create_datareader

public DataReader create_datareader(TopicDescription a_topic,
                                    DataReaderQos qos,
                                    DataReaderListener a_listener)
Parameters:
a_topic -
qos -
a_listener -
Returns:

delete_datareader

public int delete_datareader(DataReader a_datareader)
Parameters:
a_datareader -
Returns:

delete_contained_entities

public int delete_contained_entities()
Not Implemented

Returns:

lookup_datareader

public DataReader lookup_datareader(String topic_name)
Parameters:
topic_name -
Returns:

get_datareaders

public int get_datareaders(DataReaderSeqHolder readers,
                           int sample_states,
                           int view_states,
                           int instance_states)
Parameters:
readers -
sample_states -
view_states -
instance_states -
Returns:

notify_datareaders

public void notify_datareaders()
Parameters:
-

set_qos

public int set_qos(SubscriberQos qos)
Parameters:
qos -
Returns:

get_qos

public void get_qos(SubscriberQosHolder qos)
Parameters:
qos -

set_listener

public int set_listener(SubscriberListener a_listener,
                        int mask)
Parameters:
a_listener -
mask -
Returns:

get_listener

public SubscriberListener get_listener()
Returns:

begin_access

public int begin_access()
Not Implemented

Returns:

end_access

public int end_access()
Not Implemented

Returns:

get_participant

public DomainParticipant get_participant()
Returns:

set_default_datareader_qos

public int set_default_datareader_qos(DataReaderQos qos)
Parameters:
qos -
Returns:

get_default_datareader_qos

public void get_default_datareader_qos(DataReaderQosHolder qos)
Parameters:
qos -

copy_from_topic_qos

public int copy_from_topic_qos(DataReaderQosHolder a_datareader_qos,
                               TopicQos a_topic_qos)
Parameters:
a_datareader_qos -
a_topic_qos -
Returns:

enable

public int enable()
Not Implemented

Returns:

get_statuscondition

public StatusCondition get_statuscondition()
Not Implemented

Returns:

get_status_changes

public int get_status_changes()
Not Implemented

Returns:

isDeletable

public boolean isDeletable()
Not Implemented

Returns:

getVector_DataReaders

public Vector getVector_DataReaders()
Returns:
Returns the vector_DataReaders.

add

public boolean add(DataReader DR)
Parameters:
arg0 -
Returns:

remove

public boolean remove(DataReader DR)
Parameters:
arg0 -
Returns:

getDP_Parent

public DomainParticipant getDP_Parent()
Returns:
Returns the dP_Parent.

setORB

public void setORB(ORB orb)
Parameters:
orb - The orb to set.

setPOA

public void setPOA(POA poa)
Parameters:
poa - The poa to set.

getInstance

public Object getInstance()
Returns:
Returns the instance.

setInstance

public void setInstance(Object instance)
Parameters:
instance - The instance to set.


Copyright © 2015 JacORB. All rights reserved.