public abstract class DomainParticipantFactory extends Object implements DDSObject
DomainParticipant
objects. DomainParticipantFactory itself has no
factory. It is a pre-existing per-ServiceEnvironment
singleton
object that can be accessed by means of the
getInstance(ServiceEnvironment)
operation.Constructor and Description |
---|
DomainParticipantFactory() |
Modifier and Type | Method and Description |
---|---|
abstract DomainParticipant |
createParticipant()
Create a new participant in the domain with ID 0 having default QoS
and no listener.
|
abstract DomainParticipant |
createParticipant(int domainId)
This operation creates a new DomainParticipant object.
|
abstract DomainParticipant |
createParticipant(int domainId,
DomainParticipantQos qos,
DomainParticipantListener listener,
Collection<Class<? extends Status>> statuses)
This operation creates a new DomainParticipant object having default
QoS and no listener.
|
abstract DomainParticipantQos |
getDefaultParticipantQos()
This operation retrieves the default value of the DomainParticipant
QoS, that is, the QoS policies which will be used for newly created
DomainParticipant entities in the case where the QoS policies
are defaulted in the createParticipant() operation. |
static DomainParticipantFactory |
getInstance(ServiceEnvironment env)
This operation returns the per-ServiceEnvironment
DomainParticipantFactory singleton.
|
abstract DomainParticipantFactoryQos |
getQos()
This operation returns the value of the DomainParticipantFactory QoS
policies.
|
abstract DomainParticipant |
lookupParticipant(int domainId)
This operation retrieves a previously created DomainParticipant
belonging to specified domain ID.
|
abstract void |
setDefaultParticipantQos(DomainParticipantQos qos)
This operation sets a default value of the DomainParticipant QoS
policies which will be used for newly created
DomainParticipant entities in the case where the QoS policies
are defaulted in the createParticipant() operation. |
abstract void |
setQos(DomainParticipantFactoryQos qos)
This operation sets the value of the DomainParticipantFactory QoS
policies.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironment
public static DomainParticipantFactory getInstance(ServiceEnvironment env)
env
- Identifies the Service instance to which the
object will belong.public abstract DomainParticipant createParticipant()
public abstract DomainParticipant createParticipant(int domainId)
public abstract DomainParticipant createParticipant(int domainId, DomainParticipantQos qos, DomainParticipantListener listener, Collection<Class<? extends Status>> statuses)
statuses
- Of which status changes the listener should be
notified. A null collection signifies all status
changes.InconsistentPolicyException
- if the specified QoS policies
are not consistent.createParticipant()
,
createParticipant(int)
public abstract DomainParticipant lookupParticipant(int domainId)
public abstract DomainParticipantFactoryQos getQos()
setQos(DomainParticipantFactoryQos)
public abstract void setQos(DomainParticipantFactoryQos qos)
Entity
.InconsistentPolicyException
- if the resulting policies are
not self consistent; in that case, the operation will have no
effect.getQos()
public abstract DomainParticipantQos getDefaultParticipantQos()
DomainParticipant
entities in the case where the QoS policies
are defaulted in the createParticipant()
operation.
The values retrieved will match the set of values specified on the
last successful call to
setDefaultParticipantQos(DomainParticipantQos)
, or else, if
the call was never made, the default values identified by the DDS
specification.public abstract void setDefaultParticipantQos(DomainParticipantQos qos)
DomainParticipant
entities in the case where the QoS policies
are defaulted in the createParticipant()
operation.InconsistentPolicyException
- if the resulting policies are
not self consistent; in that case, the operation will have no
effect.getDefaultParticipantQos()
Copyright © 2014. All rights reserved.