Package org.jclouds.elasticstack.domain
Class DriveInfo
- java.lang.Object
-
- org.jclouds.elasticstack.domain.Item
-
- org.jclouds.elasticstack.domain.Drive
-
- org.jclouds.elasticstack.domain.DriveInfo
-
public class DriveInfo extends Drive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DriveInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description 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.elasticstack.domain.Item
name, tags, userMetadata, uuid
-
-
Constructor Summary
Constructors Constructor Description DriveInfo(String uuid, String name, long size, ClaimType claimType, Iterable<String> readers, Iterable<String> tags, Map<String,String> userMetadata, DriveStatus status, String user, Set<String> claimed, String encryptionCipher, String imaging, DriveMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<String>
getClaimed()
String
getEncryptionCipher()
String
getImaging()
DriveMetrics
getMetrics()
DriveStatus
getStatus()
String
getUser()
int
hashCode()
String
toString()
-
Methods inherited from class org.jclouds.elasticstack.domain.Drive
getClaimType, getReaders, getSize
-
Methods inherited from class org.jclouds.elasticstack.domain.Item
getName, getTags, getUserMetadata, getUuid
-
-
-
-
Field Detail
-
status
protected final DriveStatus status
-
user
protected final String user
-
metrics
protected final DriveMetrics metrics
-
-
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
-
-