|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.VIF
public class VIF
A virtual network interface
Nested Class Summary | |
---|---|
static class |
VIF.Record
Represents all the fields in a VIF |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
void |
addToQosAlgorithmParams(String key,
String value)
Add the given key-value pair to the qos/algorithm_params field of the given VIF. |
static VIF |
create(VIF.Record record)
Create a new VIF instance, and return its handle. |
void |
destroy()
Destroy the specified VIF instance. |
static Set<VIF> |
getAll()
Return a list of all the VIFs known to the system. |
static Map<VIF,VIF.Record> |
getAllRecords()
Get all the VIF Records at once, in a single XML RPC call |
static VIF |
getByUuid(String uuid)
Get a reference to the VIF instance with the specified UUID. |
Boolean |
getCurrentlyAttached()
Get the currently_attached field of the given VIF. |
String |
getDevice()
Get the device field of the given VIF. |
protected static VIF |
getInstFromRef(String ref)
|
String |
getMAC()
Get the MAC field of the given VIF. |
VIFMetrics |
getMetrics()
Get the metrics field of the given VIF. |
Long |
getMTU()
Get the MTU field of the given VIF. |
Network |
getNetwork()
Get the network field of the given VIF. |
Map<String,String> |
getQosAlgorithmParams()
Get the qos/algorithm_params field of the given VIF. |
String |
getQosAlgorithmType()
Get the qos/algorithm_type field of the given VIF. |
Set<String> |
getQosSupportedAlgorithms()
Get the qos/supported_algorithms field of the given VIF. |
VIF.Record |
getRecord()
Get a record containing the current state of the given VIF. |
Map<String,String> |
getRuntimeProperties()
Get the runtime_properties field of the given VIF. |
Long |
getStatusCode()
Get the status_code field of the given VIF. |
String |
getStatusDetail()
Get the status_detail field of the given VIF. |
String |
getUuid()
Get the uuid field of the given VIF. |
VM |
getVM()
Get the VM field of the given VIF. |
void |
plug()
Hotplug the specified VIF, dynamically attaching it to the running VM |
void |
removeFromQosAlgorithmParams(String key)
Remove the given key and its corresponding value from the qos/algorithm_params field of the given VIF. |
void |
setDevice(String device)
Set the device field of the given VIF. |
void |
setMAC(String MAC)
Set the MAC field of the given VIF. |
void |
setMTU(Long MTU)
Set the MTU field of the given VIF. |
void |
setQosAlgorithmParams(Map<String,String> algorithmParams)
Set the qos/algorithm_params field of the given VIF. |
void |
setQosAlgorithmType(String algorithmType)
Set the qos/algorithm_type field of the given VIF. |
void |
unplug()
Hot-unplug the specified VIF, dynamically unattaching it from the running VM |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String ref
Method Detail |
---|
protected static VIF getInstFromRef(String ref)
public VIF.Record getRecord() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VIF getByUuid(String uuid) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VIF create(VIF.Record record) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
record
- All constructor arguments
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void destroy() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getUuid() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getDevice() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Network getNetwork() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VM getVM() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getMAC() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getMTU() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getCurrentlyAttached() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getStatusCode() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getStatusDetail() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getRuntimeProperties() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getQosAlgorithmType() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getQosAlgorithmParams() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<String> getQosSupportedAlgorithms() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VIFMetrics getMetrics() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setDevice(String device) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
device
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMAC(String MAC) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
MAC
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMTU(Long MTU) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
MTU
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setQosAlgorithmType(String algorithmType) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
algorithmType
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setQosAlgorithmParams(Map<String,String> algorithmParams) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
algorithmParams
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToQosAlgorithmParams(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to addvalue
- Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromQosAlgorithmParams(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void plug() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void unplug() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<VIF> getAll() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<VIF,VIF.Record> getAllRecords() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |