Package org.nimbustools.api.repr.vm

Examples of org.nimbustools.api.repr.vm.Schedule


            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


        if (vm == null) {
            throw new CannotTranslateException("vm is missing");
        }

        final Schedule schedule = vm.getSchedule();
        if (schedule == null) {
            throw new CannotTranslateException("schedule is missing");
        }

        return schedule.getStartTime();
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.api.repr.vm.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.