You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2016/01/25 18:44:42 UTC
[07/57] [abbrv] incubator-geode git commit: GEODE-12: update
copyright headers
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/ec004fc1/gemfire-pulse/src/main/webapp/scripts/pulsescript/PulseFunctions.js
----------------------------------------------------------------------
diff --git a/gemfire-pulse/src/main/webapp/scripts/pulsescript/PulseFunctions.js b/gemfire-pulse/src/main/webapp/scripts/pulsescript/PulseFunctions.js
index 1ca170b..818bba9 100644
--- a/gemfire-pulse/src/main/webapp/scripts/pulsescript/PulseFunctions.js
+++ b/gemfire-pulse/src/main/webapp/scripts/pulsescript/PulseFunctions.js
@@ -1,216 +1,235 @@
-/*=========================================================================
- * Copyright (c) 2012-2014 Pivotal Software, Inc. All Rights Reserved.
- * This product is protected by U.S. and international copyright
- * and intellectual property laws. Pivotal products are covered by
- * one or more patents listed at http://www.pivotal.io/patents.
- *=========================================================================
- */
-
-/**
- * @name PulseFunctions.js
- * @author Ashutosh Zambare.
- * @version 1.0
- *
- */
-
-/**
- @class A thin JavaScript client that accesses the pulse services. It provides an abstraction layer to communicate with the system and returns json object as a result.
-
- @constructor
-
- */
-function PulseFunctions() {
-
-}
-
-/**
- @description get pulse version function
- @param responseBack Indicates which function to be called when a response is received.
- @example
- var pulseVersionBack = function(r, jsonResponse) { ... // handle response };
- pf.pulseVersion(pulseVersionBack, "param1", "param2");
-*/
-PulseFunctions.prototype.pulseVersion = function(responseBack) {
- var po = new Object();
- po.traceNo = UUIDv4();
- ajaxPost("pulse/pulseVersion", po, responseBack);
-};
-
-PulseFunctions.prototype.CluserAlertNotificationFunc = function (funcName, postData) {
- var qp = new Object();
- qp.pageNumber = $('#pageNumber').val();
- postData["SystemAlerts"] = qp;
-};
-
-PulseFunctions.prototype.ClusterKeyStatisticsFunc = function (funcName, postData) {
- var qp = new Object();
- //postData[funcName] = qp;
- postData["ClusterKeyStatistics"] = qp;
-};
-
-PulseFunctions.prototype.ClusterMembersFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterMembers"] = qp;
-};
-
-PulseFunctions.prototype.ClusterJVMPAusesFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterJVMPauses"] = qp;
-};
-
-PulseFunctions.prototype.ClusterWanInformationFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterWANInfo"] = qp;
-};
-
-PulseFunctions.prototype.ClusterMemoryUsageFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterMemoryUsage"] = qp;
-};
-
-PulseFunctions.prototype.ClusterDiskThroughputFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterDiskThroughput"] = qp;
-};
-
-PulseFunctions.prototype.PulseVersionDetailsFunc = function (funcName, postData) {
- var qp = new Object();
- postData["PulseVersion"] = qp;
-
-};
-
-PulseFunctions.prototype.CluserBasicDetailsFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterDetails"] = qp;
-};
-
-
-PulseFunctions.prototype.ClusterMembersRGraphFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterMembersRGraph"] = qp;
-};
-
-PulseFunctions.prototype.ClusterRegionFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterRegion"] = qp;
-};
-
-PulseFunctions.prototype.ClusterRegionsFunc = function (funcName, postData) {
- var qp = new Object();
- postData["ClusterRegions"] = qp;
-};
-
-PulseFunctions.prototype.ClearAllAlertsFunc = function (funcName, postData) {
- var qp = new Object();
- qp.alertType = -1;
- postData["ClearAllAlerts"] = qp;
-};
-
-PulseFunctions.prototype.MemberGatewayHubFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberGatewayHub"] = qp;
-};
-
-PulseFunctions.prototype.MemberAsynchEventQueuesFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberAsynchEventQueues"] = qp;
-};
-
-PulseFunctions.prototype.MemberDiskThroughputFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberDiskThroughput"] = qp;
-};
-
-PulseFunctions.prototype.MemberHeapUsageFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberHeapUsage"] = qp;
-};
-
-PulseFunctions.prototype.MemberClientsFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberClients"] = qp;
-};
-
-PulseFunctions.prototype.MemberRegionSummaryFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberRegions"] = qp;
-};
-
-PulseFunctions.prototype.MemberGCPausesFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberGCPauses"] = qp;
-};
-
-PulseFunctions.prototype.MemberKeyStatisticsFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberKeyStatistics"] = qp;
-};
-
-PulseFunctions.prototype.MembersListFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- postData["MembersList"] = qp;
-};
-
-PulseFunctions.prototype.MemberDetailsFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.memberId = memberId;
- qp.memberName = memberName;
- postData["MemberDetails"] = qp;
-};
-
-PulseFunctions.prototype.QueryStatisticsFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- // later send filter, page etc params here
- //qp.memberId = memberId;
- //qp.memberName = memberName;
- postData["QueryStatistics"] = qp;
-};
-
-PulseFunctions.prototype.ClusterSelectedRegionFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.regionFullPath = regionFullPath;
- postData["ClusterSelectedRegion"] = qp;
-};
-
-PulseFunctions.prototype.ClusterSelectedRegionsMemberFunc = function (funcName, postData) {
- getRequestParams();
- var qp = new Object();
- qp.regionFullPath = regionFullPath;
- postData["ClusterSelectedRegionsMember"] = qp;
-};
-
-/*
-PulseFunctions.prototype.ClusterMembersFunc = function (funcName, postData) {
- var qp = new Object();
- qp.param1 = "7777";
- qp.param2 = 1;
- postData["ClusterMembers"] = qp;
-};*/
+/*
+ * 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.
+ */
+
+/*=========================================================================
+ * Copyright (c) 2012-2014 Pivotal Software, Inc. All Rights Reserved.
+ * This product is protected by U.S. and international copyright
+ * and intellectual property laws. Pivotal products are covered by
+ * one or more patents listed at http://www.pivotal.io/patents.
+ *=========================================================================
+ */
+
+/**
+ * @name PulseFunctions.js
+ * @author Ashutosh Zambare.
+ * @version 1.0
+ *
+ */
+
+/**
+ @class A thin JavaScript client that accesses the pulse services. It provides an abstraction layer to communicate with the system and returns json object as a result.
+
+ @constructor
+
+ */
+function PulseFunctions() {
+
+}
+
+/**
+ @description get pulse version function
+ @param responseBack Indicates which function to be called when a response is received.
+ @example
+ var pulseVersionBack = function(r, jsonResponse) { ... // handle response };
+ pf.pulseVersion(pulseVersionBack, "param1", "param2");
+*/
+PulseFunctions.prototype.pulseVersion = function(responseBack) {
+ var po = new Object();
+ po.traceNo = UUIDv4();
+ ajaxPost("pulse/pulseVersion", po, responseBack);
+};
+
+PulseFunctions.prototype.CluserAlertNotificationFunc = function (funcName, postData) {
+ var qp = new Object();
+ qp.pageNumber = $('#pageNumber').val();
+ postData["SystemAlerts"] = qp;
+};
+
+PulseFunctions.prototype.ClusterKeyStatisticsFunc = function (funcName, postData) {
+ var qp = new Object();
+ //postData[funcName] = qp;
+ postData["ClusterKeyStatistics"] = qp;
+};
+
+PulseFunctions.prototype.ClusterMembersFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterMembers"] = qp;
+};
+
+PulseFunctions.prototype.ClusterJVMPAusesFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterJVMPauses"] = qp;
+};
+
+PulseFunctions.prototype.ClusterWanInformationFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterWANInfo"] = qp;
+};
+
+PulseFunctions.prototype.ClusterMemoryUsageFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterMemoryUsage"] = qp;
+};
+
+PulseFunctions.prototype.ClusterDiskThroughputFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterDiskThroughput"] = qp;
+};
+
+PulseFunctions.prototype.PulseVersionDetailsFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["PulseVersion"] = qp;
+
+};
+
+PulseFunctions.prototype.CluserBasicDetailsFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterDetails"] = qp;
+};
+
+
+PulseFunctions.prototype.ClusterMembersRGraphFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterMembersRGraph"] = qp;
+};
+
+PulseFunctions.prototype.ClusterRegionFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterRegion"] = qp;
+};
+
+PulseFunctions.prototype.ClusterRegionsFunc = function (funcName, postData) {
+ var qp = new Object();
+ postData["ClusterRegions"] = qp;
+};
+
+PulseFunctions.prototype.ClearAllAlertsFunc = function (funcName, postData) {
+ var qp = new Object();
+ qp.alertType = -1;
+ postData["ClearAllAlerts"] = qp;
+};
+
+PulseFunctions.prototype.MemberGatewayHubFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberGatewayHub"] = qp;
+};
+
+PulseFunctions.prototype.MemberAsynchEventQueuesFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberAsynchEventQueues"] = qp;
+};
+
+PulseFunctions.prototype.MemberDiskThroughputFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberDiskThroughput"] = qp;
+};
+
+PulseFunctions.prototype.MemberHeapUsageFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberHeapUsage"] = qp;
+};
+
+PulseFunctions.prototype.MemberClientsFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberClients"] = qp;
+};
+
+PulseFunctions.prototype.MemberRegionSummaryFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberRegions"] = qp;
+};
+
+PulseFunctions.prototype.MemberGCPausesFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberGCPauses"] = qp;
+};
+
+PulseFunctions.prototype.MemberKeyStatisticsFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberKeyStatistics"] = qp;
+};
+
+PulseFunctions.prototype.MembersListFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ postData["MembersList"] = qp;
+};
+
+PulseFunctions.prototype.MemberDetailsFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.memberId = memberId;
+ qp.memberName = memberName;
+ postData["MemberDetails"] = qp;
+};
+
+PulseFunctions.prototype.QueryStatisticsFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ // later send filter, page etc params here
+ //qp.memberId = memberId;
+ //qp.memberName = memberName;
+ postData["QueryStatistics"] = qp;
+};
+
+PulseFunctions.prototype.ClusterSelectedRegionFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.regionFullPath = regionFullPath;
+ postData["ClusterSelectedRegion"] = qp;
+};
+
+PulseFunctions.prototype.ClusterSelectedRegionsMemberFunc = function (funcName, postData) {
+ getRequestParams();
+ var qp = new Object();
+ qp.regionFullPath = regionFullPath;
+ postData["ClusterSelectedRegionsMember"] = qp;
+};
+
+/*
+PulseFunctions.prototype.ClusterMembersFunc = function (funcName, postData) {
+ var qp = new Object();
+ qp.param1 = "7777";
+ qp.param2 = 1;
+ postData["ClusterMembers"] = qp;
+};*/