Schnittstelle ITransportProvider


public interface ITransportProvider
Interface used by ServiceLoader to provide a transport used by DBus.
Seit:
v4.0.0 - 2021-09-05
Autor:
hypfvieh
  • Methodendetails

    • getTransportName

      String getTransportName()
      Name of the transport implementation.
      Gibt zurück:
      String, should not be null or empty
    • createTransport

      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, null should be returned. If initialization fails because of any other error, throw a TransportConfigurationException.

      Parameter:
      _address - bus address
      _config - configuration for this transport
      Gibt zurück:
      transport instance or null
      Löst aus:
      TransformerConfigurationException - when configuring transport fails
      TransportConfigurationException
    • createTransport

      @Deprecated(since="4.2.0 - 2022-07-21", forRemoval=true) default AbstractTransport createTransport(BusAddress _address, int _timeout) throws TransportConfigurationException
      Veraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.
      just used for compatibility will be removed in the future. Please use createTransport(BusAddress, TransportConfig).
      Creates a new instance of this transport service using the given bus address and timeout. This method is only implemented for compatibility to older transports. It will be removed in the future. Please use createTransport(BusAddress, TransportConfig) instead.
      Parameter:
      _address - bus address
      _timeout - timeout to use (if supported)
      Gibt zurück:
      transport instance or null
      Löst aus:
      TransformerConfigurationException - when configuring transport fails
      TransportConfigurationException
    • 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).
      Gibt zurück:
      String, never null
    • createDynamicSessionAddress

      String createDynamicSessionAddress(boolean _listeningSocket)
      Creates a new (dynamic) session for this transport.
      Parameter:
      _listeningSocket - true when listening address should be created
      Gibt zurück:
      String containing bus address