org.jclouds.cloudsigma.domain
Class Device
java.lang.Object
org.jclouds.cloudsigma.domain.Device
- Direct Known Subclasses:
- BlockDevice, IDEDevice, SCSIDevice
public abstract class Device
- extends Object
- Author:
- Adrian Cole
driveUuid
protected final String driveUuid
mediaType
protected final MediaType mediaType
Device
public Device(String driveUuid,
MediaType mediaType)
getId
public abstract String getId()
- id generated based on the device bus, unit, and/or index numbers;
getDriveUuid
public String getDriveUuid()
- Returns:
- Drive UUID to connect as specified device.
getMediaType
public MediaType getMediaType()
- Returns:
- set to 'cdrom' to simulate a cdrom, set to 'disk' or leave unset to simulate a hard
disk.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.