Interface EphemeralAgentsService
- All Known Implementing Classes:
EphemeralAgentsServiceImpl
@PublicApi
public interface EphemeralAgentsService
- Since:
- 9.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateCapability(@NotNull EphemeralAgentTemplate template, @NotNull Capability capability) @NotNull EphemeralAgentTemplatecopyEphemeralAgentTemplate(@NotNull EphemeralAgentTemplate ephemeralAgentTemplate) Copies specified Ephemeral Agent Template and saves it within the persistence layer.voiddeleteEphemeralAgentTemplate(@NotNull EphemeralAgentTemplate ephemeralAgentTemplate) Deletes specified Ephemeral Agent Template from the persistence layer.@NotNull Optional<EphemeralAgentTemplate>getEphemeralAgentTemplate(long id) Gets the Ephemeral Agent Template for the requested ID if the one exist.@NotNull List<EphemeralAgentTemplate>Gets all available Ephemeral Agent Templates.@NotNull List<EphemeralAgentTemplate>getEphemeralAgentTemplates(@Nullable String filter, int start, int limit) Gets list of Ephemeral Agent Templates filtered.booleanvoidremoveCapability(@NotNull EphemeralAgentTemplate template, @NotNull String capabilityKey) voidsaveEphemeralAgentsBaseConfiguration(@NotNull EphemeralAgentsConfiguration ephemeralAgentsConfiguration) Persist ephemeral agents configuration.voidsaveEphemeralAgentTemplate(@NotNull EphemeralAgentTemplate ephemeralAgentTemplate) Saves specified Ephemeral Agent Template within the persistence layer.testConnection(EphemeralAgentsConfiguration configuration) Validate ephemeral agents configuration and perform attempt to connect provider with provided settings.
-
Method Details
-
getEphemeralAgentsBaseConfiguration
EphemeralAgentsConfiguration getEphemeralAgentsBaseConfiguration()- Returns:
- ephemeral agents configuration
-
saveEphemeralAgentsBaseConfiguration
void saveEphemeralAgentsBaseConfiguration(@NotNull @NotNull EphemeralAgentsConfiguration ephemeralAgentsConfiguration) throws WebValidationException Persist ephemeral agents configuration.- Throws:
WebValidationException- when settings are not valid
-
testConnection
Validate ephemeral agents configuration and perform attempt to connect provider with provided settings.- Returns:
- result of connection attempt
-
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
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, EphemeralAgentsService.DuplicateTemplateNameException Saves specified Ephemeral Agent Template within the persistence layer.- Parameters:
ephemeralAgentTemplate- entity to save- Throws:
TemplateValidationExceptionEphemeralAgentsService.DuplicateTemplateNameException
-
deleteEphemeralAgentTemplate
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
-
addOrUpdateCapability
void addOrUpdateCapability(@NotNull @NotNull EphemeralAgentTemplate template, @NotNull @NotNull Capability capability) throws WebValidationException - Throws:
WebValidationException
-
removeCapability
void removeCapability(@NotNull @NotNull EphemeralAgentTemplate template, @NotNull @NotNull String capabilityKey)
-