Package org.jdesktop.wonderland.modules.darkstar.api.weblib

Examples of org.jdesktop.wonderland.modules.darkstar.api.weblib.DarkstarRunner.createSnapshot()


        // use a default name based on the current data
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss.SS");
        String snapshotName = df.format(new Date());
              
        try {
            runner.createSnapshot(snapshotName);           
        } catch (RunnerException re) {
            LOGGER.warning("Error creating snapshot!");
            return Response.status(Response.Status.INTERNAL_SERVER_ERROR).cacheControl(NO_CACHE).build();
        }
       
View Full Code Here


        if (res != null) {
            return res;
        }

        try {
            runner.createSnapshot(name);
        } catch (RunnerException re) {
            throw new ServletException(re);
        }

        completeRestart(request, runner);
View Full Code Here

            if (action.equalsIgnoreCase("snapshot")) {
                if (nameParam == null) {
                    throw new RunnerException("Name is required");
                }
                dr.createSnapshot(nameParam);
            } else if (action.equalsIgnoreCase("setwfsname")) {
                if (nameParam == null) {
                    throw new RunnerException("Name is required");
                }
                dr.setWFSName(nameParam);
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.