Package com.elastisys.scale.cloudadapers.api.types

Examples of com.elastisys.scale.cloudadapers.api.types.MachineState


  @Override
  public Machine apply(Instance instance) {
    Preconditions.checkArgument(instance != null, "received null instance");

    String id = instance.getInstanceId();
    MachineState state = new InstanceStateToMachineState().apply(instance
        .getState());
    DateTime launchtime = new DateTime(instance.getLaunchTime(),
        DateTimeZone.UTC);
    List<String> publicIps = Lists.newArrayList();
    List<String> privateIps = Lists.newArrayList();
View Full Code Here


  /**
   * Converts a {@link Server} from the OpenStack API to its {@link Machine}
   * representation.
   */
  private static Machine asMachine(Server server) {
    MachineState state = convertState(server.getStatus());
    DateTime launchTime = new DateTime(server.getCreated(),
        DateTimeZone.UTC);

    List<String> publicIps = Lists.newArrayList();
    List<String> privateIps = Lists.newArrayList();
View Full Code Here

  @Override
  public Machine apply(Instance instance) {
    Preconditions.checkArgument(instance != null, "received null instance");

    String id = instance.getInstanceId();
    MachineState state = new InstanceStateToMachineState().apply(instance
        .getState());
    DateTime launchtime = new DateTime(instance.getLaunchTime(),
        DateTimeZone.UTC);
    List<String> publicIps = Lists.newArrayList();
    List<String> privateIps = Lists.newArrayList();
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapers.api.types.MachineState

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.