|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.PIF
public class PIF
A physical network interface (note separate VLANs are represented as several PIFs)
Nested Class Summary | |
---|---|
static class |
PIF.Record
Represents all the fields in a PIF |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
static PIF |
createVLAN(String device,
Network network,
Host host,
Long VLAN)
Create a VLAN interface from an existing physical interface |
void |
destroy()
Destroy the interface (provided it is a synthetic interface like a VLAN; fail if it is a physical interface) |
static Set<PIF> |
getAll()
Return a list of all the PIFs known to the system. |
static Map<PIF,PIF.Record> |
getAllRecords()
Get all the PIF Records at once, in a single XML RPC call |
static PIF |
getByUuid(String uuid)
Get a reference to the PIF instance with the specified UUID. |
String |
getDevice()
Get the device field of the given PIF. |
Host |
getHost()
Get the host field of the given PIF. |
protected static PIF |
getInstFromRef(String ref)
|
String |
getMAC()
Get the MAC field of the given PIF. |
PIFMetrics |
getMetrics()
Get the metrics field of the given PIF. |
Long |
getMTU()
Get the MTU field of the given PIF. |
Network |
getNetwork()
Get the network field of the given PIF. |
PIF.Record |
getRecord()
Get a record containing the current state of the given PIF. |
String |
getUuid()
Get the uuid field of the given PIF. |
Long |
getVLAN()
Get the VLAN field of the given PIF. |
void |
setDevice(String device)
Set the device field of the given PIF. |
void |
setMAC(String MAC)
Set the MAC field of the given PIF. |
void |
setMTU(Long MTU)
Set the MTU field of the given PIF. |
void |
setVLAN(Long VLAN)
Set the VLAN field of the given PIF. |
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 PIF getInstFromRef(String ref)
public PIF.Record getRecord() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static PIF getByUuid(String uuid) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
uuid
- UUID of object to return
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 Host getHost() 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 Long getVLAN() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public PIFMetrics 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 setVLAN(Long VLAN) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
VLAN
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static PIF createVLAN(String device, Network network, Host host, Long VLAN) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VlanTagInvalid
device
- physical interface on which to crate the VLAN interfacenetwork
- network to which this interface should be connectedhost
- physical machine to which this PIF is connectedVLAN
- VLAN tag for the new interface
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VlanTagInvalid
public void destroy() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.PifIsPhysical
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.PifIsPhysical
public static Set<PIF> getAll() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<PIF,PIF.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 |