org.jclouds.cloudsigma.domain
Class Device

java.lang.Object
  extended by org.jclouds.cloudsigma.domain.Device
Direct Known Subclasses:
BlockDevice, IDEDevice, SCSIDevice

public abstract class Device
extends Object

Author:
Adrian Cole

Nested Class Summary
static class Device.Builder
           
 
Field Summary
protected  String driveUuid
           
protected  MediaType mediaType
           
 
Constructor Summary
Device(String driveUuid, MediaType mediaType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDriveUuid()
           
abstract  String getId()
          id generated based on the device bus, unit, and/or index numbers;
 MediaType getMediaType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

driveUuid

protected final String driveUuid

mediaType

protected final MediaType mediaType
Constructor Detail

Device

public Device(String driveUuid,
              MediaType mediaType)
Method Detail

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-2012 jclouds. All Rights Reserved.