Interface ArServiceDiscoveryService

  • All Superinterfaces:
    se.arkalix.ArConsumer
    All Known Implementing Classes:
    HttpJsonServiceDiscoveryService

    public interface ArServiceDiscoveryService
    extends se.arkalix.ArConsumer
    Represents an Arrowhead service discovery service.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      se.arkalix.util.concurrent.Future<se.arkalix.core.plugin.sr.ServiceQueryResultDto> query​(se.arkalix.core.plugin.sr.ServiceQueryDto query)
      Queries registry for certain service definitions.
      default se.arkalix.util.concurrent.Future<java.util.Collection<se.arkalix.description.ServiceDescription>> query​(se.arkalix.query.ServiceQuery query)
      Queries registry for certain service definitions.
      se.arkalix.util.concurrent.Future<?> register​(se.arkalix.core.plugin.sr.ServiceRegistrationDto registration)
      Registers a service.
      default se.arkalix.util.concurrent.Future<?> register​(se.arkalix.description.ServiceDescription serviceDescription)
      Registers a service.
      se.arkalix.util.concurrent.Future<?> unregister​(java.lang.String serviceName, java.lang.String systemName, java.lang.String hostname, int port)
      Unregisters a service that is currently registered.
      default se.arkalix.util.concurrent.Future<?> unregister​(java.lang.String serviceName, se.arkalix.ArSystem system)
      Unregisters a service that is currently registered.
      • Methods inherited from interface se.arkalix.ArConsumer

        service
    • Method Detail

      • query

        se.arkalix.util.concurrent.Future<se.arkalix.core.plugin.sr.ServiceQueryResultDto> query​(se.arkalix.core.plugin.sr.ServiceQueryDto query)
        Queries registry for certain service definitions.
        Parameters:
        query - Description of what service definitions are desired.
        Returns:
        Future completed with the results of the query, if no errors occurred.
      • query

        default se.arkalix.util.concurrent.Future<java.util.Collection<se.arkalix.description.ServiceDescription>> query​(se.arkalix.query.ServiceQuery query)
        Queries registry for certain service definitions.
        Parameters:
        query - Description of what service definitions are desired.
        Returns:
        Future completed with the results of the query, if no errors occurred.
      • register

        se.arkalix.util.concurrent.Future<?> register​(se.arkalix.core.plugin.sr.ServiceRegistrationDto registration)
        Registers a service.
        Parameters:
        registration - Description of service.
        Returns:
        Future completed when the registration attempt is known to have succeeded or failed.
      • register

        default se.arkalix.util.concurrent.Future<?> register​(se.arkalix.description.ServiceDescription serviceDescription)
        Registers a service.
        Parameters:
        serviceDescription - Description of service to register.
        Returns:
        Future completed when the registration attempt is known to have succeeded or failed.
      • unregister

        se.arkalix.util.concurrent.Future<?> unregister​(java.lang.String serviceName,
                                                        java.lang.String systemName,
                                                        java.lang.String hostname,
                                                        int port)
        Unregisters a service that is currently registered.
        Parameters:
        serviceName - Name of service of existing entry.
        systemName - Name of system of existing entry.
        hostname - Address/hostname of existing entry.
        port - Port number of existing entry.
        Returns:
        Future completed when unregistration is known to have succeeded or failed.
      • unregister

        default se.arkalix.util.concurrent.Future<?> unregister​(java.lang.String serviceName,
                                                                se.arkalix.ArSystem system)
        Unregisters a service that is currently registered.
        Parameters:
        serviceName - Name of service of existing entry.
        system - System of existing entry.
        Returns:
        Future completed when unregistration is known to have succeeded or failed.