Examples of GalaxyEC2UserData


Examples of io.druid.indexing.overlord.setup.GalaxyEC2UserData

{
  @Test
  public void testGalaxyEC2UserDataSerde() throws IOException
  {
    final String json = "{\"env\":\"druid\",\"version\":null,\"type\":\"typical\"}";
    final GalaxyEC2UserData userData = (GalaxyEC2UserData) TestUtils.MAPPER.readValue(json, EC2UserData.class);
    Assert.assertEquals("druid", userData.getEnv());
    Assert.assertEquals("typical", userData.getType());
    Assert.assertNull(userData.getVersion());
    Assert.assertEquals("1234", userData.withVersion("1234").getVersion());
  }
View Full Code Here

Examples of io.druid.indexing.overlord.setup.GalaxyEC2UserData

        new WorkerSetupData(
            0,
            1,
            "",
            new EC2NodeData(AMI_ID, INSTANCE_ID, 1, 1, Lists.<String>newArrayList(), "foo"),
            new GalaxyEC2UserData(new DefaultObjectMapper(), "env", "version", "type")
        )
    );

    EasyMock.expect(amazonEC2Client.runInstances(EasyMock.anyObject(RunInstancesRequest.class))).andReturn(
        runInstancesResult
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.