ALL, client, elementName, GROUP, infoMethod, MINE, MINE_GROUP, poolElements, xpath
Constructor and Description |
---|
HookPool(Client client)
Creates a new Hook pool with the default filter flag value
set to (Template belonging to the connected user,
and the ones in his group)
|
HookPool(Client client,
int filter)
Creates a new Hook 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.
|
Hook |
getById(int id)
Returns the Hook with the given Id from the pool.
|
OneResponse |
info()
Loads the xml representation of all or part of the
Hooks in the pool.
|
static OneResponse |
info(Client client,
int filter)
Retrieves all or part of the Hooks in the pool.
|
static OneResponse |
info(Client client,
int filter,
int startId,
int endId)
Retrieves all or part of the Hooks in the pool.
|
OneResponse |
info(int filter,
int startId,
int endId)
Retrieves all or part of the Hooks in the pool.
|
OneResponse |
infoAll()
Loads the xml representation of all the Hook in the pool.
|
static OneResponse |
infoAll(Client client)
Retrieves all the Hooks in the pool.
|
OneResponse |
infoGroup()
Loads the xml representation of all the connected user's Hooks and
the ones in his group.
|
static OneResponse |
infoGroup(Client client)
Retrieves all the connected user's Hooks and the ones in
his group.
|
OneResponse |
infoMine()
Loads the xml representation of all the connected user's Hook.
|
static OneResponse |
infoMine(Client client)
Retrieves all the connected user's Hooks.
|
java.util.Iterator<Hook> |
iterator() |
getLength, info, info, infoAll, infoGroup, infoGroupPrimary, infoMine, item, processInfo, xmlrpcInfo
public HookPool(Client client)
client
- XML-RPC Client.public HookPool(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<Hook> iterator()
iterator
in interface java.lang.Iterable<Hook>
Visit OpenNebula.io
Copyright 2002-2021 ©
OpenNebula Project, OpenNebula Systems.