Package com.netflix.simianarmy.basic.janitor

Examples of com.netflix.simianarmy.basic.janitor.BasicJanitorRuleEngine


        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(
                new HashMap<String, Resource>());
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here


        }
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(
                trackedResources);
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here

            crawledResources.add(r);
        }
        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        new TestJanitorResourceTracker(new HashMap<String, Resource>()),
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(trackedResources);
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(trackedResources);

        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(resourceTracker.getResources(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(trackedResources);

        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(resourceTracker.getResources(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(
                new HashMap<String, Resource>());
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(true);
        Assert.assertEquals(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(new HashMap<String, Resource>());
        DateTime now = DateTime.now();
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new ImmediateCleanupRule(now)),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here

        TestJanitorCrawler crawler = new TestJanitorCrawler(crawledResources);
        TestJanitorResourceTracker resourceTracker = new TestJanitorResourceTracker(trackedResources);
        TestAbstractJanitor janitor = new TestAbstractJanitor(
                new TestJanitorContext(TEST_REGION,
                        new BasicJanitorRuleEngine().addRule(new IsEvenRule()),
                        crawler,
                        resourceTracker,
                        new TestMonkeyCalendar()), TestResourceType.TEST_RESOURCE_TYPE);
        janitor.setLeashed(false);
        Assert.assertEquals(
View Full Code Here

TOP

Related Classes of com.netflix.simianarmy.basic.janitor.BasicJanitorRuleEngine

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.