com.xensource.xenapi
public class NetworkSriov extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkSriov.Record
Represents all the fields in a NetworkSriov
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkSriov |
create(Connection c,
PIF pif,
Network network)
Enable SR-IOV on the specific PIF.
|
static Task |
createAsync(Connection c,
PIF pif,
Network network)
Enable SR-IOV on the specific PIF.
|
void |
destroy(Connection c)
Disable SR-IOV on the specific PIF.
|
Task |
destroyAsync(Connection c)
Disable SR-IOV on the specific PIF.
|
boolean |
equals(java.lang.Object obj)
If obj is a NetworkSriov, compares XenAPI references for equality.
|
static java.util.Set<NetworkSriov> |
getAll(Connection c)
Return a list of all the network_sriovs known to the system.
|
static java.util.Map<NetworkSriov,NetworkSriov.Record> |
getAllRecords(Connection c)
Return a map of network_sriov references to network_sriov records for all network_sriovs known to the system.
|
static NetworkSriov |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the network_sriov instance with the specified UUID.
|
Types.SriovConfigurationMode |
getConfigurationMode(Connection c)
Get the configuration_mode field of the given network_sriov.
|
PIF |
getLogicalPIF(Connection c)
Get the logical_PIF field of the given network_sriov.
|
PIF |
getPhysicalPIF(Connection c)
Get the physical_PIF field of the given network_sriov.
|
NetworkSriov.Record |
getRecord(Connection c)
Get a record containing the current state of the given network_sriov.
|
java.lang.Long |
getRemainingCapacity(Connection c)
Get the number of free SR-IOV VFs on the associated PIF
First published in XenServer 7.5.
|
Task |
getRemainingCapacityAsync(Connection c)
Get the number of free SR-IOV VFs on the associated PIF
First published in XenServer 7.5.
|
java.lang.Boolean |
getRequiresReboot(Connection c)
Get the requires_reboot field of the given network_sriov.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given network_sriov.
|
int |
hashCode() |
java.lang.String |
toWireString() |
isNullprotected final java.lang.String ref
public java.lang.String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic NetworkSriov.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static NetworkSriov getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic PIF getPhysicalPIF(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic PIF getLogicalPIF(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getRequiresReboot(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Types.SriovConfigurationMode getConfigurationMode(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task createAsync(Connection c, PIF pif, Network network) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
pif - PIF on which to enable SR-IOVnetwork - Network to connect SR-IOV virtual functions with VM VIFsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static NetworkSriov create(Connection c, PIF pif, Network network) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
pif - PIF on which to enable SR-IOVnetwork - Network to connect SR-IOV virtual functions with VM VIFsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task getRemainingCapacityAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Long getRemainingCapacity(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Set<NetworkSriov> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Map<NetworkSriov,NetworkSriov.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException