public ServerInfo(String uuid, String name, int cpu, Integer smp, int mem, boolean persistent, Map<String, ? extends Device> devices, Iterable<String> bootDeviceIds, Iterable<String> use, Iterable<NIC> nics, VNC vnc, String description, ServerStatus status, Date started, String user, @Nullable ServerMetrics metrics) { super(uuid, name, cpu, smp, mem, persistent, devices, bootDeviceIds, use, nics, vnc, description); this.status = status; this.started = started; this.user = user; this.metrics = metrics; }
/** * @return user generated name. The name of the virtual machine is returned * if no displayname exists. */ @Nullable public String getDisplayName() { return this.displayName; }
/** * @return the name of the domain in which the virtual machine exists */ @Nullable public String getDomain() { return this.domain; }
/** * @return the name of the ISO attached to the virtual machine */ @Nullable public String getISOName() { return this.ISOName; }
/** * @return device type of the root volume */ @Nullable public String getRootDeviceType() { return this.rootDeviceType; }
/** * @return the device name (e.g. "/dev/vdc") */ @Nullable public String getDevice() { return this.device; }
/** * * @return either 'exclusive' (the default) or 'shared' to allow multiple servers to access a * drive simultaneously */ @Nullable public ClaimType getClaimType() { return claimType; }
/** * @return the name of the account */ @Nullable public String getName() { return this.name; }
/** * @return the total volume available for this account, or null if unlimited */ @Nullable public Long getVolumesAvailable() { return this.volumesAvailable; }
/** * @return the total volume which can be used by this account, or null if * unlimited */ @Nullable public Long getVolumeLimit() { return this.volumeLimit; }
/** * Update the metadata for an image. * * @param id * id of the image * @param metadata * a Map containing the metadata * @return the value or null if not present */ @Nullable String getMetadata(String id, String key);
/** * @return Domain name for the Vms in the zone */ @Nullable public String getDomain() { return this.domain; }
/** * @return CPU usage information */ @Nullable public ResourceStatus getCpu() { return this.cpu; }
/** * @return details of disk usage and limits */ @Nullable public ResourceStatus getDisk() { return this.disk; }
/** * @return the uptime of the server */ @Nullable public ServerUptime getUptime() { return this.uptime; }
/** * @return the data the snapshot was taken */ @Nullable public Date getCreated() { return this.created; }
/** * @return the name of this volume - as displayed in the openstack console */ @Nullable public String getName() { return this.name; }
/** * @return the device name (e.g. "/dev/vdc") */ @Nullable public String getDevice() { return this.device; }
/** * The Cloud Servers provisioning algorithm has an anti-affinity property that attempts to spread * out customer VMs across hosts. Under certain situations, VMs from the same customer may be * placed on the same host. hostId represents the host your cloud server runs on and can be used * to determine this scenario if it's relevant to your application. * <p/> * Note: hostId is unique PER ACCOUNT and is not globally unique. */ @Nullable public String getHostId() { return this.hostId; }
/** * * @return metrics, if the server is running, or null */ @Nullable public ServerMetrics getMetrics() { return metrics; }