Class OrchestrationPattern


  • public class OrchestrationPattern
    extends java.lang.Object
    Describes a particular way in which orchestration rules can be queried from an orchestration service.
    • Constructor Detail

      • OrchestrationPattern

        public OrchestrationPattern()
    • Method Detail

      • isDynamic

        @Deprecated(since="0.4.2")
        public boolean isDynamic()
        Deprecated.
      • isIncludingService

        public boolean isIncludingService()
        Whether or not the specific service requested is to be included in orchestration requests. Defaults to true.
        Returns:
        true only if dynamic orchestration is to be used.
      • isIncludingService

        public OrchestrationPattern isIncludingService​(boolean isIncludingService)
        Sets whether or not the specific service requested is to be included in orchestration requests. Defaults to true.
        Parameters:
        isIncludingService - true if requested services are to be included in orchestration requests.
        Returns:
        This pattern.
      • isPlainStorePattern

        public boolean isPlainStorePattern()
        Whether or not this matches the so-called plain storage pattern, which does not include the requested services, has no provider preference and no options. The pattern will result in queries where all orchestration store rules are requested for the requesting system.
        Returns:
        true only if plain storage orchestration is to be used.
      • providers

        public java.util.List<se.arkalix.core.plugin.ServiceProviderDto> providers()
        A list of systems the querying system prefers to provide the requested service.
        Returns:
        Preferred service providers.
      • providers

        public OrchestrationPattern providers​(se.arkalix.core.plugin.ServiceProviderDto... providers)
        Sets preferred service providers.
        Parameters:
        providers - Preferred service providers.
        Returns:
        This pattern.
      • providers

        public OrchestrationPattern providers​(java.util.List<se.arkalix.core.plugin.ServiceProviderDto> providers)
        Sets preferred service providers.
        Parameters:
        providers - Preferred service providers.
        Returns:
        This pattern.
      • option

        public OrchestrationPattern option​(OrchestrationOption option,
                                           boolean value)
        Sets orchestration option.
        Parameters:
        option - Option to set.
        value - Option value.
        Returns:
        This pattern.
      • options

        public java.util.Map<OrchestrationOption,​java.lang.Boolean> options()
        A map of orchestration options.
        Returns:
        Pattern orchestration options.
      • options

        public OrchestrationPattern options​(java.util.Map<OrchestrationOption,​java.lang.Boolean> options)
        Sets orchestration options, replacing any such previously set.
        Parameters:
        options - Options to set.
        Returns:
        This pattern.
      • toQuery

        public se.arkalix.core.plugin.or.OrchestrationQueryDto toQuery​(se.arkalix.core.plugin.SystemDetailsDto requester,
                                                                       se.arkalix.query.ServiceQuery service)
        Converts this pattern into a concrete orchestration query.
        Parameters:
        requester - A description of the system making the query.
        service - The service desired by the requester.
        Returns:
        New orchestration query.