Author: raminder
Date: Fri Oct 26 14:22:30 2012
New Revision: 1402525
URL: http://svn.apache.org/viewvc?rev=1402525&view=rev
Log:
Defined the bean classes
Added:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceParameters.java
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ApplicationDescriptor.java
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/HostDescriptor.java
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceDescriptor.java
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ApplicationDescriptor.java
URL:
http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ApplicationDescriptor.java?rev=1402525&r1=1402524&r2=1402525&view=diff
==============================================================================
---
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ApplicationDescriptor.java
(original)
+++
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ApplicationDescriptor.java
Fri Oct 26 14:22:30 2012
@@ -27,32 +27,102 @@ import javax.xml.bind.annotation.XmlRoot
public class ApplicationDescriptor {
private String appDocument;
private String hostdescName;
- private String serviceDescName;
+ private ServiceDescriptor serviceDesc;
+ private String executablePath;
+ private String workingDir;
+ private String jobType;
+ private String projectNumber;
+ private String queueName;
+ private int maxWallTime;
+ private int cpuCount;
+ private int nodeCount;
+ private int processorsPerNode;
+ private int minMemory;
+ private int maxMemory;
+
+ public String getAppDocument() {
+ return appDocument;
+ }
+ public void setAppDocument(String appDocument) {
+ this.appDocument = appDocument;
+ }
+ public String getHostdescName() {
+ return hostdescName;
+ }
+ public void setHostdescName(String hostdescName) {
+ this.hostdescName = hostdescName;
+ }
+ public ServiceDescriptor getServiceDesc() {
+ return serviceDesc;
+ }
+ public void setServiceDesc(ServiceDescriptor serviceDesc) {
+ this.serviceDesc = serviceDesc;
+ }
+ public String getExecutablePath() {
+ return executablePath;
+ }
+ public void setExecutablePath(String executablePath) {
+ this.executablePath = executablePath;
+ }
+ public String getWorkingDir() {
+ return workingDir;
+ }
+ public void setWorkingDir(String workingDir) {
+ this.workingDir = workingDir;
+ }
+ public String getJobType() {
+ return jobType;
+ }
+ public void setJobType(String jobType) {
+ this.jobType = jobType;
+ }
+ public String getProjectNumber() {
+ return projectNumber;
+ }
+ public void setProjectNumber(String projectNumber) {
+ this.projectNumber = projectNumber;
+ }
+ public String getQueueName() {
+ return queueName;
+ }
+ public void setQueueName(String queueName) {
+ this.queueName = queueName;
+ }
+ public int getMaxWallTime() {
+ return maxWallTime;
+ }
+ public void setMaxWallTime(int maxWallTime) {
+ this.maxWallTime = maxWallTime;
+ }
+ public int getCpuCount() {
+ return cpuCount;
+ }
+ public void setCpuCount(int cpuCount) {
+ this.cpuCount = cpuCount;
+ }
+ public int getNodeCount() {
+ return nodeCount;
+ }
+ public void setNodeCount(int nodeCount) {
+ this.nodeCount = nodeCount;
+ }
+ public int getProcessorsPerNode() {
+ return processorsPerNode;
+ }
+ public void setProcessorsPerNode(int processorsPerNode) {
+ this.processorsPerNode = processorsPerNode;
+ }
+ public int getMinMemory() {
+ return minMemory;
+ }
+ public void setMinMemory(int minMemory) {
+ this.minMemory = minMemory;
+ }
+ public int getMaxMemory() {
+ return maxMemory;
+ }
+ public void setMaxMemory(int maxMemory) {
+ this.maxMemory = maxMemory;
+ }
- public ApplicationDescriptor() {
- }
-
- public String getAppDocument() {
- return appDocument;
- }
-
- public void setAppDocument(String appDocument) {
- this.appDocument = appDocument;
- }
-
- public String getHostdescName() {
- return hostdescName;
- }
-
- public void setHostdescName(String hostdescName) {
- this.hostdescName = hostdescName;
- }
-
- public String getServiceDescName() {
- return serviceDescName;
- }
-
- public void setServiceDescName(String serviceDescName) {
- this.serviceDescName = serviceDescName;
- }
}
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/HostDescriptor.java
URL:
http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/HostDescriptor.java?rev=1402525&r1=1402524&r2=1402525&view=diff
==============================================================================
---
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/HostDescriptor.java
(original)
+++
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/HostDescriptor.java
Fri Oct 26 14:22:30 2012
@@ -21,20 +21,61 @@
package org.apache.airavata.services.registry.rest.resourcemappings;
+import java.util.List;
+
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class HostDescriptor {
- private String hostDocument;
- public HostDescriptor() {
- }
+ private String hostname;
+ private String hostAddress;
+ private List<String> hostType;
+ private List<String> gridFTPEndPoint;
+ private List<String> globusGateKeeperEndPoint;
+ private List<String> imageID;
+ private List<String> instanceID;
+ public String getHostname() {
+ return hostname;
+ }
+ public void setHostname(String hostname) {
+ this.hostname = hostname;
+ }
+ public String getHostAddress() {
+ return hostAddress;
+ }
+ public void setHostAddress(String hostAddress) {
+ this.hostAddress = hostAddress;
+ }
+ public List<String> getHostType() {
+ return hostType;
+ }
+ public void setHostType(List<String> hostType) {
+ this.hostType = hostType;
+ }
+ public List<String> getGridFTPEndPoint() {
+ return gridFTPEndPoint;
+ }
+ public void setGridFTPEndPoint(List<String> gridFTPEndPoint) {
+ this.gridFTPEndPoint = gridFTPEndPoint;
+ }
+ public List<String> getGlobusGateKeeperEndPoint() {
+ return globusGateKeeperEndPoint;
+ }
+ public void setGlobusGateKeeperEndPoint(List<String>
globusGateKeeperEndPoint) {
+ this.globusGateKeeperEndPoint = globusGateKeeperEndPoint;
+ }
+ public List<String> getImageID() {
+ return imageID;
+ }
+ public void setImageID(List<String> imageID) {
+ this.imageID = imageID;
+ }
+ public List<String> getInstanceID() {
+ return instanceID;
+ }
+ public void setInstanceID(List<String> instanceID) {
+ this.instanceID = instanceID;
+ }
- public String getHostDocument() {
- return hostDocument;
- }
-
- public void setHostDocument(String hostDocument) {
- this.hostDocument = hostDocument;
- }
}
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceDescriptor.java
URL:
http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceDescriptor.java?rev=1402525&r1=1402524&r2=1402525&view=diff
==============================================================================
---
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceDescriptor.java
(original)
+++
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceDescriptor.java
Fri Oct 26 14:22:30 2012
@@ -21,20 +21,34 @@
package org.apache.airavata.services.registry.rest.resourcemappings;
+import java.util.List;
+
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ServiceDescriptor {
- private String serviceDocument;
- public ServiceDescriptor() {
- }
+ private String serviceDocument;
+ private List<ServiceParameters> inputParams;
+ private List<ServiceParameters> outputParams;
+ public String getServiceDocument() {
+ return serviceDocument;
+ }
+ public void setServiceDocument(String serviceDocument) {
+ this.serviceDocument = serviceDocument;
+ }
+ public List<ServiceParameters> getInputParams() {
+ return inputParams;
+ }
+ public void setInputParams(List<ServiceParameters> inputParams) {
+ this.inputParams = inputParams;
+ }
+ public List<ServiceParameters> getOutputParams() {
+ return outputParams;
+ }
+ public void setOutputParams(List<ServiceParameters> outputParams) {
+ this.outputParams = outputParams;
+ }
+
- public String getServiceDocument() {
- return serviceDocument;
- }
-
- public void setServiceDocument(String serviceDocument) {
- this.serviceDocument = serviceDocument;
- }
}
Added:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceParameters.java
URL:
http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceParameters.java?rev=1402525&view=auto
==============================================================================
---
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceParameters.java
(added)
+++
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resourcemappings/ServiceParameters.java
Fri Oct 26 14:22:30 2012
@@ -0,0 +1,39 @@
+package org.apache.airavata.services.registry.rest.resourcemappings;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+
+@XmlRootElement
+public class ServiceParameters {
+
+ String type;
+ String name;
+ String dataType;
+ String description;
+
+ public String getType() {
+ return type;
+ }
+ public void setType(String type) {
+ this.type = type;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getDataType() {
+ return dataType;
+ }
+ public void setDataType(String dataType) {
+ this.dataType = dataType;
+ }
+ public String getDescription() {
+ return description;
+ }
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}