Package com.elastisys.scale.cloudadapters.commons.termqueue

Examples of com.elastisys.scale.cloudadapters.commons.termqueue.ScheduledTermination


        "cannot schedule termination for a "
            + "machine instance without launch time");

    DateTime terminationTime = calculateTerminationTime(victim,
        this.instanceHourMargin);
    return new ScheduledTermination(victim, terminationTime);
  }
View Full Code Here


    // to not yet incur cost). Terminate them immediately.
    Iterable<Machine> inRequestedState = filter(candidates,
        withState(REQUESTED));
    Iterator<Machine> requestedStateMachines = inRequestedState.iterator();
    while ((excessMachines > 0) && requestedStateMachines.hasNext()) {
      toTerminate.add(new ScheduledTermination(requestedStateMachines
          .next(), now()));
      excessMachines--;
    }

    // use victim selection policy to pick victims from any remaining
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.commons.termqueue.ScheduledTermination

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.