|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xensource.xenapi.Network
public class Network
A virtual network
| Nested Class Summary | |
|---|---|
static class |
Network.Record
Represents all the fields in a Network |
| Field Summary | |
|---|---|
protected String |
ref
The XenAPI reference to this object. |
| Method Summary | |
|---|---|
void |
addToOtherConfig(String key,
String value)
Add the given key-value pair to the other_config field of the given network. |
static Network |
create(Network.Record record)
Create a new network instance, and return its handle. |
void |
destroy()
Destroy the specified network instance. |
static Set<Network> |
getAll()
Return a list of all the networks known to the system. |
static Map<Network,Network.Record> |
getAllRecords()
Get all the Network Records at once, in a single XML RPC call |
static Set<Network> |
getByNameLabel(String label)
Get all the network instances with the given label. |
static Network |
getByUuid(String uuid)
Get a reference to the network instance with the specified UUID. |
protected static Network |
getInstFromRef(String ref)
|
String |
getNameDescription()
Get the name/description field of the given network. |
String |
getNameLabel()
Get the name/label field of the given network. |
Map<String,String> |
getOtherConfig()
Get the other_config field of the given network. |
Set<PIF> |
getPIFs()
Get the PIFs field of the given network. |
Network.Record |
getRecord()
Get a record containing the current state of the given network. |
String |
getUuid()
Get the uuid field of the given network. |
Set<VIF> |
getVIFs()
Get the VIFs field of the given network. |
void |
removeFromOtherConfig(String key)
Remove the given key and its corresponding value from the other_config field of the given network. |
void |
setNameDescription(String description)
Set the name/description field of the given network. |
void |
setNameLabel(String label)
Set the name/label field of the given network. |
void |
setOtherConfig(Map<String,String> otherConfig)
Set the other_config field of the given network. |
| 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 Network getInstFromRef(String ref)
public Network.Record getRecord()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Network getByUuid(String uuid)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
uuid - UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Network create(Network.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 static Set<Network> getByNameLabel(String label)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
label - label 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 getNameLabel()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getNameDescription()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<VIF> getVIFs()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<PIF> getPIFs()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getOtherConfig()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameLabel(String label)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
label - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameDescription(String description)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
description - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setOtherConfig(Map<String,String> otherConfig)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
otherConfig - New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToOtherConfig(String key,
String value)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
key - Key to addvalue - Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromOtherConfig(String key)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
key - Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<Network> getAll()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<Network,Network.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 | |||||||