Examples of Schedule_Type


Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

        }

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

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

        }

        // length/not-null already checked
        final CreatedWorkspace_Type[] allrefs = response.getCreatedWorkspace();

        final Schedule_Type xmlSchedule = allrefs[0].getSchedule();
        if (xmlSchedule == null) {
            throw new ExecutionProblem(
                    "(?) no schedule in factory response");
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

            workspace.setCurrentNetworking(new Networking(t_network));
        }

        workspace.setEpr(endpoint);

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

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

            } catch (ParameterProblem e) {
                throw new ExecutionProblem(
                            "unexpected problem: " + e.getMessage(), e);
            }
           
            final Schedule_Type xmlSchedule = allrefs[i].getSchedule();
            if (xmlSchedule == null) {
                throw new ExecutionProblem(
                        "(?) no schedule in factory response");
            }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

            ((WorkspacePortType) this.portType).getResourceProperty(
                                        Constants_GT4_0.RP_SCHEDULE);

        final MessageElement msg = resp.get_any()[0];

        final Schedule_Type schedule = (Schedule_Type)
                ObjectDeserializer.toObject(msg, Schedule_Type.class);

        if (schedule == null) {
            throw new Exception("no schedule");
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

        }

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

Examples of org.nimbustools.messaging.gt4_0.generated.types.Schedule_Type

        if (vm == null) {
            throw new CannotTranslateException("vm may not be null");
        }

        final Schedule_Type t_sched = new Schedule_Type();

        final Schedule sched = vm.getSchedule();
        if (sched == null) {
            return t_sched; // *** EARLY RETURN ***
        }

        final int seconds = sched.getDurationSeconds();
        if (seconds > -1) {
            t_sched.setDuration(CommonUtil.secondsToDuration(seconds));
        }

        final Calendar startTime = sched.getStartTime();
        if (startTime != null) {
            t_sched.setActualInstantiationTime(startTime);
        }

        final Calendar termTime = sched.getDestructionTime();
        if (termTime != null) {
            t_sched.setActualTerminationTime(termTime);
        }

        return t_sched;
    }
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.