public class VirtualNetworkTemplatePool extends Pool implements java.lang.Iterable<VirtualNetworkTemplate>
ALL, client, elementName, GROUP, infoMethod, MINE, MINE_GROUP, poolElements, xpath
Constructor and Description |
---|
VirtualNetworkTemplatePool(Client client)
Creates a new Virtual Network Template pool with the default filter flag value
set to (Template belonging to the connected user,
and the ones in his group)
|
VirtualNetworkTemplatePool(Client client,
int filter)
Creates a new Virtuan Network Template pool.
|
Modifier and Type | Method and Description |
---|---|
PoolElement |
factory(org.w3c.dom.Node node)
The factory method returns a suitable PoolElement object from
an XML node.
|
VirtualNetworkTemplate |
getById(int id)
Returns the VNTemplate with the given Id from the pool.
|
OneResponse |
info()
Loads the xml representation of all or part of the
VNTemplates in the pool.
|
static OneResponse |
info(Client client,
int filter)
Retrieves all or part of the VNTemplates in the pool.
|
static OneResponse |
info(Client client,
int filter,
int startId,
int endId)
Retrieves all or part of the VNTemplates in the pool.
|
OneResponse |
info(int filter,
int startId,
int endId)
Retrieves all or part of the Templates in the pool.
|
OneResponse |
infoAll()
Loads the xml representation of all the VNTemplates in the pool.
|
static OneResponse |
infoAll(Client client)
Retrieves all the VNTemplates in the pool.
|
OneResponse |
infoGroup()
Loads the xml representation of all the connected user's VNTemplates and
the ones in his group.
|
static OneResponse |
infoGroup(Client client)
Retrieves all the connected user's VNTemplates and the ones in
his group.
|
OneResponse |
infoMine()
Loads the xml representation of all the connected user's VNTemplates.
|
static OneResponse |
infoMine(Client client)
Retrieves all the connected user's VNTemplates.
|
java.util.Iterator<VirtualNetworkTemplate> |
iterator() |
getLength, info, info, infoAll, infoGroup, infoGroupPrimary, infoMine, item, processInfo, xmlrpcInfo
public VirtualNetworkTemplatePool(Client client)
client
- XML-RPC Client.public VirtualNetworkTemplatePool(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag to use by default in the methodpublic PoolElement factory(org.w3c.dom.Node node)
Pool
public static OneResponse info(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag to use. Possible values:public static OneResponse infoAll(Client client)
client
- XML-RPC Client.public static OneResponse infoMine(Client client)
client
- XML-RPC Client.public static OneResponse infoGroup(Client client)
client
- XML-RPC Client.public static OneResponse info(Client client, int filter, int startId, int endId)
client
- XML-RPC Client.filter
- Filter flag to use. Possible values:startId
- Lowest Id to retrieveendId
- Biggest Id to retrievepublic OneResponse info()
public OneResponse infoAll()
public OneResponse infoMine()
public OneResponse infoGroup()
public OneResponse info(int filter, int startId, int endId)
public java.util.Iterator<VirtualNetworkTemplate> iterator()
iterator
in interface java.lang.Iterable<VirtualNetworkTemplate>
public VirtualNetworkTemplate getById(int id)
info()
must be called before.Visit OpenNebula.io
Copyright 2002-2020 ©
OpenNebula Project, OpenNebula Systems.