Interface RemoteElasticInstance
- All Known Implementing Classes:
RemoteElasticInstanceImpl
public interface RemoteElasticInstance
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<com.atlassian.aws.ec2.EBSVolume>
@NotNull ElasticImageConfiguration
com.atlassian.aws.ec2.RemoteEC2Instance
long
getState()
void
Interrupts delayed termination process.boolean
boolean
boolean
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
void
triggerDelayedTermination
(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
-