org.jclouds.cloudsigma.domain
Class Drive
java.lang.Object
org.jclouds.cloudsigma.domain.Item
org.jclouds.cloudsigma.domain.Drive
- Direct Known Subclasses:
- CreateDriveRequest, DriveData, DriveInfo
public class Drive
- extends Item
- Author:
- Adrian Cole
Fields inherited from class org.jclouds.cloudsigma.domain.Item |
name, use, uuid |
size
protected final long size
claimType
protected final ClaimType claimType
readers
protected final Set<String> readers
Drive
public Drive(@Nullable
String uuid,
String name,
long size,
@Nullable
ClaimType claimType,
Iterable<String> readers,
Iterable<String> use)
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.