org.jclouds.cloudsigma.domain
Class DriveInfo

java.lang.Object
  extended by org.jclouds.cloudsigma.domain.Item
      extended by org.jclouds.cloudsigma.domain.Drive
          extended by org.jclouds.cloudsigma.domain.DriveInfo

public class DriveInfo
extends Drive

Author:
Adrian Cole

Nested Class Summary
static class DriveInfo.Builder
           
 
Field Summary
protected  Set<String> claimed
           
protected  String encryptionCipher
           
protected  String imaging
           
protected  DriveMetrics metrics
           
protected  DriveStatus status
           
protected  String user
           
 
Fields inherited from class org.jclouds.cloudsigma.domain.Drive
claimType, readers, size, tags
 
Fields inherited from class org.jclouds.cloudsigma.domain.Item
name, use, uuid
 
Constructor Summary
DriveInfo(String uuid, String name, long size, ClaimType claimType, Iterable<String> tags, Iterable<String> readers, Iterable<String> use, DriveStatus status, String user, Set<String> claimed, String encryptionCipher, String imaging, DriveMetrics metrics, Boolean autoexpanding, Integer bits, String description, Iterable<String> driveType, String encryptionKey, Boolean free, String installNotes, String os, DriveType type, URI url)
           
 
Method Summary
 boolean equals(Object obj)
           
 Boolean getAutoexpanding()
           
 Integer getBits()
           
 Set<String> getClaimed()
           
 String getDescription()
           
 Set<String> getDriveType()
           
 String getEncryptionCipher()
           
 String getEncryptionKey()
           
 Boolean getFree()
           
 String getImaging()
           
 String getInstallNotes()
           
 DriveMetrics getMetrics()
           
 String getOs()
           
 DriveStatus getStatus()
           
 DriveType getType()
           
 URI getUrl()
           
 String getUser()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.cloudsigma.domain.Drive
getClaimType, getReaders, getSize, getTags
 
Methods inherited from class org.jclouds.cloudsigma.domain.Item
getName, getUse, getUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

status

protected final DriveStatus status

user

protected final String user

claimed

protected final Set<String> claimed

encryptionCipher

@Nullable
protected final String encryptionCipher

imaging

@Nullable
protected final String imaging

metrics

protected final DriveMetrics metrics
Constructor Detail

DriveInfo

public DriveInfo(String uuid,
                 String name,
                 long size,
                 ClaimType claimType,
                 Iterable<String> tags,
                 Iterable<String> readers,
                 Iterable<String> use,
                 DriveStatus status,
                 String user,
                 Set<String> claimed,
                 String encryptionCipher,
                 String imaging,
                 DriveMetrics metrics,
                 Boolean autoexpanding,
                 Integer bits,
                 String description,
                 Iterable<String> driveType,
                 String encryptionKey,
                 Boolean free,
                 String installNotes,
                 String os,
                 DriveType type,
                 URI url)
Method Detail

getStatus

public DriveStatus getStatus()
Returns:
current status of the drive

getUser

public String getUser()
Returns:
owner of the drive

getClaimed

public Set<String> getClaimed()
Returns:
if drive is in use by a server, values are the server uuids

getEncryptionCipher

@Nullable
public String getEncryptionCipher()
Returns:
either 'none' or 'aes-xts-plain' (the default)

getImaging

public String getImaging()
Returns:
percentage completed of drive imaging if this is underway, or 'queued' if waiting for another imaging operation to complete first

getMetrics

public DriveMetrics getMetrics()
Returns:
i/o and request metrics for read and write ops

getAutoexpanding

public Boolean getAutoexpanding()

getBits

public Integer getBits()

getDescription

public String getDescription()

getDriveType

public Set<String> getDriveType()

getEncryptionKey

public String getEncryptionKey()

getFree

public Boolean getFree()

getInstallNotes

public String getInstallNotes()

getOs

public String getOs()

getType

public DriveType getType()

getUrl

public URI getUrl()

hashCode

public int hashCode()
Overrides:
hashCode in class Drive

equals

public boolean equals(Object obj)
Overrides:
equals in class Drive

toString

public String toString()
Overrides:
toString in class Drive


Copyright © 2009-2012 jclouds. All Rights Reserved.