Search in sources :

Example 1 with SimpleWorkerProvisioningConfig

use of org.apache.druid.indexing.overlord.autoscaling.SimpleWorkerProvisioningConfig in project druid by druid-io.

the class EC2AutoScalerTest method setUp.

@Before
public void setUp() {
    amazonEC2Client = EasyMock.createMock(AmazonEC2Client.class);
    describeInstancesResult = EasyMock.createMock(DescribeInstancesResult.class);
    reservation = EasyMock.createMock(Reservation.class);
    instance = new Instance().withInstanceId(INSTANCE_ID).withLaunchTime(new Date()).withImageId(AMI_ID).withPrivateIpAddress(IP);
    managementConfig = new SimpleWorkerProvisioningConfig().setWorkerPort(8080).setWorkerVersion("");
}
Also used : AmazonEC2Client(com.amazonaws.services.ec2.AmazonEC2Client) DescribeInstancesResult(com.amazonaws.services.ec2.model.DescribeInstancesResult) Reservation(com.amazonaws.services.ec2.model.Reservation) Instance(com.amazonaws.services.ec2.model.Instance) SimpleWorkerProvisioningConfig(org.apache.druid.indexing.overlord.autoscaling.SimpleWorkerProvisioningConfig) Date(java.util.Date) Before(org.junit.Before)

Aggregations

AmazonEC2Client (com.amazonaws.services.ec2.AmazonEC2Client)1 DescribeInstancesResult (com.amazonaws.services.ec2.model.DescribeInstancesResult)1 Instance (com.amazonaws.services.ec2.model.Instance)1 Reservation (com.amazonaws.services.ec2.model.Reservation)1 Date (java.util.Date)1 SimpleWorkerProvisioningConfig (org.apache.druid.indexing.overlord.autoscaling.SimpleWorkerProvisioningConfig)1 Before (org.junit.Before)1