org.jclouds.compute.domain.internal
Class VolumeImpl

java.lang.Object
  extended by org.jclouds.compute.domain.internal.VolumeImpl
All Implemented Interfaces:
Volume

public class VolumeImpl
extends Object
implements Volume

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.domain.Volume
Volume.Type
 
Constructor Summary
VolumeImpl(Float size, boolean bootDevice, boolean durable)
           
VolumeImpl(Float size, String device, boolean bootDevice, boolean durable)
           
VolumeImpl(String id, Volume.Type type, Float size, String device, boolean bootDevice, boolean durable)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDevice()
          
 String getId()
          Unique identifier.
 Float getSize()
          
 Volume.Type getType()
          Describes the cardinal type of a volume; used to determine scope and exclusivity.
 int hashCode()
           
 boolean isBootDevice()
          
 boolean isDurable()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeImpl

public VolumeImpl(@Nullable
                  String id,
                  Volume.Type type,
                  @Nullable
                  Float size,
                  @Nullable
                  String device,
                  boolean bootDevice,
                  boolean durable)

VolumeImpl

public VolumeImpl(@Nullable
                  Float size,
                  boolean bootDevice,
                  boolean durable)

VolumeImpl

public VolumeImpl(@Nullable
                  Float size,
                  @Nullable
                  String device,
                  boolean bootDevice,
                  boolean durable)
Method Detail

getId

public String getId()
Unique identifier. If set, can be used to reference the volume for reorganizing within Hardware or external commands such as backups.

Specified by:
getId in interface Volume

getType

public Volume.Type getType()
Describes the cardinal type of a volume; used to determine scope and exclusivity.

Specified by:
getType in interface Volume

getSize

public Float getSize()

Specified by:
getSize in interface Volume
Returns:
capacity in gigabytes, if available

getDevice

public String getDevice()

Specified by:
getDevice in interface Volume
Returns:
device this volume relates to on an operating system, if available

isDurable

public boolean isDurable()

Specified by:
isDurable in interface Volume
Returns:
true if this survives restarts

isBootDevice

public boolean isBootDevice()

Specified by:
isBootDevice in interface Volume
Returns:
true if this is the boot device

toString

public String toString()

Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.