Examples of DeploymentTime_Type


Examples of org.nimbustools.messaging.gt4_0.generated.negotiable.DeploymentTime_Type

                throw new ParameterProblem(
                    "initial state in deployment request is unrecognized?");
            }
        }

        final DeploymentTime_Type time = this.req.getDeploymentTime();
        if (time == null) {
            throw new ParameterProblem("no DeploymentTime_Type in request?");
        }

        final Duration minDuration = time.getMinDuration();
        if (minDuration == null) {
            throw new ParameterProblem("no minDuration in request?");
        }

        try {
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.negotiable.DeploymentTime_Type

        // this might be incorrect information already, but it is the initial
        // state of all workspaces
        workspace.setCurrentState(new State(State.STATE_Unstaged));

        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);
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.negotiable.DeploymentTime_Type

    public static DeploymentTime_Type constructDeploymentTime_Type(int durationMinutes) {

        final Duration dur = new Duration();
        dur.setMinutes(durationMinutes);
        return new DeploymentTime_Type(dur);
    }
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.