com.xensource.xenapi
Class VBDMetrics

java.lang.Object
  extended by com.xensource.xenapi.VBDMetrics

public class VBDMetrics
extends Object

The metrics associated with a virtual block device


Nested Class Summary
static class VBDMetrics.Record
          Represents all the fields in a VBDMetrics
 
Field Summary
protected  String ref
          The XenAPI reference to this object.
 
Method Summary
static Set<VBDMetrics> getAll()
          Return a list of all the VBD_metrics instances known to the system.
static Map<VBDMetrics,VBDMetrics.Record> getAllRecords()
          Get all the VBDMetrics Records at once, in a single XML RPC call
static VBDMetrics getByUuid(String uuid)
          Get a reference to the VBD_metrics instance with the specified UUID.
protected static VBDMetrics getInstFromRef(String ref)
           
 Double getIoReadKbs()
          Get the io/read_kbs field of the given VBD_metrics.
 Double getIoWriteKbs()
          Get the io/write_kbs field of the given VBD_metrics.
 Date getLastUpdated()
          Get the last_updated field of the given VBD_metrics.
 VBDMetrics.Record getRecord()
          Get a record containing the current state of the given VBD_metrics.
 String getUuid()
          Get the uuid field of the given VBD_metrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

protected final String ref
The XenAPI reference to this object.

Method Detail

getInstFromRef

protected static VBDMetrics getInstFromRef(String ref)

getRecord

public VBDMetrics.Record getRecord()
                            throws Types.BadServerResponse,
                                   ConnectionHelper.NoConnectionOnThisThreadException,
                                   XmlRpcException
Get a record containing the current state of the given VBD_metrics.

Returns:
all fields from the object
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getByUuid

public static VBDMetrics getByUuid(String uuid)
                            throws Types.BadServerResponse,
                                   ConnectionHelper.NoConnectionOnThisThreadException,
                                   XmlRpcException
Get a reference to the VBD_metrics instance with the specified UUID.

Parameters:
uuid - UUID of object to return
Returns:
reference to the object
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getUuid

public String getUuid()
               throws Types.BadServerResponse,
                      ConnectionHelper.NoConnectionOnThisThreadException,
                      XmlRpcException
Get the uuid field of the given VBD_metrics.

Returns:
value of the field
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getIoReadKbs

public Double getIoReadKbs()
                    throws Types.BadServerResponse,
                           ConnectionHelper.NoConnectionOnThisThreadException,
                           XmlRpcException
Get the io/read_kbs field of the given VBD_metrics.

Returns:
value of the field
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getIoWriteKbs

public Double getIoWriteKbs()
                     throws Types.BadServerResponse,
                            ConnectionHelper.NoConnectionOnThisThreadException,
                            XmlRpcException
Get the io/write_kbs field of the given VBD_metrics.

Returns:
value of the field
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getLastUpdated

public Date getLastUpdated()
                    throws Types.BadServerResponse,
                           ConnectionHelper.NoConnectionOnThisThreadException,
                           XmlRpcException
Get the last_updated field of the given VBD_metrics.

Returns:
value of the field
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getAll

public static Set<VBDMetrics> getAll()
                              throws Types.BadServerResponse,
                                     ConnectionHelper.NoConnectionOnThisThreadException,
                                     XmlRpcException
Return a list of all the VBD_metrics instances known to the system.

Returns:
references to all objects
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getAllRecords

public static Map<VBDMetrics,VBDMetrics.Record> getAllRecords()
                                                       throws Types.BadServerResponse,
                                                              ConnectionHelper.NoConnectionOnThisThreadException,
                                                              XmlRpcException
Get all the VBDMetrics Records at once, in a single XML RPC call

Returns:
A map from VBDMetrics to VBDMetrics.Record
Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException