Class RestElasticInstanceServiceImpl
java.lang.Object
com.atlassian.bamboo.plugins.rest.elastic.RestElasticInstanceServiceImpl
- All Implemented Interfaces:
RestElasticInstanceService
@Component
public class RestElasticInstanceServiceImpl
extends Object
implements RestElasticInstanceService
Provides services and operations related to EC2 instances
-
Constructor Summary
ConstructorDescriptionRestElasticInstanceServiceImpl
(AdministrationConfigurationAccessor administrationConfigurationAccessor, ElasticInstanceManager elasticInstanceManager, com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getInstanceLog
(@NotNull String instanceId) Obtain logs from an EC2 instance.
-
Constructor Details
-
RestElasticInstanceServiceImpl
@Inject public RestElasticInstanceServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ElasticInstanceManager elasticInstanceManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Details
-
getInstanceLog
@NotNull public @NotNull String getInstanceLog(@NotNull @NotNull String instanceId) throws WebValidationException, NotFoundException Description copied from interface:RestElasticInstanceService
Obtain logs from an EC2 instance.- Specified by:
getInstanceLog
in interfaceRestElasticInstanceService
- Parameters:
instanceId
- id of the instance- Returns:
- instance logs, empty string will be returned if there were no logs to fetch
- Throws:
WebValidationException
NotFoundException
-