Package | Description |
---|---|
es.upv.i3m.grycap.im | |
es.upv.i3m.grycap.im.exceptions | |
es.upv.i3m.grycap.im.rest.client | |
es.upv.i3m.grycap.im.rest.client.ssl |
Modifier and Type | Method and Description |
---|---|
InfrastructureUris |
InfrastructureManager.addResource(String infId,
String radlFile,
BodyContentType bodyContentType,
boolean... context)
Add the resources specified in the body contents to the infrastructure with
ID 'infId'.
|
VirtualMachineInfo |
InfrastructureManager.alterVm(String infId,
String vmId,
String radlFile,
BodyContentType bodyContentType)
Change the features of the virtual machine with ID 'vmId' in the
infrastructure with with ID 'infId', specified by the RADL document
specified in the body contents.
Return a RADL with information about the virtual machine, like GetVMInfo. |
InfrastructureUri |
InfrastructureManager.createInfrastructure(String infrastructureDefinition,
BodyContentType bodyContentType)
Create and configure an infrastructure with the requirements specified in
the document of the body contents.
If success, it is returned the URI of the new infrastructure. |
void |
InfrastructureManager.destroyInfrastructure(String infId)
Undeploy the virtual machines associated to the infrastructure with ID
'infId'.
|
Property |
InfrastructureManager.getInfrastructureContMsg(String infId)
Return the contextualization log associated to the infrastructure with ID
'infId'.
|
InfrastructureUris |
InfrastructureManager.getInfrastructureInfo(String infId)
Return a list of URIs referencing the virtual machines associated to the
infrastructure with ID 'infId'.
|
InfrastructureUris |
InfrastructureManager.getInfrastructureList()
Return a list of URIs referencing the infrastructures associated to the IM
user.
|
InfOutputValues |
InfrastructureManager.getInfrastructureOutputs(String infId)
Return a class that includes the outputs defined in the TOSCA document.
|
Property |
InfrastructureManager.getInfrastructureRadl(String infId)
Return a json with the original RADL specified to create the infrastructure
with ID 'infId'.
|
InfrastructureState |
InfrastructureManager.getInfrastructureState(String infId)
Return a JSON with the infrastructure and virtual machines states.
The JSON has a 'vm_states' array describing the states of all the machines of the infrastructure and a 'state' that describes the general state of the infrastructure ( e.g. |
VirtualMachineInfo |
InfrastructureManager.getVmInfo(String infId,
String vmId)
Return information about the virtual machine with ID vmId associated to the
infrastructure with ID infId.
|
Property |
InfrastructureManager.getVmProperty(String infId,
String vmId,
VmProperties vmProperty)
Return property 'propertyName' from to the virtual machine with ID 'vmId'
associated to the infrastructure with ID 'infId'.
|
void |
InfrastructureManager.reconfigure(String infId)
Perform the reconfigure action in all the virtual machines in the the
infrastructure with ID 'infID'.
This method starts the contextualization process again. To reconfigure the VMs see the reconfigure methods that include the 'radl' parameter. |
void |
InfrastructureManager.reconfigure(String infId,
String radlFile,
BodyContentType bodyContentType)
Perform the reconfigure action in all the virtual machines of the
infrastructure with ID 'infID.' It updates the configuration of the
infrastructure as indicated in the 'radlFile'.
|
void |
InfrastructureManager.reconfigure(String infId,
String radlFile,
BodyContentType bodyContentType,
List<Integer> vmList)
Perform the reconfigure action in all the virtual machines of the
infrastructure with ID 'infID.' It updates the configuration of the
infrastructure as indicated in the 'radlFile'.
|
void |
InfrastructureManager.removeResource(String infId,
List<String> vmIds,
boolean... context)
Undeploy the virtual machine with ID 'vmId' associated to the
infrastructure with ID 'infId'.
|
void |
InfrastructureManager.removeResource(String infId,
String vmId,
boolean... context)
Undeploy the virtual machine with ID vmId associated to the infrastructure
with ID 'infId'.
The context parameter is optional and is a flag to specify if the contextualization step will be launched just after the VM addition. As default the contextualization flag is set to True. |
void |
InfrastructureManager.startInfrastructure(String infId)
Resume all the virtual machines associated to the infrastructure with ID
'infId', previously stopped with the 'stopInfrastructure' method.
|
void |
InfrastructureManager.startVm(String infId,
String vmId)
Perform the 'start' action in the virtual machine with ID 'vmId' associated
to the infrastructure with ID 'infId'.
|
void |
InfrastructureManager.stopInfrastructure(String infId)
Stop (but do not undeploy) all the virtual machines associated to the
infrastructure with ID 'infId'.
|
void |
InfrastructureManager.stopVm(String infId,
String vmId)
Perform the 'stop' action in the virtual machine with ID 'vmId' associated
to the infrastructure with ID 'infId'.
|
Constructor and Description |
---|
InfrastructureManager(String targetUrl,
AuthorizationHeader authorizationHeader)
Create a new IM client.
|
InfrastructureManager(String targetUrl,
Path authFile)
Create a new IM client.
|
InfrastructureManager(String targetUrl,
String authorizationHeader)
Create a new IM client.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthorizationFileException |
class |
FileException |
class |
HttpMethodNotDefined |
class |
ImClientErrorException |
class |
InfrastructureUuidNotFoundException |
class |
NoEnumFoundException |
class |
ToscaContentTypeNotSupportedException |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.client.Invocation.Builder |
ImClient.configureClient(String path,
RestParameter... parameters)
Returns a Rest client configured with the specified properties.
|
javax.ws.rs.client.Client |
RestClient.createClient() |
<T> T |
ImClient.delete(String path,
Class<T> type,
RestParameter... parameters)
Generic DELETE call.
|
<T> T |
ImClient.get(String path,
Class<T> type,
RestParameter... parameters)
Generic GET call
|
<T> T |
ImClient.post(String path,
Class<T> type,
RestParameter... parameters)
Simplified POST call.
|
<T> T |
ImClient.post(String path,
String bodyContent,
String contentType,
Class<T> type,
RestParameter... parameters)
Generic POST call.
|
<T> T |
ImClient.put(String path,
Class<T> type,
RestParameter... parameters)
Simplified PUT call.
|
<T> T |
ImClient.put(String path,
String bodyContent,
String contentType,
Class<T> type,
RestParameter... parameters)
Generic PUT call.
|
Constructor and Description |
---|
ImClient(String targetUrl,
Path authFilePath)
Creates a new client using the 'imServiceUrl' as endpoint.
Loads the authorization file from the parameter 'authFilePath'. |
ImClient(String targetUrl,
String authorizationHeader)
Creates a new client using the 'imServiceUrl' as endpoint.
Loads the authorization credentials from the 'authorizationHeader' parameter. |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.client.Client |
SslTrustAllClient.createClient()
Build a new Rest client with SSL security that trusts all certificates in
SSL/TLS.
|
Copyright © 2016. All rights reserved.