mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Feature #1727: New option extend for java oca Template info
This commit is contained in:
parent
c10d080064
commit
be70906b2c
@ -84,7 +84,22 @@ public class Template extends PoolElement
|
||||
*/
|
||||
public static OneResponse info(Client client, int id)
|
||||
{
|
||||
return client.call(INFO, id);
|
||||
return info(client, id, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the information of the given Template.
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The template id for the template to retrieve the information from
|
||||
* @param extended optional flag to process the template and include
|
||||
* extended information, such as the SIZE for each DISK
|
||||
* @return If successful the message contains the string
|
||||
* with the information returned by OpenNebula.
|
||||
*/
|
||||
public static OneResponse info(Client client, int id, boolean extended)
|
||||
{
|
||||
return client.call(INFO, id, extended);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -251,7 +266,20 @@ public class Template extends PoolElement
|
||||
*/
|
||||
public OneResponse info()
|
||||
{
|
||||
OneResponse response = info(client, id);
|
||||
return info(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the information of the given Template.
|
||||
*
|
||||
* @param extended optional flag to process the template and include
|
||||
* extended information, such as the SIZE for each DISK
|
||||
* @return If successful the message contains the string
|
||||
* with the information returned by OpenNebula.
|
||||
*/
|
||||
public OneResponse info(boolean extended)
|
||||
{
|
||||
OneResponse response = info(client, id, extended);
|
||||
super.processInfo(response);
|
||||
return response;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user