Interface ITransportProvider
public interface ITransportProvider
Interface used by
ServiceLoader to provide a transport used by DBus.- Since:
- v4.0.0 - 2021-09-05
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptioncreateDynamicSessionAddress(boolean _listeningSocket) Creates a new (dynamic) session for this transport.createTransport(BusAddress _address, TransportConfig _config) Creates a new instance of this transport service using the given bus address.Type of transport.Name of the transport implementation.
-
Method Details
-
getTransportName
String getTransportName()Name of the transport implementation.- Returns:
- String, should not be null or empty
-
createTransport
AbstractTransport createTransport(BusAddress _address, TransportConfig _config) throws TransportConfigurationException Creates a new instance of this transport service using the given bus address.If transport cannot be created because bus address type is not supported,
nullshould be returned. If initialization fails because of any other error, throw aTransportConfigurationException.- Parameters:
_address- bus address_config- configuration for this transport- Returns:
- transport instance or null
- Throws:
TransformerConfigurationException- when configuring transport failsTransportConfigurationException
-
getSupportedBusType
String getSupportedBusType()Type of transport. Should return an identifier for the supported socket type (e.g. UNIX for unix socket, TCP for tcp sockets).- Returns:
- String, never null
-
createDynamicSessionAddress
Creates a new (dynamic) session for this transport.- Parameters:
_listeningSocket- true when listening address should be created- Returns:
- String containing bus address
-