org.jclouds.elasticstack.domain
Class Drive

java.lang.Object
  extended by org.jclouds.elasticstack.domain.Item
      extended by org.jclouds.elasticstack.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
           
 
Fields inherited from class org.jclouds.elasticstack.domain.Item
name, tags, userMetadata, uuid
 
Constructor Summary
Drive(String uuid, String name, long size, ClaimType claimType, Iterable<String> readers, Iterable<String> tags, Map<String,String> userMetadata)
           
 
Method Summary
 boolean equals(Object obj)
           
 ClaimType getClaimType()
           
 Set<String> getReaders()
           
 long getSize()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.elasticstack.domain.Item
getName, getTags, getUserMetadata, 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

readers

protected final Set<String> readers
Constructor Detail

Drive

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

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


Copyright © 2009-2011 jclouds. All Rights Reserved.