ALL, client, elementName, GROUP, infoMethod, MINE, MINE_GROUP, poolElements, xpath
Constructor and Description |
---|
VMGroupPool(Client client)
Creates a new VMGroup pool with the default filter flag value
set to
Pool.MINE_GROUP (VMGroups belonging to the connected user,
and the ones in his group) |
VMGroupPool(Client client,
int filter)
Creates a new VMGroup 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.
|
VMGroup |
getById(int id)
Returns the VMGroup with the given Id from the pool.
|
OneResponse |
info()
Loads the xml representation of all or part of the
VMGroups in the pool.
|
static OneResponse |
info(Client client,
int filter)
Retrieves all or part of the VMGroups in the pool.
|
static OneResponse |
info(Client client,
int filter,
int startId,
int endId)
Retrieves all or part of the VMGroups in the pool.
|
OneResponse |
info(int filter,
int startId,
int endId)
Retrieves all or part of the VMGroups in the pool.
|
OneResponse |
infoAll()
Loads the xml representation of all the VMGroups in the pool.
|
static OneResponse |
infoAll(Client client)
Retrieves all the VMGroups in the pool.
|
OneResponse |
infoGroup()
Loads the xml representation of all the connected user's VMGroups and
the ones in his group.
|
static OneResponse |
infoGroup(Client client)
Retrieves all the connected user's VMGroups and the ones in
his group.
|
OneResponse |
infoMine()
Loads the xml representation of all the connected user's VMGroups.
|
static OneResponse |
infoMine(Client client)
Retrieves all the connected user's VMGroups.
|
java.util.Iterator<VMGroup> |
iterator() |
getLength, info, info, infoAll, infoGroup, infoGroupPrimary, infoMine, item, processInfo, xmlrpcInfo
public VMGroupPool(Client client)
Pool.MINE_GROUP
(VMGroups belonging to the connected user,
and the ones in his group)client
- XML-RPC Client.VMGroupPool(Client, int)
public VMGroupPool(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag to use by default in the method
info()
. Possible values:
Pool.ALL
: All VMGroupsPool.MINE
: Connected user's VMGroupsPool.MINE_GROUP
: Connected user's VMGroups, and the ones in
his groupPool.GROUP
: User's primary group VMGroupspublic 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:
Pool.ALL
: All VMGroupsPool.MINE
: Connected user's VMGroupsPool.MINE_GROUP
: Connected user's VMGroups, and the ones in
his groupPool.GROUP
: User's primary group VMGroupspublic 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:
Pool.ALL
: All VMGroupsPool.MINE
: Connected user's VMGroupsPool.MINE_GROUP
: Connected user's VMGroups, and the ones in
his groupPool.GROUP
: User's primary group VMGroupsstartId
- Lowest Id to retrieveendId
- Biggest Id to retrievepublic OneResponse info()
info
in class Pool
info(Client, int)
public OneResponse infoAll()
public OneResponse infoMine()
public OneResponse infoGroup()
public OneResponse info(int filter, int startId, int endId)
info
in class Pool
filter
- Filter flag to use. Possible values:
Pool.ALL
: All VMGroupsPool.MINE
: Connected user's VMGroupsPool.MINE_GROUP
: Connected user's VMGroups, and the ones in
his groupPool.GROUP
: User's primary group VMGroupsstartId
- Lowest Id to retrieveendId
- Biggest Id to retrievepublic java.util.Iterator<VMGroup> iterator()
iterator
in interface java.lang.Iterable<VMGroup>
Visit OpenNebula.org
Copyright 2002-2018 ©
OpenNebula Project, OpenNebula Systems.