Package org.jets3t.service.model.LifecycleConfig

Examples of org.jets3t.service.model.LifecycleConfig.Transition


        }

        // Transition/Expiration section

        public void startTransition() {
            latestTimeEvent = config.new Transition();
            latestRule.setTransition(((Transition)latestTimeEvent));
        }
View Full Code Here


            rule = config.getRules().get(0);
            assertNull(rule.getExpiration().getDays());
            assertEquals(sdf.parse("2020-01-01+0000"), rule.getExpiration().getDate());

            // Add Transition by Date
            Transition transition = rule.newTransition()// Default's to GLACIER storage class
            transition.setDate(sdf.parse("2016-01-01+0000"));
            s3Service.setLifecycleConfig(bucketName, config);
            config = s3Service.getLifecycleConfig(bucketName);
            rule = config.getRules().get(0);
            assertEquals(sdf.parse("2016-01-01+0000"), rule.getTransition().getDate());
            assertNull(rule.getTransition().getDays());
View Full Code Here

TOP

Related Classes of org.jets3t.service.model.LifecycleConfig.Transition

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.