Class Drive

java.lang.Object
org.jclouds.elasticstack.domain.Item
org.jclouds.elasticstack.domain.Drive
Direct Known Subclasses:
CreateDriveRequest, DriveData, DriveInfo, StandardDrive

public class Drive extends Item
  • Field Details

    • size

      protected final long size
    • claimType

      protected final ClaimType claimType
    • readers

      protected final Set<String> readers
  • Constructor Details

  • Method Details

    • getClaimType

      @Nullable public ClaimType getClaimType()
      Returns:
      either 'exclusive' (the default) or 'shared' to allow multiple servers to access a drive simultaneously
    • getReaders

      public Set<String> getReaders()
      Returns:
      list of users allowed to read from a drive or 'ffffffff-ffff-ffff-ffff-ffffffffffff' for all users
    • getSize

      public long getSize()
      Returns:
      size of drive in bytes
    • 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