Package org.globus.workspace.client_core.repr

Examples of org.globus.workspace.client_core.repr.Schedule


        workspace.setEpr(anepr);
        workspace.setCurrentState(state);

        final Schedule_Type xmlSchedule = report.getSchedule();
        if (xmlSchedule != null) {
            workspace.setCurrentSchedule(new Schedule(xmlSchedule));
        }

        final VirtualNetwork_Type xmlNetwork = report.getNetworking();
        if (xmlNetwork != null) {
            workspace.setCurrentNetworking(new Networking(xmlNetwork));
View Full Code Here


                    problemStr = problemPrefix + fullProblemString;
                }
            }
        }

        final Schedule schedule = workspace.getCurrentSchedule();
        String duration = null;
        String shutdownTime = null;
        String startTime = null;
        if (problemStr == null) {
            duration = ScheduleUtils.getDurationMessage(schedule);
View Full Code Here

       
        if (workspace == null) {
            throw new IllegalArgumentException("workspace may not be null");
        }

        final Schedule current = workspace.getCurrentSchedule();
        if (current == null) {

            final String err = "No schedule to print?";
            if (pr.useThis()) {
                pr.errln(err);
View Full Code Here

        workspace.setEpr(endpoint);

        final Schedule_Type xmlSched = rpSet.getSchedule();
        if (xmlSched != null) {
            final Schedule schedule = new Schedule(xmlSched);
            workspace.setCurrentSchedule(schedule);
        }

        return workspace;
    }
View Full Code Here

                throw new ExecutionProblem(
                        "(?) no schedule in factory response");
            }

            try {
                workspace.setInitialSchedule(new Schedule(xmlSchedule));
                // this is intentionally a separate object:
                workspace.setCurrentSchedule(new Schedule(xmlSchedule));
            } catch (InvalidDurationException e) {
                throw new ExecutionProblem(
                        "(?) invalid data in factory response: " +
                                e.getMessage(), e);
            }
View Full Code Here

        if (schedule == null) {
            throw new Exception("no schedule");
        }

        return new Schedule(schedule);
    }
View Full Code Here

        workspace.setEpr(oneCurrent.getEpr());
        workspace.setDetails(oneCurrent.getDetails());

        final Schedule_Type xmlSched = oneCurrent.getSchedule();
        if (xmlSched != null) {
            final Schedule schedule = new Schedule(xmlSched);
            workspace.setCurrentSchedule(schedule);
        }

        return workspace;
    }
View Full Code Here

        }

        workspace.setEpr(allrefs[0].getEpr());

        try {
            workspace.setInitialSchedule(new Schedule(xmlSchedule));
            // this is intentionally a separate object:
            workspace.setCurrentSchedule(new Schedule(xmlSchedule));
        } catch (InvalidDurationException e) {
            throw new ExecutionProblem(
                    "(?) invalid data in factory response: " +
                            e.getMessage(), e);
        }
View Full Code Here

        try {
            final DeploymentTime_Type time = this.req.getDeploymentTime();
            final int seconds =
                    CommonUtil.durationToSeconds(time.getMinDuration());
            final Schedule schedule = new Schedule();
            schedule.setDurationSeconds(seconds);
            workspace.setRequestedSchedule(schedule);
        } catch (NullPointerException e) {
            throw new ParameterProblem(e.getMessage(), e);
        } catch (InvalidDurationException e) {
            throw new ParameterProblem(e.getMessage(), e);
View Full Code Here

                                            this.stubconf,
                                            this.pr);

                // nothing to do but log errors if they occur
                try {
                    final Schedule schedule = query.queryOnce();
                    final Workspace w = new Workspace();
                    w.setCurrentSchedule(schedule);
                    ScheduleUtils.instanceCreateResultSchedulePrint(this.pr, w);
                } catch (Throwable t) {
                    if (this.pr.enabled()) {
View Full Code Here

TOP

Related Classes of org.globus.workspace.client_core.repr.Schedule

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.