public class RTPSParticipant extends Object
| Constructor and Description |
|---|
RTPSParticipant(Guid guid,
int domainId,
int participantId,
ScheduledThreadPoolExecutor tpe,
Map<GuidPrefix,ParticipantData> discoveredParticipants,
AuthenticationPlugin aPlugin)
Creates a new participant with given domainId and participantId.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this RTPSParticipant.
|
<T> RTPSReader<T> |
createReader(EntityId eId,
String topicName,
ReaderCache<T> rCache,
QualityOfService qos)
Creates a new RTPSReader.
|
<T> RTPSWriter<T> |
createWriter(EntityId eId,
String topicName,
WriterCache<T> wCache,
QualityOfService qos)
Creates a new RTPSWriter.
|
List<Locator> |
getDiscoveryLocators()
Gets the Locators that can be used for discovery
|
Guid |
getGuid()
Gets the guid of this participant.
|
List<Locator> |
getUserdataLocators()
Gets the Locators that can be used for user data
|
void |
ignoreParticipant(GuidPrefix prefix)
Ignores messages originating from given Participant
|
void |
start()
Starts this Participant.
|
public RTPSParticipant(Guid guid, int domainId, int participantId, ScheduledThreadPoolExecutor tpe, Map<GuidPrefix,ParticipantData> discoveredParticipants, AuthenticationPlugin aPlugin)
guid - Guid, that is assigned to this participant. Every entity created by this
RTPSParticipant will share the GuidPrefix of this Guid.domainId - Domain ID of the participantparticipantId - Participant ID of this participant. If set to -1, and port number is not given
during starting of receivers, participantId will be determined based on the first
suitable network socket.tpe - threadPoolExecutordiscoveredParticipants - a Map that holds discovered participantsaPlugin - AuthenticationPluginpublic void start()
public <T> RTPSReader<T> createReader(EntityId eId, String topicName, ReaderCache<T> rCache, QualityOfService qos)
T - Type of RTPSReaderĀ eId - EntityId of the readertopicName - Name of the topicrCache - ReaderCacheqos - QualityOfServicepublic <T> RTPSWriter<T> createWriter(EntityId eId, String topicName, WriterCache<T> wCache, QualityOfService qos)
T - Type of RTPSWritereId - EntityId of the readertopicName - Name of the topicwCache - WriterCacheqos - QualityOfServicepublic void close()
public Guid getGuid()
public List<Locator> getDiscoveryLocators()
public List<Locator> getUserdataLocators()
public void ignoreParticipant(GuidPrefix prefix)
prefix - GuidPrefix of the participant to ignoreCopyright © 2016. All rights reserved.