Interface RemoteElasticInstance
-
- All Known Implementing Classes:
RemoteElasticInstanceImpl
public interface RemoteElasticInstance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Collection<com.atlassian.aws.ec2.EBSVolume>
getAttachedVolumes()
@NotNull ElasticImageConfiguration
getConfiguration()
com.atlassian.aws.ec2.RemoteEC2Instance
getInstance()
KeyStore
getKeyStore()
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 restartvoid
setAgentLoading(boolean agentLoading)
void
setRemoteAgent(long agentId)
void
start()
void
terminate()
void
triggerDelayedTermination(long delaySeconds)
Triggers delayed termination of elastic instance.
-
-
-
Method Detail
-
start
void start()
-
terminate
void terminate()
-
getState
RemoteElasticInstanceState getState()
-
getInstance
com.atlassian.aws.ec2.RemoteEC2Instance getInstance()
-
getConfiguration
@NotNull @NotNull ElasticImageConfiguration getConfiguration()
-
getRemoteAgent
long getRemoteAgent()
-
setRemoteAgent
void setRemoteAgent(long agentId)
- Parameters:
agentId
- id of correspondingElasticAgentDefinition
.
-
isShutdownable
boolean isShutdownable()
Returns true if the instance is in a state that allows shutdown. It may return true for instances that are already being shutdown in AWS.
-
isAgentLoading
boolean isAgentLoading()
-
setAgentLoading
void setAgentLoading(boolean agentLoading)
-
triggerDelayedTermination
void triggerDelayedTermination(long delaySeconds)
Triggers delayed termination of elastic instance. Termination is performed asynchronously.- Parameters:
delaySeconds
- Number of secods to wait before terminating instance.
-
interruptDelayedTermination
void interruptDelayedTermination()
Interrupts delayed termination process.
-
getAttachedVolumes
@NotNull @NotNull Collection<com.atlassian.aws.ec2.EBSVolume> getAttachedVolumes()
-
isBeingTerminated
boolean isBeingTerminated()
-
restoreInstance
void restoreInstance(ElasticAgentDefinition elasticAgentDefinition, com.amazonaws.services.ec2.model.Instance instance) throws Exception
Restore elastic agent's state after server restart- Parameters:
elasticAgentDefinition
-instance
-- Throws:
Exception
- Since:
- 5.10
-
getKeyStore
KeyStore getKeyStore()
- Returns:
- keystore associated with the instance
- Since:
- 7.2
-
-