// Stampede
/*
* Application descriptor creation and saving
*/
ApplicationDescription appDesc1 = new ApplicationDescription(HpcApplicationDeploymentType.type);
HpcApplicationDeploymentType app1 = (HpcApplicationDeploymentType) appDesc1.getType();
ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
name.setStringValue(serviceName);
app1.setApplicationName(name);
ProjectAccountType projectAccountType = app1.addNewProjectAccount();
projectAccountType.setProjectAccountNumber("TG-STA110014S");
QueueType queueType = app1.addNewQueue();
queueType.setQueueName("normal");
app1.setCpuCount(1);
app1.setJobType(JobTypeType.SERIAL);
app1.setNodeCount(1);
app1.setProcessorsPerNode(1);
app1.setMaxWallTime(10);
/*
* Use bat file if it is compiled on Windows
*/
app1.setExecutableLocation("/bin/echo");
/*
* Default tmp location
*/
String tempDir = "/home1/01437/ogce";
app1.setScratchWorkingDirectory(tempDir);
app1.setInstalledParentPath("/usr/bin/");
try {
airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, stampedeHostAddress, appDesc1);
} catch (AiravataAPIInvocationException e) {
e.printStackTrace(); // To change body of catch statement use File |
// Settings | File Templates.
}
// Trestles
/*
* Application descriptor creation and saving
*/
ApplicationDescription appDesc2 = new ApplicationDescription(HpcApplicationDeploymentType.type);
HpcApplicationDeploymentType app2 = (HpcApplicationDeploymentType) appDesc2.getType();
ApplicationDeploymentDescriptionType.ApplicationName name2 = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
name2.setStringValue(serviceName);
app2.setApplicationName(name);
ProjectAccountType projectAccountType2 = app2.addNewProjectAccount();
projectAccountType2.setProjectAccountNumber("sds128");
QueueType queueType2 = app2.addNewQueue();
queueType2.setQueueName("normal");
app2.setCpuCount(1);
app2.setJobType(JobTypeType.SERIAL);
app2.setNodeCount(1);
app2.setProcessorsPerNode(1);
app2.setMaxWallTime(10);
/*
* Use bat file if it is compiled on Windows
*/
app2.setExecutableLocation("/bin/echo");
/*
* Default tmp location
*/
String tempDir2 = "/home/ogce/scratch";
app2.setScratchWorkingDirectory(tempDir2);
app2.setInstalledParentPath("/opt/torque/bin/");
try {
airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, trestleshpcHostAddress, appDesc2);
} catch (AiravataAPIInvocationException e) {
e.printStackTrace(); // To change body of catch statement use File |
// Settings | File Templates.
}
// Lonestar
/*
* Application descriptor creation and saving
*/
ApplicationDescription appDesc3 = new ApplicationDescription(HpcApplicationDeploymentType.type);
HpcApplicationDeploymentType app3 = (HpcApplicationDeploymentType) appDesc3.getType();
ApplicationDeploymentDescriptionType.ApplicationName name3 = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
name3.setStringValue(serviceName);
app3.setApplicationName(name);
ProjectAccountType projectAccountType3 = app3.addNewProjectAccount();
projectAccountType3.setProjectAccountNumber("TG-STA110014S");
QueueType queueType3 = app3.addNewQueue();
queueType3.setQueueName("normal");
app3.setCpuCount(1);
app3.setJobType(JobTypeType.SERIAL);
app3.setNodeCount(1);
app3.setProcessorsPerNode(1);
app3.setMaxWallTime(10);
/*
* Use bat file if it is compiled on Windows
*/
app3.setExecutableLocation("/bin/echo");
/*
* Default tmp location
*/
String tempDir3 = "/home1/01437/ogce";
app3.setScratchWorkingDirectory(tempDir3);
app3.setInstalledParentPath("/opt/sge6.2/bin/lx24-amd64/");
try {
airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, lonestarHostAddress, appDesc3);
} catch (AiravataAPIInvocationException e) {
e.printStackTrace(); // To change body of catch statement use File |