public class DiscoveredData extends Object
Modifier and Type | Field and Description |
---|---|
protected Guid |
key |
protected QualityOfService |
qos |
protected String |
topicName |
protected String |
typeName |
Modifier | Constructor and Description |
---|---|
protected |
DiscoveredData()
This constructor is used when DiscoveredData is being created from
RTPSByteBuffer
|
protected |
DiscoveredData(String typeName,
String topicName,
Guid key,
QualityOfService qos)
This constructor is used when DiscoveredData is being created from
scratch
|
Modifier and Type | Method and Description |
---|---|
protected void |
addParameter(Parameter param)
Adds a Parameter that was not handled by subclass.
|
protected void |
addQosPolicy(QosPolicy<?> policy)
Adds a QosPolicy.
|
Guid |
getBuiltinTopicKey()
Gets the Guid of the entity represented by this DiscoveredData.
|
Set<QosPolicy<?>> |
getInlineableQosPolicies()
Get inlineable Qos policies.
|
Parameter |
getParameter(ParameterId id)
Gets the Parameter with given ParameterEnum
|
List<Parameter> |
getParameters()
Gets all the parameters that were received during discovery.
|
QualityOfService |
getQualityOfService()
Gets the QualityOfService of this DiscoveredData.
|
String |
getTopicName()
Get the topic name that is associated with this DiscoveredData.
|
String |
getTypeName()
Get the type name that is associated with this DiscoveresData.
|
protected void |
resolveInconsistencies()
This method must be called after all the Parameters have been read from
the stream to resolve possible inconsistent policies.
|
String |
toString() |
protected QualityOfService qos
protected String typeName
protected String topicName
protected Guid key
protected DiscoveredData()
protected DiscoveredData(String typeName, String topicName, Guid key, QualityOfService qos)
typeName
- Type name of the datatopicName
- name of the topickey
- guid of the remote entity, which acts as a key for topicqos
- QualityOfService of discovered entityprotected void resolveInconsistencies() throws InconsistentPolicy
InconsistentPolicy
- if discovered data would contain inconsistent policies.protected void addParameter(Parameter param)
param
- Parameterpublic List<Parameter> getParameters()
public String getTypeName()
public String getTopicName()
public Guid getBuiltinTopicKey()
public QualityOfService getQualityOfService()
public Parameter getParameter(ParameterId id)
id
- Id of the Parameterprotected void addQosPolicy(QosPolicy<?> policy)
policy
- QosPolicy to addpublic Set<QosPolicy<?>> getInlineableQosPolicies()
Data.getInlineQos()
,
InlineQoS
Copyright © 2016. All rights reserved.