Class MockRemoteEC2Instance

java.lang.Object
it.com.atlassian.bamboo.agent.elastic.mocks.MockRemoteEC2Instance
All Implemented Interfaces:
com.atlassian.aws.ec2.EC2Instance, com.atlassian.aws.ec2.RemoteEC2Instance

public class MockRemoteEC2Instance extends Object implements com.atlassian.aws.ec2.RemoteEC2Instance
  • Constructor Details

    • MockRemoteEC2Instance

      public MockRemoteEC2Instance()
  • Method Details

    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface com.atlassian.aws.ec2.EC2Instance
      Specified by:
      getInstanceId in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • asyncTerminate

      public void asyncTerminate()
      Specified by:
      asyncTerminate in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • isBeingTerminated

      public boolean isBeingTerminated()
      Specified by:
      isBeingTerminated in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • start

      public void start()
      Specified by:
      start in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • addTag

      public void addTag(String key, String value)
      Specified by:
      addTag in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • getInstanceStatus

      public com.atlassian.aws.ec2.InstanceStatus getInstanceStatus()
      Specified by:
      getInstanceStatus in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • getInstanceConfiguration

      public com.atlassian.aws.ec2.InstanceLaunchConfiguration getInstanceConfiguration()
      Specified by:
      getInstanceConfiguration in interface com.atlassian.aws.ec2.RemoteEC2Instance
    • reconnectToRunningInstance

      public void reconnectToRunningInstance(@NotNull @NotNull com.amazonaws.services.ec2.model.Instance instance)
      Specified by:
      reconnectToRunningInstance in interface com.atlassian.aws.ec2.RemoteEC2Instance