public interface RemoteElasticInstance
Modifier and Type | Method and Description |
---|---|
Collection<com.atlassian.aws.ec2.EBSVolume> |
getAttachedVolumes() |
ElasticImageConfiguration |
getConfiguration() |
com.atlassian.aws.ec2.RemoteEC2Instance |
getInstance() |
long |
getRemoteAgent() |
RemoteElasticInstanceState |
getState() |
void |
interruptDelayedTermination()
Interrupts delayed termination process.
|
boolean |
isAgentLoading() |
boolean |
isBeingTerminated() |
boolean |
isShutdownable()
Returns true if the instance is in a state that allows shutdown.
|
void |
restoreInstance(ElasticAgentDefinition elasticAgentDefinition,
com.amazonaws.services.ec2.model.Instance instance)
Restore elastic agent's state after server restart
|
void |
setAgentLoading(boolean agentLoading) |
void |
setRemoteAgent(long agentId) |
void |
start() |
void |
terminate() |
void |
triggerDelayedTermination(long delaySeconds)
Triggers delayed termination of elastic instance.
|
void start()
void terminate()
RemoteElasticInstanceState getState()
com.atlassian.aws.ec2.RemoteEC2Instance getInstance()
@NotNull ElasticImageConfiguration getConfiguration()
long getRemoteAgent()
void setRemoteAgent(long agentId)
agentId
- id of corresponding ElasticAgentDefinition
.boolean isShutdownable()
boolean isAgentLoading()
void setAgentLoading(boolean agentLoading)
void triggerDelayedTermination(long delaySeconds)
delaySeconds
- Number of secods to wait before terminating instance.void interruptDelayedTermination()
@NotNull Collection<com.atlassian.aws.ec2.EBSVolume> getAttachedVolumes()
boolean isBeingTerminated()
void restoreInstance(ElasticAgentDefinition elasticAgentDefinition, com.amazonaws.services.ec2.model.Instance instance) throws Exception
elasticAgentDefinition
- instance
- Exception
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.