public class Configuration extends Object
Constructor and Description |
---|
Configuration()
Creates a Configuration from resource named /jrtps.properties
|
Configuration(Map<String,Object> properties)
Constructs Configuration with given properties.
|
Configuration(String resourceName)
Creates a new Configuration with given resourceName.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationPluginName() |
boolean |
getBooleanProperty(String key,
boolean defltValue)
Gets a named boolean property from configuration.
|
int |
getBufferSize() |
List<URI> |
getDiscoveryAnnounceURIs()
Gets the announce URIs for discovery
|
List<URI> |
getDiscoveryListenerURIs()
Gets the listener URIs for discovery
|
boolean |
getEntityListenerHistory()
Gets wheter or not deliver historical data to EntityListeners.
|
int |
getHeartbeatPeriod()
Protocol tuning parameter that allows the RTPS Writer to repeatedly
announce the availability of data by sending a Heartbeat Message.
|
int |
getHeartbeatResponseDelay()
Protocol tuning parameter that allows the RTPS Reader to delay the
sending of a positive or negative acknowledgment (seeSection 8.4.12.2)
|
int |
getHeartbeatSuppressionDuration()
Protocol tuning parameter that allows the RTPS Reader to ignore
HEARTBEATs that arrive 'too soon' after a previous HEARTBEAT was
received.
|
int |
getIntProperty(String key,
int defltValue)
Gets a named integer property from configuration.
|
List<URI> |
getListenerURIs()
Gets the listener URIs
|
int |
getMessageQueueSize()
Gets the size of message queue.
|
int |
getNackResponseDelay()
Protocol tuning parameter that allows the RTPS Writer to delay the
response to a request for data from a negative acknowledgment.
|
int |
getNackSuppressionDuration()
Protocol tuning parameter that allows the RTPS Writer to ignore requests
for data from negative acknowledgments that arrive 'too soon' after the
corresponding change is sent.
|
String |
getNoOpSharedSecret() |
PortNumberParameters |
getPortNumberParameters()
Gets PortNumberParamers from the configuation file.
|
String |
getProperty(String key)
Gets a property with given key.
|
String |
getProperty(String key,
String deflt)
Gets a property with given key.
|
boolean |
getPublishBuiltinEntities()
Boolean configuration option.
|
boolean |
getPushMode()
Configures the mode in which the Writer operates.
|
String |
getRTPSProtection()
Gets the protection kind used with RTPS messages,
|
int |
getSEDPDelay()
Gets the delay after announcing SPDP message for discovered participant,
and before starting to add matched readers of builtin endpoints.
|
Duration |
getSPDPResendPeriod()
Get the default SPDP announcement rate.
|
boolean |
getWriteCollectionsCoherently()
Gets whether or not udds DataWriter writes collections coherently or not.
|
boolean |
preferMulticast()
get whether or not multicast is preferred.
|
void |
setProperty(String name,
String value)
Sets the value of given configuration parameter.
|
public Configuration()
public Configuration(Map<String,Object> properties)
properties
- a Map of properties used to create Configurationpublic Configuration(String resourceName)
resourceName
- name of the resource given to Class.getResourceAsStream(String)
public boolean getPushMode()
Default value for pushMode is true
public int getHeartbeatPeriod()
public int getNackResponseDelay()
See chapter 8.4.7.1.1 for default values
public int getNackSuppressionDuration()
See chapter 8.4.7.1.1 for default values
public int getHeartbeatSuppressionDuration()
public int getHeartbeatResponseDelay()
public int getBufferSize()
public int getIntProperty(String key, int defltValue)
key
- Key of the propertydefltValue
- default value used, if property is not set, or it could not be
converted to intpublic String getProperty(String key, String deflt)
key
- key of the propertydeflt
- default value usedpublic void setProperty(String name, String value)
name
- Name of the configuration parametervalue
- Value of the parameter.public String getProperty(String key)
key
- key of the propertypublic boolean getBooleanProperty(String key, boolean defltValue)
key
- Key of the propertydefltValue
- default value used, if property is not set, or it could not be converted to booleanpublic Duration getSPDPResendPeriod()
public int getMessageQueueSize()
public boolean preferMulticast()
public boolean getPublishBuiltinEntities()
public PortNumberParameters getPortNumberParameters()
public List<URI> getDiscoveryListenerURIs()
public List<URI> getDiscoveryAnnounceURIs()
public boolean getWriteCollectionsCoherently()
public int getSEDPDelay()
public String getAuthenticationPluginName()
public String getNoOpSharedSecret()
public String getRTPSProtection()
public boolean getEntityListenerHistory()
Copyright © 2016. All rights reserved.