com.xensource.xenapi
public class PoolUpdate extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
PoolUpdate.Record
Represents all the fields in a PoolUpdate
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Connection c,
Host host)
Apply the selected update to a host
First published in .
|
Task |
applyAsync(Connection c,
Host host)
Apply the selected update to a host
First published in .
|
void |
destroy(Connection c)
Removes the database entry.
|
Task |
destroyAsync(Connection c)
Removes the database entry.
|
boolean |
equals(java.lang.Object obj)
If obj is a PoolUpdate, compares XenAPI references for equality.
|
java.util.Set<Types.UpdateAfterApplyGuidance> |
getAfterApplyGuidance(Connection c)
Get the after_apply_guidance field of the given pool_update.
|
static java.util.Set<PoolUpdate> |
getAll(Connection c)
Return a list of all the pool_updates known to the system.
|
static java.util.Map<PoolUpdate,PoolUpdate.Record> |
getAllRecords(Connection c)
Return a map of pool_update references to pool_update records for all pool_updates known to the system.
|
static java.util.Set<PoolUpdate> |
getByNameLabel(Connection c,
java.lang.String label)
Get all the pool_update instances with the given label.
|
static PoolUpdate |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the pool_update instance with the specified UUID.
|
java.util.Set<Host> |
getHosts(Connection c)
Get the hosts field of the given pool_update.
|
java.lang.Long |
getInstallationSize(Connection c)
Get the installation_size field of the given pool_update.
|
java.lang.String |
getKey(Connection c)
Get the key field of the given pool_update.
|
java.lang.String |
getNameDescription(Connection c)
Get the name/description field of the given pool_update.
|
java.lang.String |
getNameLabel(Connection c)
Get the name/label field of the given pool_update.
|
PoolUpdate.Record |
getRecord(Connection c)
Get a record containing the current state of the given pool_update.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given pool_update.
|
VDI |
getVdi(Connection c)
Get the vdi field of the given pool_update.
|
java.lang.String |
getVersion(Connection c)
Get the version field of the given pool_update.
|
int |
hashCode() |
static PoolUpdate |
introduce(Connection c,
VDI vdi)
Introduce update VDI
First published in .
|
static Task |
introduceAsync(Connection c,
VDI vdi)
Introduce update VDI
First published in .
|
void |
poolApply(Connection c)
Apply the selected update to all hosts in the pool
First published in .
|
Task |
poolApplyAsync(Connection c)
Apply the selected update to all hosts in the pool
First published in .
|
void |
poolClean(Connection c)
Removes the update's files from all hosts in the pool, but does not revert the update
First published in .
|
Task |
poolCleanAsync(Connection c)
Removes the update's files from all hosts in the pool, but does not revert the update
First published in .
|
Types.LivepatchStatus |
precheck(Connection c,
Host host)
Execute the precheck stage of the selected update on a host
First published in .
|
Task |
precheckAsync(Connection c,
Host host)
Execute the precheck stage of the selected update on a host
First published in .
|
java.lang.String |
toWireString() |
isNull
protected final java.lang.String ref
public java.lang.String toWireString()
toWireString
in class XenAPIObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PoolUpdate.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PoolUpdate getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to returnTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<PoolUpdate> getByNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label
- label of object to returnTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getVersion(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getInstallationSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getKey(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<Types.UpdateAfterApplyGuidance> getAfterApplyGuidance(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI getVdi(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<Host> getHosts(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task introduceAsync(Connection c, VDI vdi) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
vdi
- The VDI which contains a software update.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PoolUpdate introduce(Connection c, VDI vdi) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
vdi
- The VDI which contains a software update.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task precheckAsync(Connection c, Host host) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host
- The host to run the prechecks on.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.LivepatchStatus precheck(Connection c, Host host) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host
- The host to run the prechecks on.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task applyAsync(Connection c, Host host) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host
- The host to apply the update to.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void apply(Connection c, Host host) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
host
- The host to apply the update to.Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task poolApplyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void poolApply(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task poolCleanAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void poolClean(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
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 java.util.Set<PoolUpdate> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Map<PoolUpdate,PoolUpdate.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException