public interface FHNConnector
| Modifier and Type | Method and Description |
|---|---|
void |
associatePublicIp(URI uri) |
void |
connect()
Connect to the remote infrastructure.
|
URI |
createVM(String vmName,
OSTemplate osTemplate,
org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate,
File script)
Create a VM.
|
URI |
createVM(String vmName,
OSTemplate osTemplate,
org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate,
String script)
Create a VM
|
URI |
createVM(String vmName,
OSTemplate osTemplate,
org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate,
URL script)
Create a VM.
|
void |
destroyVM(URI vmUri)
Destroy the VM with the given URI.
|
void |
destroyVM(VM vm)
Destroy a VM.
|
Network |
getNetwork(URI uri) |
OSTemplate |
getOSTemplate(URI uri)
Return the VM template identified by the given URI.
|
org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate |
getResourceTemplate(URI uri) |
Storage |
getStorage(URI uri)
Return the storage identified by the given URI.
|
VM |
getVM(URI vmUri)
Return the VM identified by the given URI.
|
Collection<Network> |
listNetworks()
Return the list of available networks.
|
Collection<URI> |
listNetworkURIs()
Return the list of URIs of available networks.
|
Collection<OSTemplate> |
listOSTemplates()
Return the list of available OS templates.
|
Collection<URI> |
listOSTemplatesURIs()
Return a list of URIs of the available OS templates.
|
Collection<org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate> |
listResourceTemplates()
Return the list of available Resource templates.
|
Collection<URI> |
listResourceTemplatesURIs()
Return the list of URIs of available resource templates.
|
Collection<Storage> |
listStorages()
Return the list of available storage items.
|
Collection<URI> |
listStorageURIs()
Return the list of URIs of available storage items.
|
Collection<VM> |
listVM()
Return the list of available VMs (in any state).
|
Collection<URI> |
listVMURIs()
Return the list of URIs of the available VMs (in any state).
|
void |
setTrustStore(String path) |
void |
startVM(URI vmUri)
Start the VM with the given URI.
|
void |
startVM(VM vm)
Start the given VM.
|
void |
stopVM(URI vmUri)
Stop the VM with the given URI.
|
void |
stopVM(VM vm)
Start the given VM.
|
void setTrustStore(String path)
void connect()
throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<URI> listOSTemplatesURIs() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<OSTemplate> listOSTemplates() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionOSTemplate getOSTemplate(URI uri)
uri - the URI of the OS template.Collection<URI> listResourceTemplatesURIs() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate> listResourceTemplates() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionorg.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate getResourceTemplate(URI uri)
uri - the URI of the resource templates.Collection<URI> listVMURIs() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<VM> listVM() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionVM getVM(URI vmUri)
vmUri - the uri of the VMURI createVM(String vmName, OSTemplate osTemplate, org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate, String script) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
vmName - the name of the VMot - the OS template (the image to start from)rt - the Resource template (i.e. cores, memory, ...)script - the contextualization script to run at startupcz.cesnet.cloud.occi.api.exception.CommunicationExceptioncz.cesnet.cloud.occi.api.exception.EntityBuildingExceptionURI createVM(String vmName, OSTemplate osTemplate, org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate, File script) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionURI createVM(String vmName, OSTemplate osTemplate, org.gcube.resources.federation.fhnmanager.api.type.ResourceTemplate resourceTemplate, URL script) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid startVM(URI vmUri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid startVM(VM vm) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid stopVM(URI vmUri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid stopVM(VM vm) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid destroyVM(URI vmUri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid destroyVM(VM vm) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
vm - the VM to destroy.cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<URI> listStorageURIs() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<Storage> listStorages() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionStorage getStorage(URI uri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
uri - the uri.cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<URI> listNetworkURIs() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionCollection<Network> listNetworks() throws cz.cesnet.cloud.occi.api.exception.CommunicationException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionNetwork getNetwork(URI uri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException
uri - the URI of the network.cz.cesnet.cloud.occi.api.exception.CommunicationExceptionvoid associatePublicIp(URI uri) throws cz.cesnet.cloud.occi.api.exception.CommunicationException, UnknownHostException, URISyntaxException
cz.cesnet.cloud.occi.api.exception.CommunicationExceptionUnknownHostExceptionURISyntaxExceptionCopyright © 2017. All Rights Reserved.