You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sh...@apache.org on 2015/06/17 21:04:14 UTC

airavata git commit: Create modified zookeeper data structure for experiment using curator

Repository: airavata
Updated Branches:
  refs/heads/master ae41a3a4d -> 367ddca6b


Create modified zookeeper data structure for experiment using curator


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/367ddca6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/367ddca6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/367ddca6

Branch: refs/heads/master
Commit: 367ddca6b6dca807e1dfffea903b574ebf195c60
Parents: ae41a3a
Author: Shameera Rathanyaka <sh...@gmail.com>
Authored: Wed Jun 17 15:03:59 2015 -0400
Committer: Shameera Rathanyaka <sh...@gmail.com>
Committed: Wed Jun 17 15:03:59 2015 -0400

----------------------------------------------------------------------
 .../gfac/core/watcher/CancelRequestWatcher.java | 31 ++++++++++++++++++++
 .../core/watcher/RedeliveryRequestWatcher.java  | 31 ++++++++++++++++++++
 2 files changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/367ddca6/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/CancelRequestWatcher.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/CancelRequestWatcher.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/CancelRequestWatcher.java
new file mode 100644
index 0000000..41bb0f0
--- /dev/null
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/CancelRequestWatcher.java
@@ -0,0 +1,31 @@
+/*
+ *
+ * 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.gfac.core.watcher;
+
+import org.apache.curator.framework.api.CuratorWatcher;
+import org.apache.zookeeper.WatchedEvent;
+
+public class CancelRequestWatcher implements CuratorWatcher {
+	@Override
+	public void process(WatchedEvent watchedEvent) throws Exception {
+		// this watcher change data in cancel listener node in the experiment node
+	}
+}

http://git-wip-us.apache.org/repos/asf/airavata/blob/367ddca6/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/RedeliveryRequestWatcher.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/RedeliveryRequestWatcher.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/RedeliveryRequestWatcher.java
new file mode 100644
index 0000000..c9ad139
--- /dev/null
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/watcher/RedeliveryRequestWatcher.java
@@ -0,0 +1,31 @@
+/*
+ *
+ * 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.gfac.core.watcher;
+
+import org.apache.curator.framework.api.CuratorWatcher;
+import org.apache.zookeeper.WatchedEvent;
+
+public class RedeliveryRequestWatcher implements CuratorWatcher {
+	@Override
+	public void process(WatchedEvent watchedEvent) throws Exception {
+		// get the data in experiment node and compare with gfac server name.
+	}
+}