|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.XenAPIObject
com.xensource.xenapi.DRTask
public class DRTask
DR task
Nested Class Summary | |
---|---|
static class |
DRTask.Record
Represents all the fields in a DRTask |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference (OpaqueRef) to this object. |
Method Summary | |
---|---|
static DRTask |
create(Connection c,
String type,
Map<String,String> deviceConfig,
Set<String> whitelist)
Create a disaster recovery task which will query the supplied list of devices |
static Task |
createAsync(Connection c,
String type,
Map<String,String> deviceConfig,
Set<String> whitelist)
Create a disaster recovery task which will query the supplied list of devices |
void |
destroy(Connection c)
Destroy the disaster recovery task, detaching and forgetting any SRs introduced which are no longer required |
Task |
destroyAsync(Connection c)
Destroy the disaster recovery task, detaching and forgetting any SRs introduced which are no longer required |
boolean |
equals(Object obj)
If obj is a DRTask, compares XenAPI references for equality. |
static Set<DRTask> |
getAll(Connection c)
Return a list of all the DR_tasks known to the system. |
static Map<DRTask,DRTask.Record> |
getAllRecords(Connection c)
Return a map of DR_task references to DR_task records for all DR_tasks known to the system. |
static DRTask |
getByUuid(Connection c,
String uuid)
Get a reference to the DR_task instance with the specified UUID. |
Set<SR> |
getIntroducedSRs(Connection c)
Get the introduced_SRs field of the given DR_task. |
DRTask.Record |
getRecord(Connection c)
Get a record containing the current state of the given DR_task. |
String |
getUuid(Connection c)
Get the uuid field of the given DR_task. |
int |
hashCode()
|
String |
toWireString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String ref
Method Detail |
---|
public String toWireString()
toWireString
in class XenAPIObject
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public DRTask.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static DRTask getByUuid(Connection c, String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Set<SR> getIntroducedSRs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task createAsync(Connection c, String type, Map<String,String> deviceConfig, Set<String> whitelist) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
type
- The SR driver type of the SRs to introducedeviceConfig
- The device configuration of the SRs to introducewhitelist
- The devices to use for disaster recovery
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static DRTask create(Connection c, String type, Map<String,String> deviceConfig, Set<String> whitelist) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
type
- The SR driver type of the SRs to introducedeviceConfig
- The device configuration of the SRs to introducewhitelist
- The devices to use for disaster recovery
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<DRTask> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Map<DRTask,DRTask.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |