Commit a5471940 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added more properties for EC2

parent d012e175
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</properties> </properties>
<parent> <parent>
<groupId>nl.uva.sne.drip</groupId> <groupId>nl.uva.sne.drip</groupId>
<artifactId>drip</artifactId> <artifactId>conf</artifactId>
<version>3.0.0</version> <version>3.0.0</version>
</parent> </parent>
......
...@@ -17,6 +17,132 @@ import javax.validation.Valid; ...@@ -17,6 +17,132 @@ import javax.validation.Valid;
public class CloudsStormVM { public class CloudsStormVM {
/**
* @return the iOPS
*/
public Integer getiOPS() {
return iOPS;
}
/**
* @param iOPS the iOPS to set
*/
public void setiOPS(Integer iOPS) {
this.iOPS = iOPS;
}
/**
* @return the vpcId
*/
public String getVpcId() {
return vpcId;
}
/**
* @param vpcId the vpcId to set
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
* @return the subnetId
*/
public String getSubnetId() {
return subnetId;
}
/**
* @param subnetId the subnetId to set
*/
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
/**
* @return the securityGroupId
*/
public String getSecurityGroupId() {
return securityGroupId;
}
/**
* @param securityGroupId the securityGroupId to set
*/
public void setSecurityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
}
/**
* @return the instanceId
*/
public String getInstanceId() {
return instanceId;
}
/**
* @param instanceId the instanceId to set
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
/**
* @return the volumeId
*/
public Object getVolumeId() {
return volumeId;
}
/**
* @param volumeId the volumeId to set
*/
public void setVolumeId(Object volumeId) {
this.volumeId = volumeId;
}
/**
* @return the routeTableId
*/
public String getRouteTableId() {
return routeTableId;
}
/**
* @param routeTableId the routeTableId to set
*/
public void setRouteTableId(String routeTableId) {
this.routeTableId = routeTableId;
}
/**
* @return the internetGatewayId
*/
public String getInternetGatewayId() {
return internetGatewayId;
}
/**
* @param internetGatewayId the internetGatewayId to set
*/
public void setInternetGatewayId(String internetGatewayId) {
this.internetGatewayId = internetGatewayId;
}
/**
* @return the diskSize
*/
public Integer getDiskSize() {
return diskSize;
}
/**
* @param diskSize the diskSize to set
*/
public void setDiskSize(Integer diskSize) {
this.diskSize = diskSize;
}
/** /**
* @return the vEngineClass * @return the vEngineClass
*/ */
...@@ -133,6 +259,7 @@ public class CloudsStormVM { ...@@ -133,6 +259,7 @@ public class CloudsStormVM {
private String name = null; private String name = null;
@JsonProperty("nodeType") @JsonProperty("nodeType")
@JsonAlias({"type"})
private String nodeType = null; private String nodeType = null;
@JsonProperty("VEngineClass") @JsonProperty("VEngineClass")
...@@ -195,6 +322,9 @@ public class CloudsStormVM { ...@@ -195,6 +322,9 @@ public class CloudsStormVM {
@JsonProperty("OS_GUID") @JsonProperty("OS_GUID")
private String OS_GUID = null; private String OS_GUID = null;
@JsonProperty("diskSize")
private Integer diskSize;
public CloudsStormVM name(String name) { public CloudsStormVM name(String name) {
this.name = name; this.name = name;
return this; return this;
...@@ -558,4 +688,22 @@ public class CloudsStormVM { ...@@ -558,4 +688,22 @@ public class CloudsStormVM {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
@JsonProperty("IOPS")
private Integer iOPS;
@JsonProperty("vpcId")
private String vpcId;
@JsonProperty("subnetId")
private String subnetId;
@JsonProperty("securityGroupId")
private String securityGroupId;
@JsonProperty("instanceId")
private String instanceId;
@JsonProperty("volumeId")
private Object volumeId;
@JsonProperty("routeTableId")
private String routeTableId;
@JsonProperty("internetGatewayId")
private String internetGatewayId;
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</properties> </properties>
<parent> <parent>
<groupId>nl.uva.sne.drip</groupId> <groupId>nl.uva.sne.drip</groupId>
<artifactId>drip</artifactId> <artifactId>conf</artifactId>
<version>3.0.0</version> <version>3.0.0</version>
</parent> </parent>
<build> <build>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<dependency> <dependency>
<groupId>nl.uva.sne.drip</groupId> <groupId>nl.uva.sne.drip</groupId>
<artifactId>drip-commons</artifactId> <artifactId>commons</artifactId>
<version>3.0.0</version> <version>3.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
...@@ -144,12 +144,5 @@ ...@@ -144,12 +144,5 @@
</dependency> </dependency>
<!-- <dependency>
<groupId>nl.uva.sne.drip</groupId>
<artifactId>drip-manager-services</artifactId>
<version>3.0.0</version>
<type>jar</type>
</dependency> -->
</dependencies> </dependencies>
</project> </project>
...@@ -41,6 +41,28 @@ ...@@ -41,6 +41,28 @@
type: "string" type: "string"
OS_GUID: OS_GUID:
type: "string" type: "string"
diskSize:
type: "integer"
IOPS:
type: "integer"
vpcId:
type: "string"
subnetId:
type: "string"
securityGroupId:
type: "string"
instanceId:
type: "string"
volumeId:
type: "string"
routeTableId:
type: "string"
internetGatewayId:
type: "string"
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
type: "boolean" type: "boolean"
sliceName: sliceName:
type: "string" type: "string"
diskSize:
type: "string"
duration: duration:
type: "float" type: "float"
VMs: VMs:
......
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath nl.uva.sne.drip.provisioner.RPCServer</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
</action>
</actions>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>nl.uva.sne.drip</groupId> <groupId>nl.uva.sne.drip</groupId>
<artifactId>drip-commons</artifactId> <artifactId>commons</artifactId>
<version>3.0.0</version> <version>3.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
......
...@@ -296,8 +296,8 @@ class CloudStormService { ...@@ -296,8 +296,8 @@ class CloudStormService {
private ToscaTemplate runCloudStorm(String tempInputDirPath) throws IOException, ApiException { private ToscaTemplate runCloudStorm(String tempInputDirPath) throws IOException, ApiException {
String[] args = new String[]{"run", tempInputDirPath}; String[] args = new String[]{"run", tempInputDirPath};
standalone.MainAsTool.main(args); // standalone.MainAsTool.main(args);
// tempInputDirPath = "/tmp/Input-174407085024744"; tempInputDirPath = "/tmp/Input-26386504078656";
CloudsStormTopTopology _top = objectMapper.readValue(new File(tempInputDirPath + TOPOLOGY_RELATIVE_PATH CloudsStormTopTopology _top = objectMapper.readValue(new File(tempInputDirPath + TOPOLOGY_RELATIVE_PATH
+ TOP_TOPOLOGY_FILE_NAME), + TOP_TOPOLOGY_FILE_NAME),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment