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 ElasticImageConfigurationgetConfiguration()com.atlassian.aws.ec2.RemoteEC2InstancegetInstance()KeyStoregetKeyStore()longgetRemoteAgent()RemoteElasticInstanceStategetState()voidinterruptDelayedTermination()Interrupts delayed termination process.booleanisAgentLoading()booleanisBeingTerminated()booleanisShutdownable()Returns 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()voidterminate()voidtriggerDelayedTermination(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
-
-