public class MockRemoteEC2Instance extends Object implements com.atlassian.aws.ec2.RemoteEC2Instance
Constructor and Description |
---|
MockRemoteEC2Instance() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String key,
String value) |
void |
asyncTerminate() |
com.atlassian.aws.ec2.InstanceLaunchConfiguration |
getInstanceConfiguration() |
String |
getInstanceId() |
com.atlassian.aws.ec2.InstanceStatus |
getInstanceStatus() |
boolean |
isBeingTerminated() |
void |
reconnectToRunningInstance(com.amazonaws.services.ec2.model.Instance instance) |
void |
start() |
public String getInstanceId()
getInstanceId
in interface com.atlassian.aws.ec2.EC2Instance
getInstanceId
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public void asyncTerminate()
asyncTerminate
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public boolean isBeingTerminated()
isBeingTerminated
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public void start()
start
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public void addTag(String key, String value)
addTag
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public com.atlassian.aws.ec2.InstanceStatus getInstanceStatus()
getInstanceStatus
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public com.atlassian.aws.ec2.InstanceLaunchConfiguration getInstanceConfiguration()
getInstanceConfiguration
in interface com.atlassian.aws.ec2.RemoteEC2Instance
public void reconnectToRunningInstance(@NotNull com.amazonaws.services.ec2.model.Instance instance)
reconnectToRunningInstance
in interface com.atlassian.aws.ec2.RemoteEC2Instance
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.