Class VolumeImpl

java.lang.Object
org.jclouds.compute.domain.internal.VolumeImpl
All Implemented Interfaces:
Volume

public class VolumeImpl extends Object implements Volume
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • getId

      public String getId()
      Unique identifier. If set, can be used to reference the volume for reorganizing within Hardware or external commands such as backups.
      Specified by:
      getId in interface Volume
    • getType

      public Volume.Type getType()
      Describes the cardinal type of a volume; used to determine scope and exclusivity.
      Specified by:
      getType in interface Volume
    • getSize

      public Float getSize()
      Specified by:
      getSize in interface Volume
      Returns:
      capacity in gigabytes, if available
    • getDevice

      public String getDevice()
      Specified by:
      getDevice in interface Volume
      Returns:
      device this volume relates to on an operating system, if available
    • isDurable

      public boolean isDurable()
      Specified by:
      isDurable in interface Volume
      Returns:
      true if this survives restarts
    • isBootDevice

      public boolean isBootDevice()
      Specified by:
      isBootDevice in interface Volume
      Returns:
      true if this is the boot device