Author: samindaw
Date: Mon Dec 31 19:47:09 2012
New Revision: 1427231
URL: http://svn.apache.org/viewvc?rev=1427231&view=rev
Log:
workflow output data settings bean API
Added:
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java
(with props)
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java
(with props)
Added:
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java
URL:
http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java?rev=1427231&view=auto
==============================================================================
---
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java
(added)
+++
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java
Mon Dec 31 19:47:09 2012
@@ -0,0 +1,78 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.airavata.client.api;
+
+public interface OutputDataSettings {
+
+ /**
+ * Retrieve the pre-specified staging location for output data
+ * @return
+ */
+ public String getOutputDataDirectory();
+
+ /**
+ * Retrieve the associated data registry location for cataloging data
separately
+ * @return
+ */
+ public String getDataRegistryUrl();
+
+ /**
+ * Should the intermediate workflow output data should be kept or
discarded
+ * @return
+ */
+ public Boolean isDataPersistent();
+
+ /**
+ * Setup a custom pre-specified staging location for output data
+ * @param outputDataDirectory - Path for output data directory
+ */
+ public void setOutputDataDirectory(String outputDataDirectory);
+
+ /**
+ * Setup a URL for pre-specified data registry (instead of the default)
which will
+ * catalog data
+ * @param dataRegistryUrl
+ */
+ public void setDataRegistryUrl(String dataRegistryUrl);
+
+ /**
+ * Retain or discard intermediate output data
+ * @param isDataPersistance - if true (default value) the intermediate
output data is
+ * kept, else discarded.
+ */
+ public void setDataPersistent(boolean isDataPersistance);
+
+ /**
+ * Default output data directory will be used.
+ */
+ public void resetOutputDataDirectory();
+
+ /**
+ * Default data registry location will be used.
+ */
+ public void resetDataRegistryUrl();
+
+ /**
+ * Default data persistent settings will be used.
+ */
+ public void resetDataPersistent();
+}
Propchange:
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/OutputDataSettings.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java
URL:
http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java?rev=1427231&view=auto
==============================================================================
---
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java
(added)
+++
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java
Mon Dec 31 19:47:09 2012
@@ -0,0 +1,58 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.airavata.client.api;
+
+public interface WorkflowOutputDataSettings {
+
+ /**
+ * Retrive the list of application output data settings
+ * @return
+ */
+ public OutputDataSettings[] getOutputDataSettings();
+
+ /**
+ * Add a new appliation output data settings
+ * @param outputDataDirectory
+ * @param dataRegistryURL
+ * @param isDataPersistent
+ * @return
+ */
+ public OutputDataSettings addNewOutputDataSettings(String
outputDataDirectory, String dataRegistryURL, boolean isDataPersistent);
+
+ /**
+ * Add new application putput data settings
+ * @param outputDataSettings
+ */
+ public void
addNewOutputDataSettings(OutputDataSettings...outputDataSettings);
+
+ /**
+ * Remove the application output data settings from the workflow output
data settings
+ * @param outputDataSettings
+ */
+ public void removeOutputDataSettings(OutputDataSettings
outputDataSettings);
+
+ /**
+ * Remove all application output data settings
+ */
+ public void removeAllOutputDataSettings();
+
+}
Propchange:
airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/WorkflowOutputDataSettings.java
------------------------------------------------------------------------------
svn:mime-type = text/plain