Interface RemoteElasticInstance
- All Known Implementing Classes:
RemoteElasticInstanceImpl
public interface RemoteElasticInstance
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<com.atlassian.aws.ec2.EBSVolume>@NotNull ElasticImageConfigurationcom.atlassian.aws.ec2.RemoteEC2InstancelonggetState()voidInterrupts delayed termination process.booleanbooleanbooleanReturns true if the instance is in a state that allows shutdown.voidrestoreInstance(ElasticAgentDefinition elasticAgentDefinition, com.amazonaws.services.ec2.model.Instance instance) Restore elastic agent's state after server restartvoidsetAgentLoading(boolean agentLoading) voidsetRemoteAgent(long agentId) voidstart()voidvoidtriggerDelayedTermination(long delaySeconds) Triggers delayed termination of elastic instance.
-
Method Details
-
start
void start() -
terminate
void terminate() -
getState
RemoteElasticInstanceState getState() -
getInstance
com.atlassian.aws.ec2.RemoteEC2Instance getInstance() -
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
-
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
-