org.jclouds.cloudsigma.domain
Class Drive

java.lang.Object
  extended by org.jclouds.cloudsigma.domain.Item
      extended by org.jclouds.cloudsigma.domain.Drive
Direct Known Subclasses:
CreateDriveRequest, DriveData, DriveInfo

public class Drive
extends Item

Author:
Adrian Cole

Nested Class Summary
static class Drive.Builder
           
 
Field Summary
protected  ClaimType claimType
           
protected  Set<String> readers
           
protected  long size
           
protected  Set<String> tags
           
 
Fields inherited from class org.jclouds.cloudsigma.domain.Item
name, use, uuid
 
Constructor Summary
Drive(String uuid, String name, long size, ClaimType claimType, Iterable<String> tags, Iterable<String> readers, Iterable<String> use)
           
 
Method Summary
 boolean equals(Object obj)
           
 ClaimType getClaimType()
           
 Set<String> getReaders()
           
 long getSize()
           
 Set<String> getTags()
           
 int hashCode()
           
 String toString()
           
 
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

size

protected final long size

claimType

protected final ClaimType claimType

tags

protected final Set<String> tags

readers

protected final Set<String> readers
Constructor Detail

Drive

public Drive(@Nullable
             String uuid,
             String name,
             long size,
             @Nullable
             ClaimType claimType,
             Iterable<String> tags,
             Iterable<String> readers,
             Iterable<String> use)
Method Detail

getClaimType

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

getTags

public Set<String> getTags()
Returns:
all tags associated with this drive, both user-specified and "system" tags (e.g. "affinity:ssd")

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


Copyright © 2009-2012 jclouds. All Rights Reserved.