com.xensource.xenapi
Class Crashdump

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

public class Crashdump
extends Object

A VM crashdump


Nested Class Summary
static class Crashdump.Record
          Represents all the fields in a Crashdump
 
Field Summary
protected  String ref
          The XenAPI reference to this object.
 
Method Summary
 void destroy()
          Destroy the specified crashdump
static Set<Crashdump> getAll()
          Return a list of all the crashdumps known to the system.
static Map<Crashdump,Crashdump.Record> getAllRecords()
          Get all the Crashdump Records at once, in a single XML RPC call
static Crashdump getByUuid(String uuid)
          Get a reference to the crashdump instance with the specified UUID.
protected static Crashdump getInstFromRef(String ref)
           
 Crashdump.Record getRecord()
          Get a record containing the current state of the given crashdump.
 String getUuid()
          Get the uuid field of the given crashdump.
 VDI getVDI()
          Get the VDI field of the given crashdump.
 VM getVM()
          Get the VM field of the given crashdump.
 
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 Crashdump getInstFromRef(String ref)

getRecord

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

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

getByUuid

public static Crashdump getByUuid(String uuid)
                           throws Types.BadServerResponse,
                                  ConnectionHelper.NoConnectionOnThisThreadException,
                                  XmlRpcException
Get a reference to the crashdump 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 crashdump.

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

getVM

public VM getVM()
         throws Types.BadServerResponse,
                ConnectionHelper.NoConnectionOnThisThreadException,
                XmlRpcException
Get the VM field of the given crashdump.

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

getVDI

public VDI getVDI()
           throws Types.BadServerResponse,
                  ConnectionHelper.NoConnectionOnThisThreadException,
                  XmlRpcException
Get the VDI field of the given crashdump.

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

destroy

public void destroy()
             throws Types.BadServerResponse,
                    ConnectionHelper.NoConnectionOnThisThreadException,
                    XmlRpcException
Destroy the specified crashdump

Throws:
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException

getAll

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

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

getAllRecords

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

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