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
Constructors Constructor Description RestElasticInstanceServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ElasticInstanceManager elasticInstanceManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getInstanceLog(@NotNull String instanceId)
Obtain logs from an EC2 instance.
-
-
-
Constructor Detail
-
RestElasticInstanceServiceImpl
@Autowired public RestElasticInstanceServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ElasticInstanceManager elasticInstanceManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Detail
-
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
-
-