public class OutPortSHMConsumer extends CorbaConsumer<PortSharedMemory> implements OutPortConsumer, ObjectCreator<OutPortConsumer>, ObjectDestructor
This is an implementation class of the output Consumer that uses CORBA for means of communication.
m_sev, m_varm_objref| Constructor and Description | 
|---|
OutPortSHMConsumer()
 Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected ReturnCode | 
convertReturn(PortStatus status)
 Return codes conversion 
 | 
OutPortConsumer | 
creator_()
 Creats OutPortSHMConsumer 
 | 
void | 
destructor_(java.lang.Object obj)
 Destructs Object 
 | 
ReturnCode | 
get(org.omg.CORBA.portable.OutputStream data)
 Reads data 
 | 
void | 
init(Properties prop)
 Initializing configuration 
 | 
static void | 
OutPortSHMConsumerInit()
 Module initialization 
 | 
void | 
setBuffer(BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
 Setting outside buffer's pointer 
 | 
void | 
setConnector(InPortConnector connector)
 set Connector 
 | 
void | 
setListener(ConnectorBase.ConnectorInfo info,
           ConnectorListeners listeners)
 Set the listener. 
 | 
boolean | 
setObject(org.omg.CORBA.Object obj)
CORBAオブジェクトを設定します。 
 | 
boolean | 
subscribeInterface(NVListHolder properties)
 Subscribe the data receive notification 
 | 
void | 
unsubscribeInterface(NVListHolder properties)
 Unsubscribe the data receive notification 
 | 
_ptr, releaseObjectgetObjectpublic void init(Properties prop)
This operation would be called to configure in initialization. In the concrete class, configuration should be performed getting appropriate information from the given Properties data. This function might be called right after instantiation and connection sequence respectivly. Therefore, this function should be implemented assuming multiple call.
init in interface OutPortConsumerprop - 
   Configuration informationpublic boolean setObject(org.omg.CORBA.Object obj)
CORBAオブジェクトを設定します。
setObject in class CorbaConsumer<PortSharedMemory>obj - CORBAオブジェクトpublic void setBuffer(BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
A pointer to a buffer from which OutPortProvider retrieve data. If already buffer is set, previous buffer's pointer will be overwritten by the given pointer to a buffer. Since OutPortProvider does not assume ownership of the buffer pointer, destructor of the buffer should be done by user.
setBuffer in interface OutPortConsumerbuffer - 
   A pointer to a data buffer to be used by OutPortProviderpublic void setListener(ConnectorBase.ConnectorInfo info, ConnectorListeners listeners)
OutPort provides callback functionality that calls specific listener objects according to the events in the data publishing process. For details, see documentation of ConnectorDataListener class and ConnectorListener class in ConnectorListener.h. In this OutPortSHMProvider provides the following callbacks.
setListener in interface OutPortConsumerinfo - 
   Connector informationlisteners - 
   Listener objectspublic ReturnCode get(org.omg.CORBA.portable.OutputStream data)
Reads data set
get in interface OutPortConsumerdata - 
   Object to receive the read datapublic boolean subscribeInterface(NVListHolder properties)
Subscribe the data receive notification based on specified property information
subscribeInterface in interface OutPortConsumerproperties - 
   Subscription informationpublic void unsubscribeInterface(NVListHolder properties)
Unsubscribe the data receive notification.
unsubscribeInterface in interface OutPortConsumerproperties - 
   Unsubscription informationprotected ReturnCode convertReturn(PortStatus status)
status - 
   PortStatuspublic OutPortConsumer creator_()
creator_ in interface ObjectCreator<OutPortConsumer>public void destructor_(java.lang.Object obj)
destructor_ in interface ObjectDestructorobj - 
   The target instances for destructionpublic static void OutPortSHMConsumerInit()
This initialization function registers OutPortSHMConsumer's factory.
public void setConnector(InPortConnector connector)
setConnector in interface OutPortConsumerconnector - 
   InPortConnector