You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ka...@apache.org on 2014/08/26 00:49:13 UTC
git commit: [HELIX-460] Add back healthcheck interface for
compatibility
Repository: helix
Updated Branches:
refs/heads/helix-0.6.x 708935404 -> 19de46fe5
[HELIX-460] Add back healthcheck interface for compatibility
Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/19de46fe
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/19de46fe
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/19de46fe
Branch: refs/heads/helix-0.6.x
Commit: 19de46fe50e26dceb06b147ce97c769b584e7979
Parents: 7089354
Author: Kanak Biscuitwala <ka...@apache.org>
Authored: Mon Aug 25 10:47:25 2014 -0700
Committer: Kanak Biscuitwala <ka...@apache.org>
Committed: Mon Aug 25 10:47:25 2014 -0700
----------------------------------------------------------------------
.../webapp/resources/WorkflowsResource.java | 19 ++++++++++
.../helix/healthcheck/HealthReportProvider.java | 39 ++++++++++++++++++++
2 files changed, 58 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/helix/blob/19de46fe/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/WorkflowsResource.java
----------------------------------------------------------------------
diff --git a/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/WorkflowsResource.java b/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/WorkflowsResource.java
index f09155b..9175530 100644
--- a/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/WorkflowsResource.java
+++ b/helix-admin-webapp/src/main/java/org/apache/helix/webapp/resources/WorkflowsResource.java
@@ -1,5 +1,24 @@
package org.apache.helix.webapp.resources;
+/*
+ * 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.
+ */
+
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
http://git-wip-us.apache.org/repos/asf/helix/blob/19de46fe/helix-core/src/main/java/org/apache/helix/healthcheck/HealthReportProvider.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/healthcheck/HealthReportProvider.java b/helix-core/src/main/java/org/apache/helix/healthcheck/HealthReportProvider.java
new file mode 100644
index 0000000..f7afd04
--- /dev/null
+++ b/helix-core/src/main/java/org/apache/helix/healthcheck/HealthReportProvider.java
@@ -0,0 +1,39 @@
+package org.apache.helix.healthcheck;
+
+/*
+ * 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.
+ */
+
+import java.util.Map;
+
+public abstract class HealthReportProvider {
+ public static final String _defaultPerfCounters = "defaultPerfCounters";
+
+ public abstract Map<String, String> getRecentHealthReport();
+
+ public Map<String, Map<String, String>> getRecentPartitionHealthReport() {
+ return null;
+ }
+
+ public abstract void resetStats();
+
+ public String getReportName() {
+ return _defaultPerfCounters;
+ }
+
+}