Class Server

java.lang.Object
org.jclouds.elasticstack.domain.Item
org.jclouds.elasticstack.domain.Server
Direct Known Subclasses:
ServerInfo

public class Server extends Item
  • Field Details

    • cpu

      protected final int cpu
    • smp

      protected final Integer smp
    • mem

      protected final int mem
    • persistent

      protected final boolean persistent
    • devices

      @Nullable protected final Map<String,? extends Device> devices
    • bootDeviceIds

      protected final Set<String> bootDeviceIds
    • nics

      protected final List<NIC> nics
    • vnc

      protected final VNC vnc
  • Constructor Details

  • Method Details

    • 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:
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Item