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 |
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.
|
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.
|
public Group(int id,
Client client)
id - The group id.client - XML-RPC Client.protected Group(org.w3c.dom.Node xmlElement,
Client client)
PoolElementpublic 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 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 boolean contains(int uid)
uid - The user ID.Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.