if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKernelId() != null) sb.append("KernelId: ").append(getKernelId()).append(","); if (getKeyName() != null) sb.append("KeyName: ").append(getKeyName()).append(",");
hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode()); hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode()); hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());
if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getKernelId() == null ^ this.getKernelId() == null) return false; if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false) return false; if (other.getKeyName() == null ^ this.getKeyName() == null)
if (getLaunchTime() != null) sb.append("LaunchTime: " + getLaunchTime() + ","); if (getPlacement() != null) sb.append("Placement: " + getPlacement() + ","); if (getKernelId() != null) sb.append("KernelId: " + getKernelId() + ","); if (getRamdiskId() != null) sb.append("RamdiskId: " + getRamdiskId() + ","); if (getPlatform() != null) sb.append("Platform: " + getPlatform() + ",");
hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode()); hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode()); hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode()); hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
if (other.getPlacement() == null ^ this.getPlacement() == null) return false; if (other.getPlacement() != null && other.getPlacement().equals(this.getPlacement()) == false) return false; if (other.getKernelId() == null ^ this.getKernelId() == null) return false; if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false) return false; if (other.getRamdiskId() == null ^ this.getRamdiskId() == null) return false; if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false) return false;
private void updateMachineInfo() throws RemoteException { if (ec2Client == null) { throw new RemoteException("No connection to EC2"); } // update the akiId and ariId with what Amazon shows Instance instance = helper.getInstanceById(instanceId, ec2Client); if (instance != null) { log.info("Verifying Kernel Id..."); log.info("Expected: " + akiId); akiId = instance.getKernelId(); log.info("Found: " + akiId); log.info("Verifying Ramdisk Id..."); log.info("Expected: " + ariId); ariId = instance.getRamdiskId(); log.info("Found: " + ariId); } }
if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKernelId() != null) sb.append("KernelId: ").append(getKernelId()).append(","); if (getKeyName() != null) sb.append("KeyName: ").append(getKeyName()).append(",");
hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode()); hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode()); hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());
protected Image createAmi(CreateAMIRequest create, Instance instance, Snapshot snapshot) { BlockDeviceMapping rootVolumeMapping = getRootVolumeMapping(instance, snapshot.getSnapshotId(), create.getRootVolume()); List<BlockDeviceMapping> mappings = newArrayList(); mappings.add(rootVolumeMapping); for (BlockDeviceMapping mapping : create.getAdditionalMappings()) { mappings.add(mapping); } RegisterImageRequest request = new RegisterImageRequest(); request.setName(create.getName().getValue()); request.setDescription(create.getDescription()); request.setArchitecture(instance.getArchitecture()); request.setRootDeviceName(instance.getRootDeviceName()); request.setKernelId(instance.getKernelId()); request.setBlockDeviceMappings(mappings); RegisterImageResult result = client.registerImage(request); String imageId = result.getImageId(); waitForAmiState(imageId, AMI_AVAILABLE_STATE, create.getTimeoutMillis()); tag(imageId, create.getName()); return getImage(imageId); }
this.vpc = instance.getVpcId(); this.platform = instance.getPlatform(); this.kernel = instance.getKernelId(); this.key = instance.getKeyName(); this.image = instance.getImageId();
if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getKernelId() == null ^ this.getKernelId() == null) return false; if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false) return false; if (other.getKeyName() == null ^ this.getKeyName() == null)