@Override public Hardware apply(ServiceOffering offering) { return new HardwareBuilder() .ids(offering.getId() + "") .name(offering.getName()) .tags(offering.getTags()) .processors(ImmutableList.of(new Processor(offering.getCpuNumber(), offering.getCpuSpeed()))) .ram(offering.getMemory())// // TODO: hypervisor probably from zone? // TODO .volumes() // displayText // created // haSupport // storageType // TODO where's the location of this? .build(); }
@Override public Hardware apply(ServiceOffering offering) { return new HardwareBuilder() .ids(offering.getId() + "") .name(offering.getName()) .tags(offering.getTags()) .processors(ImmutableList.of(new Processor(offering.getCpuNumber(), offering.getCpuSpeed()))) .ram(offering.getMemory())// // TODO: hypervisor probably from zone? // TODO .volumes() // displayText // created // haSupport // storageType // TODO where's the location of this? .build(); }
@Override public Hardware apply(ServiceOffering offering) { return new HardwareBuilder() .ids(offering.getId() + "") .name(offering.getName()) .tags(offering.getTags()) .processors(ImmutableList.of(new Processor(offering.getCpuNumber(), offering.getCpuSpeed()))) .ram(offering.getMemory())// // TODO: hypervisor probably from zone? // TODO .volumes() // displayText // created // haSupport // storageType // TODO where's the location of this? .build(); }
@SuppressWarnings("unchecked") public static HardwareBuilder fromHardware(Hardware in) { return new HardwareBuilder().id(in.getId()).providerId(in.getProviderId()).location(in.getLocation()).name( in.getName()).uri(in.getUri()).userMetadata(in.getUserMetadata()).tags(in.getTags()).processors( List.class.cast(in.getProcessors())).ram(in.getRam()).volumes(List.class.cast(in.getVolumes())) .supportsImage(in.supportsImage()).hypervisor(in.getHypervisor()); } }
@SuppressWarnings("unchecked") public static HardwareBuilder fromHardware(Hardware in) { return new HardwareBuilder().id(in.getId()).providerId(in.getProviderId()).location(in.getLocation()).name( in.getName()).uri(in.getUri()).userMetadata(in.getUserMetadata()).tags(in.getTags()).processors( List.class.cast(in.getProcessors())).ram(in.getRam()).volumes(List.class.cast(in.getVolumes())) .supportsImage(in.supportsImage()).hypervisor(in.getHypervisor()); } }
@SuppressWarnings("unchecked") public static HardwareBuilder fromHardware(Hardware in) { return new HardwareBuilder().id(in.getId()).providerId(in.getProviderId()).location(in.getLocation()).name( in.getName()).uri(in.getUri()).userMetadata(in.getUserMetadata()).tags(in.getTags()).processors( List.class.cast(in.getProcessors())).ram(in.getRam()).volumes(List.class.cast(in.getVolumes())) .supportsImage(in.supportsImage()).hypervisor(in.getHypervisor()); } }
@SuppressWarnings("unchecked") public static HardwareBuilder fromHardware(Hardware in) { return new HardwareBuilder().id(in.getId()).providerId(in.getProviderId()).location(in.getLocation()).name( in.getName()).uri(in.getUri()).userMetadata(in.getUserMetadata()).tags(in.getTags()).processors( List.class.cast(in.getProcessors())).ram(in.getRam()).volumes(List.class.cast(in.getVolumes())) .supportsImage(in.supportsImage()).hypervisor(in.getHypervisor()); } }