Package com.netflix.simianarmy.chaos.ChaosCrawler

Examples of com.netflix.simianarmy.chaos.ChaosCrawler.InstanceGroup


     * Returns the lastOptInTimeInMilliseconds parameter for a group omitting the
     * randomly generated suffix.
     */
    @Override
    protected long getLastOptInMilliseconds(InstanceGroup group) {
        InstanceGroup noSuffixGroup = noSuffixInstanceGroup(group);
        return super.getLastOptInMilliseconds(noSuffixGroup);
    }
View Full Code Here


    /**
     * Handle email notifications for no suffix instance groups.
     */
    @Override
    public void sendTerminationNotification(InstanceGroup group, String instance, ChaosType chaosType) {
        InstanceGroup noSuffixGroup = noSuffixInstanceGroup(group);
        super.sendTerminationNotification(noSuffixGroup, instance, chaosType);
    }
View Full Code Here

     * Return a copy of the instance group removing the randomly generated suffix from
     * its name.
     */
    public InstanceGroup noSuffixInstanceGroup(InstanceGroup group) {
        String newName = group.name().replaceAll("(-)([^-]*$)", "");
        InstanceGroup noSuffixGroup = group.copyAs(newName);
        return noSuffixGroup;
    }
View Full Code Here

            LOGGER.info(msg);
            throw new FeatureNotEnabledException(msg);
        }
        String prop = NS + "terminateOndemand.enabled";
        if (cfg.getBool(prop)) {
            InstanceGroup group = findInstanceGroup(type, name);
            if (group == null) {
                throw new InstanceGroupNotFoundException(type, name);
            }
            Collection<String> instances = context().chaosInstanceSelector().select(group, 1.0);
            Validate.isTrue(instances.size() <= 1);
View Full Code Here

TOP

Related Classes of com.netflix.simianarmy.chaos.ChaosCrawler.InstanceGroup

Copyright © 2018 www.massapicom. 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.