org.opennebula.client.group
public class Group extends PoolElement
client, id, xml, xpath
Modifier | Constructor and Description |
---|---|
|
Group(int id,
Client client)
Creates a new Group representation.
|
protected |
Group(org.w3c.dom.Node xmlElement,
Client client) |
Modifier and Type | Method and Description |
---|---|
static OneResponse |
addProvider(Client client,
int id,
int zoneId,
int clusterId)
Adds a resource provider to this group
|
OneResponse |
addProvider(int zoneId,
int clusterId)
Adds a resource provider to this group
|
static OneResponse |
allocate(Client client,
java.lang.String name)
Allocates a new group in OpenNebula
|
boolean |
contains(int uid)
Returns whether or not the user is part of this group
|
OneResponse |
delete()
Deletes the group from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes a group from OpenNebula.
|
static OneResponse |
delProvider(Client client,
int id,
int zoneId,
int clusterId)
Deletes a resource provider from this group
|
OneResponse |
delProvider(int zoneId,
int clusterId)
Deletes a resource provider from this group
|
OneResponse |
info()
Loads the xml representation of the group.
|
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given group.
|
static OneResponse |
setQuota(Client client,
int id,
java.lang.String quota_template)
Replaces the group quota template contents.
|
OneResponse |
setQuota(java.lang.String quota_template)
Replaces the group quota template contents.
|
static OneResponse |
update(Client client,
int id,
java.lang.String new_template,
boolean append)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template,
boolean append)
Replaces the template contents.
|
public Group(int id, Client client)
id
- The group id.client
- XML-RPC Client.protected Group(org.w3c.dom.Node xmlElement, Client client)
PoolElement
public static OneResponse allocate(Client client, java.lang.String name)
client
- XML-RPC Client.name
- Name for the new group.public static OneResponse info(Client client, int id)
client
- XML-RPC Client.id
- The group id.public static OneResponse delete(Client client, int id)
client
- XML-RPC Client.id
- The group id.public static OneResponse setQuota(Client client, int id, java.lang.String quota_template)
client
- XML-RPC Client.id
- The group id of the target group we want to modify.quota_template
- New quota template contents.public static OneResponse addProvider(Client client, int id, int zoneId, int clusterId)
client
- XML-RPC Client.id
- The group id.zoneId
- The zone id.clusterId
- The cluster id.public static OneResponse delProvider(Client client, int id, int zoneId, int clusterId)
client
- XML-RPC Client.id
- The group id.zoneId
- The zone id.clusterId
- The cluster id.public static OneResponse update(Client client, int id, java.lang.String new_template, boolean append)
client
- XML-RPC Client.id
- The group id of the target group we want to modify.new_template
- New template contentsappend
- True to append new attributes instead of replace the whole templatepublic OneResponse info()
info(Client, int)
public OneResponse delete()
delete(Client, int)
public OneResponse setQuota(java.lang.String quota_template)
quota_template
- New quota template contents.public OneResponse addProvider(int zoneId, int clusterId)
zoneId
- The zone id.clusterId
- The cluster id.public OneResponse delProvider(int zoneId, int clusterId)
zoneId
- The zone id.clusterId
- The cluster id.public OneResponse update(java.lang.String new_template)
new_template
- New template contentspublic OneResponse update(java.lang.String new_template, boolean append)
new_template
- New template contentsappend
- True to append new attributes instead of replace the whole templatepublic boolean contains(int uid)
uid
- The user ID.Visit OpenNebula.org
Copyright 2002-2014 ©
OpenNebula Project (OpenNebula.org), C12G Labs.