Package com.sun.grid.jgdi.configuration

Examples of com.sun.grid.jgdi.configuration.Checkpoint



                try {

                    // Create a new checkpoint object which intialized with default values
                    Checkpoint ckpt = ConfigurationFactory.createCheckpointWithDefaults();
                    ckpt.setName("sample");
                    ckpt.setCkptCommand("/usr/bin/ckpt");
                    ckpt.setCkptDir("/tmp");

                    jgdi.addCheckpoint(ckpt);
                    try {
                        System.out.println("Checkpoint " + ckpt.getName() + " successfully added");
                        ckpt = jgdi.getCheckpoint(ckpt.getName());
                        ckpt.setRestCommand("/tmp/blubber");
                        jgdi.updateCheckpoint(ckpt);
                        System.out.println("Checkpoint " + ckpt.getName() + " successfully modified");
                    } finally {
                        jgdi.deleteCheckpoint(ckpt);
                        System.out.println("Checkpoint " + ckpt.getName() + " successfully deleted");
                    }

                    Thread.sleep(60000);
                } finally {
                    evc.close();
View Full Code Here


            try {
                System.out.println("Successfully connected to " + url);

                // Create a new checkpoint object which intialized with default values
                Checkpoint ckpt = ConfigurationFactory.createCheckpointWithDefaults();
                ckpt.setName("sample");
                ckpt.setCkptCommand("/usr/bin/ckpt");
                ckpt.setCkptDir("/tmp");

                jgdi.addCheckpointWithAnswer(ckpt, answers);
                for (JGDIAnswer a : answers) {
                    System.out.println(a.getText());
                }
                try {
                    ckpt = jgdi.getCheckpoint(ckpt.getName());
                    ckpt.setRestCommand("/tmp/blubber");
                    jgdi.updateCheckpointWithAnswer(ckpt, answers);
                    for (JGDIAnswer a : answers) {
                        System.out.println(a.getText());
                    }
                } finally {
                    jgdi.deleteCheckpointWithAnswer(ckpt.getName(), answers);
                    for (JGDIAnswer a : answers) {
                        System.out.println(a.getText());
                    }
                }
            } finally {
View Full Code Here

TOP

Related Classes of com.sun.grid.jgdi.configuration.Checkpoint

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.