Class Server

  • Direct Known Subclasses:
    ServerInfo

    public class Server
    extends Item
    • Field Detail

      • cpu

        protected final int cpu
      • mem

        protected final int mem
      • persistent

        protected final boolean persistent
      • bootDeviceIds

        protected final Set<String> bootDeviceIds
      • nics

        protected final List<NIC> nics
      • vnc

        protected final VNC vnc
    • Method Detail

      • getCpu

        public int getCpu()
        Returns:
        CPU quota in core MHz.
      • getSmp

        public Integer getSmp()
        Returns:
        number of virtual processors or null if calculated based on cpu.
      • getMem

        public int getMem()
        Returns:
        virtual memory size in MB.
      • isPersistent

        public boolean isPersistent()
        Returns:
        'true' means that server will revert to a 'stopped' status on server stop or shutdown, rather than being destroyed automatically.
      • getDevices

        public Map<String,​? extends Device> getDevices()
        Returns:
        devices present, mapped by id
      • getBootDeviceIds

        public Set<String> getBootDeviceIds()
        Returns:
        ids of the devices to boot, e.g. ide:0:0 or ide:1:0
        See Also:
        Device.getId()
      • getNics

        public List<NIC> getNics()
      • getVnc

        public VNC getVnc()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Item
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Item