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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
com.atlassian.aws.ec2.InstanceLaunchConfiguration
com.atlassian.aws.ec2.InstanceStatus
boolean
void
reconnectToRunningInstance
(@NotNull com.amazonaws.services.ec2.model.Instance instance) void
start()
-
Constructor Details
-
MockRemoteEC2Instance
public MockRemoteEC2Instance()
-
-
Method Details
-
getInstanceId
- Specified by:
getInstanceId
in interfacecom.atlassian.aws.ec2.EC2Instance
- Specified by:
getInstanceId
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
asyncTerminate
public void asyncTerminate()- Specified by:
asyncTerminate
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
isBeingTerminated
public boolean isBeingTerminated()- Specified by:
isBeingTerminated
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
start
public void start()- Specified by:
start
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
addTag
- Specified by:
addTag
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
getInstanceStatus
public com.atlassian.aws.ec2.InstanceStatus getInstanceStatus()- Specified by:
getInstanceStatus
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
getInstanceConfiguration
public com.atlassian.aws.ec2.InstanceLaunchConfiguration getInstanceConfiguration()- Specified by:
getInstanceConfiguration
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-
reconnectToRunningInstance
public void reconnectToRunningInstance(@NotNull @NotNull com.amazonaws.services.ec2.model.Instance instance) - Specified by:
reconnectToRunningInstance
in interfacecom.atlassian.aws.ec2.RemoteEC2Instance
-