Interface EphemeralAgentsService

    • Method Detail

      • getEphemeralAgentsBaseConfiguration

        EphemeralAgentsConfiguration getEphemeralAgentsBaseConfiguration()
        Returns:
        ephemeral agents configuration
      • testConnection

        TestConnectionResult testConnection​(EphemeralAgentsConfiguration configuration)
        Validate ephemeral agents configuration and perform attempt to connect provider with provided settings.
        Returns:
        result of connection attempt
      • getEphemeralAgentTemplates

        @NotNull
        @NotNull List<EphemeralAgentTemplate> getEphemeralAgentTemplates()
        Gets all available Ephemeral Agent Templates.
        Returns:
        list of the configurations
      • getEphemeralAgentTemplates

        @NotNull
        @NotNull List<EphemeralAgentTemplate> getEphemeralAgentTemplates​(@Nullable
                                                                         @Nullable String filter,
                                                                         int start,
                                                                         int limit)
        Gets list of Ephemeral Agent Templates filtered. It supports pagination.
        Returns:
        list of templates
      • getEphemeralAgentTemplate

        @NotNull
        @NotNull Optional<EphemeralAgentTemplate> getEphemeralAgentTemplate​(long id)
        Gets the Ephemeral Agent Template for the requested ID if the one exist.
        Parameters:
        id - entity identifier
        Returns:
        value if the one exists, empty otherwise
      • saveEphemeralAgentTemplate

        void saveEphemeralAgentTemplate​(@NotNull
                                        @NotNull EphemeralAgentTemplate ephemeralAgentTemplate)
                                 throws TemplateValidationException,
                                        org.springframework.dao.DataIntegrityViolationException
        Saves specified Ephemeral Agent Template within the persistence layer.
        Parameters:
        ephemeralAgentTemplate - entity to save
        Throws:
        TemplateValidationException
        org.springframework.dao.DataIntegrityViolationException
      • deleteEphemeralAgentTemplate

        void deleteEphemeralAgentTemplate​(@NotNull
                                          @NotNull EphemeralAgentTemplate ephemeralAgentTemplate)
        Deletes specified Ephemeral Agent Template from the persistence layer.
        Parameters:
        ephemeralAgentTemplate - entity to delete
      • copyEphemeralAgentTemplate

        @NotNull
        @NotNull EphemeralAgentTemplate copyEphemeralAgentTemplate​(@NotNull
                                                                   @NotNull EphemeralAgentTemplate ephemeralAgentTemplate)
        Copies specified Ephemeral Agent Template and saves it within the persistence layer.
        Parameters:
        ephemeralAgentTemplate - entity to copy
        Returns:
        copy of the entity
        Since:
        9.4.0
      • isEphemeralAgentsEnabled

        boolean isEphemeralAgentsEnabled()
        Returns:
        true if ephemeral agents functionality is enabled