Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All IaaSes that are going to be supported by Cloud Controller, should extend this abstract class.

 * @param iaasInfo corresponding {@link IaasProvider}

Code Block
public abstract class Iaas {
    public abstract void buildComputeServiceAndTemplate(IaasProvider iaasInfo);
    public abstract void setDynamicPayload(IaasProvider iaasInfo);
    public abstract String associateAddress(IaasProvider iaasInfo, NodeMetadata node);
    public abstract boolean createKeyPairFromPublicKey(IaasProvider iaasInfo, String region, String keyPairName, String publicKey);
}

...

Click the respective function link to learn more on its functionality.

Table of Contents
maxLevel

...

4

...

minLevel

...

4

...

 

buildComputeServiceAndTemplate

...

Code Block
public abstract void setDynamicPayload(IaasProvider iaasInfo);

 

Method Description

This method provides a way to set the payload that can be obtained from IaasProvider#getPayload() in the Template of this IaaS.

...

Code Block
public abstract String associateAddress(IaasProvider iaasInfo, NodeMetadata node);

 

Method Description

This will obtain an IP address from the allocated list and associate that IP with this node.

 

Parameter description
ParameterDescription
iaasInfo
The corresponding Iaas Provider.
node

Thee node to be associated with an IP.

 

Return value description

 

Return Value 

Description

String

The associated public IP.

 

 

createKeyPairFromPublicKey

...

Code Block
public abstract boolean createKeyPairFromPublicKey(IaasProvider iaasInfo, String region, String keyPairName, String publicKey);

 

 

Method Description

 

This method should create a Key Pair corresponding to a given public key, in the respective region having the given name. This method should also override the value of the key pair in the Template of this IaaS.

 

 

Parameter description

 

ParameterDescription
iaasInfo
The corresponding Iaas Provider.
regionRegion that the key pair will get created.
keyPairNameName of the key pair.
NOTE:
Jclouds adds a prefix : <code>jclouds#</code>
publicKeyPublic key from which the key pair will be created.

 

Return value description

Return Value 

Description

boolean
Whether the key pair creation is successful or not.