com.atlassian.bamboo.agent.elastic.server
Interface RemoteElasticInstance

All Known Implementing Classes:
RemoteElasticInstanceImpl

public interface RemoteElasticInstance


Method Summary
 java.util.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 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
ElasticImageConfiguration getConfiguration()

getRemoteAgent

long getRemoteAgent()

setRemoteAgent

void setRemoteAgent(long agentId)
Parameters:
agentId - id of corresponding ElasticAgentDefinition.

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

@Nullable
java.util.Collection<com.atlassian.aws.ec2.EBSVolume> getAttachedVolumes()

isBeingTerminated

boolean isBeingTerminated()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.