Examples of AWSClient


Examples of com.hazelcast.aws.AWSClient

    public TcpIpJoinerOverAWS(Node node) {
        super(node);
        logger = node.getLogger(getClass());
        AwsConfig awsConfig = node.getConfig().getNetworkConfig().getJoin().getAwsConfig();
        aws = new AWSClient(awsConfig);
        if (awsConfig.getRegion() != null && awsConfig.getRegion().length() > 0) {
            aws.setEndpoint("ec2." + awsConfig.getRegion() + ".amazonaws.com");
        }
    }
View Full Code Here

Examples of com.hazelcast.aws.AWSClient

    private static final ILogger LOGGER = Logger.getLogger(AwsAddressProvider.class);
    private final AWSClient awsClient;
    private volatile Map<String, String> privateToPublic;

    AwsAddressProvider(ClientAwsConfig awsConfig) {
        awsClient = new AWSClient(awsConfig);
    }
View Full Code Here

Examples of com.hazelcast.aws.AWSClient

    private volatile Map<String, String> privateToPublic;
    private final AWSClient awsClient;
    private final boolean isInsideAws;

    public AwsAddressTranslator(ClientAwsConfig awsConfig) {
        awsClient = new AWSClient(awsConfig);
        isInsideAws = awsConfig.isInsideAws();
    }
View Full Code Here

Examples of com.hazelcast.aws.AWSClient

    public TcpIpJoinerOverAWS(Node node) {
        super(node);
        logger = node.getLogger(getClass());
        AwsConfig awsConfig = node.getConfig().getNetworkConfig().getJoin().getAwsConfig();
        aws = new AWSClient(awsConfig);
        if (awsConfig.getRegion() != null && awsConfig.getRegion().length() > 0) {
            aws.setEndpoint("ec2." + awsConfig.getRegion() + ".amazonaws.com");
        }
    }
View Full Code Here

Examples of com.hazelcast.aws.AWSClient

    private volatile Map<String, String> privateToPublic;
    private final AWSClient awsClient;
    private final boolean isInsideAws;

    public AwsAddressTranslator(ClientAwsConfig awsConfig) {
        awsClient = new AWSClient(awsConfig);
        isInsideAws = awsConfig.isInsideAws();
    }
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient

// CHECKSTYLE IGNORE MagicNumberCheck
public class TestSimpleDBRecorder extends SimpleDBRecorder {

    private static AWSClient makeMockAWSClient() {
        AmazonSimpleDB sdbMock = mock(AmazonSimpleDB.class);
        AWSClient awsClient = mock(AWSClient.class);
        when(awsClient.sdbClient()).thenReturn(sdbMock);
        when(awsClient.region()).thenReturn("region");
        return awsClient;
    }
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient

*/
public class TestVSphereContext {
    @Test
    public void shouldSetClientOfCorrectType() {
        VSphereContext context = new VSphereContext();
        AWSClient awsClient = context.awsClient();
        assertNotNull(awsClient);
        assertTrue(awsClient instanceof VSphereClient);
    }
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient

    }

    @Test
    public void testInstancesWithNullNames() {
        List<AutoScalingGroup> asgList = createASGList();
        AWSClient awsMock = createMockAWSClient(asgList);
        ASGJanitorCrawler crawler = new ASGJanitorCrawler(awsMock);
        List<Resource> resources = crawler.resources();
        verifyASGList(resources, asgList);
    }
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient

    @Test
    public void testInstancesWithNames() {
        List<AutoScalingGroup> asgList = createASGList();
        String[] asgNames = {"asg1", "asg2"};
        AWSClient awsMock = createMockAWSClient(asgList, asgNames);
        ASGJanitorCrawler crawler = new ASGJanitorCrawler(awsMock);
        List<Resource> resources = crawler.resources(asgNames);
        verifyASGList(resources, asgList);
    }
View Full Code Here

Examples of com.netflix.simianarmy.client.aws.AWSClient

    }

    @Test
    public void testInstancesWithResourceType() {
        List<AutoScalingGroup> asgList = createASGList();
        AWSClient awsMock = createMockAWSClient(asgList);
        ASGJanitorCrawler crawler = new ASGJanitorCrawler(awsMock);
        for (AWSResourceType resourceType : AWSResourceType.values()) {
            List<Resource> resources = crawler.resources(resourceType);
            if (resourceType == AWSResourceType.ASG) {
                verifyASGList(resources, asgList);
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.