Examples of recorder()


Examples of com.netflix.simianarmy.TestMonkeyContext.recorder()

        // create an event 5 min ago
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.MINUTE, -5);
        BasicRecorderEvent evt = new BasicRecorderEvent(
            Enums.MONKEY, EventEnums.EVENT, "region", "test-id", cal.getTime().getTime());
        context.recorder().recordEvent(evt);

        // this time when it runs it will not run immediately since it should be scheduled for 55m from now.
        task = new FutureTask<Void>(Callables.<Void>returning(null));
        sched.start(mockMonkey, task);
        try {
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.