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 isShutdownable()
           
 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()

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()


Copyright © 2010 Atlassian. All Rights Reserved.