airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1388093 - /airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
Date Thu, 20 Sep 2012 16:12:34 GMT
Author: samindaw
Date: Thu Sep 20 16:12:33 2012
New Revision: 1388093

URL: http://svn.apache.org/viewvc?rev=1388093&view=rev
Log:
test commit

Modified:
    airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java

Modified: airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java?rev=1388093&r1=1388092&r2=1388093&view=diff
==============================================================================
--- airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
(original)
+++ airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/AiravataClient.java
Thu Sep 20 16:12:33 2012
@@ -717,37 +717,46 @@ public class AiravataClient implements A
 	}
 
  	public static void main(String[] args) throws Exception {
-// 		AiravataAPI api = AiravataClientUtils.getAPI(new URI("http://gf7.ucs.indiana.edu:8030/jackrabbit/rmi"),
"admin", "admin");
-// 		System.out.println(api.getAiravataManager().getWorkflowInterpreterServiceURL());
-// 		System.exit(0);
-// 		WorkflowSchedulingContext workflowSchedulingContext= WorkflowSchedulingContext.Factory.newInstance();
-//		WorkflowContextHeaderBuilder workflowContextHeader = api.getExecutionManager().createWorkflowContextHeader();
-//		workflowContextHeader.setWorkflowSchedulingContext(workflowSchedulingContext);
-//		workflowSchedulingContext.addNewApplicationSchedulingContext();
-// 		System.out.println(workflowContextHeader.getWorkflowSchedulingContext());
-// 		System.exit(0);
+		AiravataAPI api = AiravataClientUtils.getAPI(new URI("http://localhost:8080"), "admin",
"admin");
+ 		ProvenanceManager pm = api.getProvenanceManager();
+// 		List<String> experiments = pm.getExperiments();
+// 		for (String id : experiments) {
+//			System.out.println(id);
+//		}
+ 		api.getAiravataManager().getEventingServiceURL();
+// 		System.out.println(api.getAiravataManager().getEventingServiceURL());
  		
-		HashMap<String, String> map;
-		URI uri;
-		
-		uri=new URI("http://gw56.quarry.iu.teragrid.org:8090/jackrabbit-webapp-2.4.0/rmi");
-//		uri=new URI("http://localhost:8081/rmi");
-		map = new HashMap<String, String>();
-		map.put("org.apache.jackrabbit.repository.uri", uri.toString());
-		AiravataJCRRegistry reg1 = new AiravataJCRRegistry(uri, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
"admin","admin", map);
-		
-		uri=new URI("http://gw26.quarry.iu.teragrid.org:8090/jackrabbit-webapp-2.4.0/rmi");
-//		uri=new URI("http://localhost:8082/rmi");
-		map = new HashMap<String, String>();
-		map.put("org.apache.jackrabbit.repository.uri", uri.toString());
-		AiravataJCRRegistry reg2 = new AiravataJCRRegistry(uri, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
"admin","admin", map);
-//		Session login = reg2.getRepository().login(new SimpleCredentials("admin","admin".toCharArray()));
-//		login.getRootNode().getNode("experiments").remove();
-//		login.getRootNode().getNode("AIRAVATA_CONFIGURATION_DATA").remove();
-//		login.save();
-//		login.logout();
-//		migrateRespositoryData(reg1, reg2);
-		System.exit(0);
+//// 		AiravataAPI api = AiravataClientUtils.getAPI(new URI("http://gf7.ucs.indiana.edu:8030/jackrabbit/rmi"),
"admin", "admin");
+//// 		System.out.println(api.getAiravataManager().getWorkflowInterpreterServiceURL());
+//// 		System.exit(0);
+//// 		WorkflowSchedulingContext workflowSchedulingContext= WorkflowSchedulingContext.Factory.newInstance();
+////		WorkflowContextHeaderBuilder workflowContextHeader = api.getExecutionManager().createWorkflowContextHeader();
+////		workflowContextHeader.setWorkflowSchedulingContext(workflowSchedulingContext);
+////		workflowSchedulingContext.addNewApplicationSchedulingContext();
+//// 		System.out.println(workflowContextHeader.getWorkflowSchedulingContext());
+//// 		System.exit(0);
+// 		
+//		HashMap<String, String> map;
+//		URI uri;
+//		
+//		uri=new URI("http://gw56.quarry.iu.teragrid.org:8090/jackrabbit-webapp-2.4.0/rmi");
+////		uri=new URI("http://localhost:8081/rmi");
+//		map = new HashMap<String, String>();
+//		map.put("org.apache.jackrabbit.repository.uri", uri.toString());
+//		AiravataJCRRegistry reg1 = new AiravataJCRRegistry(uri, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
"admin","admin", map);
+//		
+//		uri=new URI("http://gw26.quarry.iu.teragrid.org:8090/jackrabbit-webapp-2.4.0/rmi");
+////		uri=new URI("http://localhost:8082/rmi");
+//		map = new HashMap<String, String>();
+//		map.put("org.apache.jackrabbit.repository.uri", uri.toString());
+//		AiravataJCRRegistry reg2 = new AiravataJCRRegistry(uri, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
"admin","admin", map);
+////		Session login = reg2.getRepository().login(new SimpleCredentials("admin","admin".toCharArray()));
+////		login.getRootNode().getNode("experiments").remove();
+////		login.getRootNode().getNode("AIRAVATA_CONFIGURATION_DATA").remove();
+////		login.save();
+////		login.logout();
+////		migrateRespositoryData(reg1, reg2);
+//		System.exit(0);
 	}
  	
 	private static void addNode(Node parentNode, Node childNode) throws RepositoryException{



Mime
View raw message