Examples of listAttachedVolumes()


Examples of com.netflix.simianarmy.CloudClient.listAttachedVolumes()

    @Override
    public boolean canApply(ChaosInstance instance) {
        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        List<String> volumes = cloudClient.listAttachedVolumes(instanceId, false);
        if (volumes.isEmpty()) {
            LOGGER.debug("Can't apply strategy: no non-root EBS volumes");
            return false;
        }
View Full Code Here

Examples of com.netflix.simianarmy.CloudClient.listAttachedVolumes()

        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        // IDEA: We could have a strategy where we detach some of the volumes...
        boolean force = true;
        for (String volumeId : cloudClient.listAttachedVolumes(instanceId, false)) {
            cloudClient.detachVolume(instanceId, volumeId, force);
        }
    }

}
View Full Code Here

Examples of com.netflix.simianarmy.CloudClient.listAttachedVolumes()

     */
    protected boolean isRootVolumeEbs(ChaosInstance instance) {
        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        List<String> withRoot = cloudClient.listAttachedVolumes(instanceId, true);
        List<String> withoutRoot = cloudClient.listAttachedVolumes(instanceId, false);

        return (withRoot.size() != withoutRoot.size());
    }
}
View Full Code Here

Examples of com.netflix.simianarmy.CloudClient.listAttachedVolumes()

    protected boolean isRootVolumeEbs(ChaosInstance instance) {
        CloudClient cloudClient = instance.getCloudClient();
        String instanceId = instance.getInstanceId();

        List<String> withRoot = cloudClient.listAttachedVolumes(instanceId, true);
        List<String> withoutRoot = cloudClient.listAttachedVolumes(instanceId, false);

        return (withRoot.size() != withoutRoot.size());
    }
}
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.