Interface EphemeralAgentsService
-
- All Known Implementing Classes:
EphemeralAgentsServiceImpl
@PublicApi public interface EphemeralAgentsService- Since:
- 9.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddOrUpdateCapability(@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.EphemeralAgentsConfigurationgetEphemeralAgentsBaseConfiguration()@NotNull Optional<EphemeralAgentTemplate>getEphemeralAgentTemplate(long id)Gets the Ephemeral Agent Template for the requested ID if the one exist.@NotNull List<EphemeralAgentTemplate>getEphemeralAgentTemplates()Gets all available Ephemeral Agent Templates.@NotNull List<EphemeralAgentTemplate>getEphemeralAgentTemplates(@Nullable String filter, int start, int limit)Gets list of Ephemeral Agent Templates filtered.booleanisEphemeralAgentsEnabled()voidremoveCapability(@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.TestConnectionResulttestConnection(EphemeralAgentsConfiguration configuration)Validate ephemeral agents configuration and perform attempt to connect provider with provided settings.
-
-
-
Method Detail
-
getEphemeralAgentsBaseConfiguration
EphemeralAgentsConfiguration getEphemeralAgentsBaseConfiguration()
- Returns:
- ephemeral agents configuration
-
saveEphemeralAgentsBaseConfiguration
void saveEphemeralAgentsBaseConfiguration(@NotNull @NotNull EphemeralAgentsConfiguration ephemeralAgentsConfiguration) throws WebValidationExceptionPersist ephemeral agents configuration.- Throws:
WebValidationException- when settings are not valid
-
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.DataIntegrityViolationExceptionSaves specified Ephemeral Agent Template within the persistence layer.- Parameters:
ephemeralAgentTemplate- entity to save- Throws:
TemplateValidationExceptionorg.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
-
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)
-
-