http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/dags.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/dags.js b/tez-ui2/src/main/webapp/app/controllers/dags.js deleted file mode 100644 index b35c693..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/dags.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import TableController from './table'; -import ColumnDefinition from 'em-table/utils/column-definition'; -import TableDefinition from 'em-table/utils/table-definition'; - -export default TableController.extend({ - - queryParams: ["dagName", "dagID", "submitter", "status", "appID", "callerID"], - dagName: "", - dagID: "", - submitter: "", - status: "", - appID: "", - callerID: "", - - // Because pageNo is a query param added by table controller, and in the current design - // we don't want page to be a query param as only the first page will be loaded first. - pageNum: 1, - - breadcrumbs: [], - - moreAvailable: false, - loadingMore: false, - - headerComponentNames: ['dags-page-search', 'table-controls', 'dags-pagination-ui'], - - _definition: TableDefinition.create(), - // Using computed, as observer won't fire if the property is not used - definition: Ember.computed("dagName", "dagID", "submitter", "status", - "appID", "callerID", "pageNum", "moreAvailable", "loadingMore", function () { - - var definition = this.get("_definition"); - - definition.setProperties({ - dagName: this.get("dagName"), - dagID: this.get("dagID"), - submitter: this.get("submitter"), - status: this.get("status"), - appID: this.get("appID"), - callerID: this.get("callerID"), - - pageNum: this.get("pageNum"), - - moreAvailable: this.get("moreAvailable"), - loadingMore: this.get("loadingMore") - }); - - return definition; - }), - - columns: ColumnDefinition.make([{ - id: 'name', - headerTitle: 'Dag Name', - contentPath: 'name', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "dag", - model: row.get("entityID"), - text: row.get("name") - }; - } - },{ - id: 'entityID', - headerTitle: 'Id', - contentPath: 'entityID' - },{ - id: 'submitter', - headerTitle: 'Submitter', - contentPath: 'submitter' - },{ - id: 'status', - headerTitle: 'Status', - contentPath: 'status', - cellComponentName: 'em-table-status-cell', - observePath: true - },{ - id: 'progress', - headerTitle: 'Progress', - contentPath: 'progress', - cellComponentName: 'em-table-progress-cell', - observePath: true - },{ - id: 'startTime', - headerTitle: 'Start Time', - contentPath: 'startTime', - cellComponentName: 'date-formatter', - },{ - id: 'endTime', - headerTitle: 'End Time', - contentPath: 'endTime', - cellComponentName: 'date-formatter', - },{ - id: 'duration', - headerTitle: 'Duration', - contentPath: 'duration', - cellDefinition: { - type: 'duration' - } - },{ - id: 'appID', - headerTitle: 'Application Id', - contentPath: 'appID', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "app", - model: row.get("appID"), - text: row.get("appID") - }; - } - },{ - id: 'queue', - headerTitle: 'Queue', - contentPath: 'queue' - },{ - id: 'callerID', - headerTitle: 'Caller ID', - contentPath: 'callerID' - },{ - id: 'callerType', - headerTitle: 'Caller Type', - contentPath: 'callerType' - },{ - id: 'logs', - headerTitle: 'Logs', - contentPath: 'containerLogs', - cellComponentName: "em-table-linked-cell", - cellDefinition: { - target: "_blank" - } - }]), - - getCounterColumns: function () { - return this._super().concat(this.get('env.app.tables.defaultColumns.dagCounters')); - }, - - actions: { - search: function (properties) { - this.setProperties(properties); - }, - pageChanged: function (pageNum) { - this.set("pageNum", pageNum); - }, - } - -});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/multi-table.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/multi-table.js b/tez-ui2/src/main/webapp/app/controllers/multi-table.js deleted file mode 100644 index 3a11830..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/multi-table.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import TableController from './table'; -import CounterColumnDefinition from '../utils/counter-column-definition'; - -export default TableController.extend({ - - _visibleColumnsObserver: Ember.on("init", Ember.observer("visibleColumns", function () { - Ember.run.later(this, "sendCountersChanged"); - })), - - sendCountersChanged: function () { - var visibleCounters = this.get("visibleColumns").filter(function (definition) { - return definition instanceof CounterColumnDefinition; - }); - this.send("countersToPollChanged", visibleCounters); - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/page.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/page.js b/tez-ui2/src/main/webapp/app/controllers/page.js deleted file mode 100644 index 14ad6b5..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/page.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 AbstractController from './abstract'; - -export default AbstractController.extend({ - // Any page specific -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/parent.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/parent.js b/tez-ui2/src/main/webapp/app/controllers/parent.js deleted file mode 100644 index 089ed77..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/parent.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import AbstractController from './abstract'; - -export default AbstractController.extend({ - polling: Ember.inject.service("pollster"), - actions: { - autoRefreshChanged: function (state) { - this.get("polling").set("active", state); - } - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/table.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/table.js b/tez-ui2/src/main/webapp/app/controllers/table.js deleted file mode 100644 index f0bce1c..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/table.js +++ /dev/null @@ -1,166 +0,0 @@ -/*global more*/ -/** - * 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 Ember from 'ember'; - -import AbstractController from './abstract'; -import TableDefinition from 'em-table/utils/table-definition'; -import isIOCounter from '../utils/misc'; - -import CounterColumnDefinition from '../utils/counter-column-definition'; - -var MoreObject = more.Object; - -export default AbstractController.extend({ - queryParams: ["rowCount", "searchText", "sortColumnId", "sortOrder", "pageNo"], - rowCount: 10, - searchText: "", - sortColumnId: "", - sortOrder: "", - pageNo: 1, - - columns: [], - - headerComponentNames: ['em-table-search-ui', 'table-controls', 'em-table-pagination-ui'], - - visibleColumnIDs: {}, - columnSelectorTitle: 'Column Selector', - columnSelectorMessage: "", - - polling: Ember.inject.service("pollster"), - - definition: Ember.computed("model", function () { - return TableDefinition.create({ - rowCount: this.get("rowCount"), - searchText: this.get("searchText"), - sortColumnId: this.get("sortColumnId"), - sortOrder: this.get("sortOrder"), - pageNo: this.get("pageNo") - }); - }), - - storageID: Ember.computed("name", function () { - return this.get("name") + ":visibleColumnIDs"; - }), - - initVisibleColumns: Ember.on("init", Ember.observer("columns", function () { //To reset on entity change - var visibleColumnIDs = this.get("localStorage").get(this.get("storageID")) || {}; - - this.get('columns').forEach(function (config) { - if(visibleColumnIDs[config.id] !== false) { - visibleColumnIDs[config.id] = true; - } - }); - - this.set('visibleColumnIDs', visibleColumnIDs); - })), - - beforeSort: function (columnDefinition) { - if(this.get("polling.isReady")) { - let columnName = columnDefinition.get("headerTitle"); - switch(columnDefinition.get("contentPath")) { - case "counterGroupsHash": - columnName = "Counters"; - /* falls through */ - case "status": - case "progress": - this.send("openModal", { - title: "Cannot sort!", - content: `Sorting on ${columnName} is disabled for running DAGs!` - }); - return false; - } - } - return true; - }, - - allColumns: Ember.computed("columns", function () { - var columns = this.get("columns"), - counters = this.getCounterColumns(), - beforeSort = this.get("beforeSort").bind(this); - - columns = columns.concat(CounterColumnDefinition.make(counters)); - - columns.forEach(function (column) { - column.set("beforeSort", beforeSort); - }); - - return columns; - }), - - visibleColumns: Ember.computed('visibleColumnIDs', 'allColumns', function() { - var visibleColumnIDs = this.visibleColumnIDs; - return this.get('allColumns').filter(function (column) { - return visibleColumnIDs[column.get("id")]; - }); - }), - - getCounterColumns: function () { - return this.get('env.app.tables.defaultColumns.counters'); - }, - - actions: { - searchChanged: function (searchText) { - this.set("searchText", searchText); - }, - sortChanged: function (sortColumnId, sortOrder) { - this.setProperties({ - sortColumnId, - sortOrder - }); - }, - rowCountChanged: function (rowCount) { - this.set("rowCount", rowCount); - }, - pageChanged: function (pageNum) { - this.set("pageNo", pageNum); - }, - - rowsChanged: function (rows) { - this.send("setPollingRecords", rows); - }, - - // Column selection actions - openColumnSelector: function () { - this.send("openModal", "column-selector", { - title: this.get('columnSelectorTitle'), - targetObject: this, - content: { - message: this.get('columnSelectorMessage'), - columns: this.get('allColumns'), - visibleColumnIDs: this.get('visibleColumnIDs') - } - }); - }, - columnsSelected: function (visibleColumnIDs) { - var columnIDs = {}; - - MoreObject.forEach(visibleColumnIDs, function (key, value) { - if(!isIOCounter(key)) { - columnIDs[key] = value; - } - }); - - if(!MoreObject.equals(columnIDs, this.get("visibleColumnIDs"))) { - this.get("localStorage").set(this.get("storageID"), columnIDs); - this.set('visibleColumnIDs', columnIDs); - } - } - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/task.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/task.js b/tez-ui2/src/main/webapp/app/controllers/task.js deleted file mode 100644 index ffd4ffe..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/task.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import ParentController from './parent'; - -export default ParentController.extend({ - breadcrumbs: Ember.computed("model.dag", function () { - var dagName = this.get("model.dag.name"), - vertexName = this.get("model.vertexName") || this.get("model.vertexIndex"), - taskIndex = this.get("model.index"); - - return [{ - text: `DAG [ ${dagName} ]`, - routeName: "dag.index", - model: this.get("model.dagID") - },{ - text: `Vertex [ ${vertexName} ]`, - routeName: "vertex.index", - model: this.get("model.vertexID") - },{ - text: `Task [ ${taskIndex} ]`, - routeName: "task.index", - model: this.get("model.entityID") - }]; - }), - - tabs: [{ - text: "Task Details", - routeName: "task.index" - }, { - text: "Task Counters", - routeName: "task.counters" - }, { - text: "Task Attempts", - routeName: "task.attempts" - }] -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/task/attempts.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/task/attempts.js b/tez-ui2/src/main/webapp/app/controllers/task/attempts.js deleted file mode 100644 index 6f8257f..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/task/attempts.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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 MultiTableController from '../multi-table'; -import ColumnDefinition from 'em-table/utils/column-definition'; - -import AutoCounterColumn from '../../mixins/auto-counter-column'; - -export default MultiTableController.extend(AutoCounterColumn, { - breadcrumbs: [{ - text: "Task Attempts", - routeName: "task.attempts", - }], - - columns: ColumnDefinition.make([{ - id: 'index', - headerTitle: 'Attempt No', - contentPath: 'index', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "attempt", - model: row.get("entityID"), - text: row.get("index") - }; - } - },{ - id: 'status', - headerTitle: 'Status', - contentPath: 'status', - cellComponentName: 'em-table-status-cell', - observePath: true - },{ - id: 'progress', - headerTitle: 'Progress', - contentPath: 'progress', - cellComponentName: 'em-table-progress-cell', - observePath: true - },{ - id: 'startTime', - headerTitle: 'Start Time', - contentPath: 'startTime', - cellComponentName: 'date-formatter', - },{ - id: 'endTime', - headerTitle: 'End Time', - contentPath: 'endTime', - cellComponentName: 'date-formatter', - },{ - id: 'duration', - headerTitle: 'Duration', - contentPath: 'duration', - cellDefinition: { - type: 'duration' - } - },{ - id: 'containerID', - headerTitle: 'Container', - contentPath: 'containerID' - },{ - id: 'nodeID', - headerTitle: 'Node', - contentPath: 'nodeID' - }, { - id: 'log', - headerTitle: 'Log', - contentPath: 'logURL', - cellComponentName: 'em-table-linked-cell', - cellDefinition: { - target: "_blank" - }, - getCellContent: function (row) { - return [{ - href: row.get("logURL"), - text: "View" - }, { - href: row.get("logURL"), - text: "Download", - download: true - }]; - } - }]) -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/task/counters.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/task/counters.js b/tez-ui2/src/main/webapp/app/controllers/task/counters.js deleted file mode 100644 index 4aa071c..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/task/counters.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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 CountersTableController from '../counters-table'; - -export default CountersTableController.extend({ - breadcrumbs: [{ - text: "Task Counters", - routeName: "task.counters", - }], -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/task/index.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/task/index.js b/tez-ui2/src/main/webapp/app/controllers/task/index.js deleted file mode 100644 index ec48ac4..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/task/index.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 PageController from '../page'; - -export default PageController.extend({ - attempts: null, -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/vertex.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/vertex.js b/tez-ui2/src/main/webapp/app/controllers/vertex.js deleted file mode 100644 index 78f5db9..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/vertex.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import ParentController from './parent'; - -export default ParentController.extend({ - breadcrumbs: Ember.computed("model.dag", function () { - var dagName = this.get("model.dag.name"), - vertexName = this.get("model.name") || this.get("model.index"); - - return [{ - text: `DAG [ ${dagName} ]`, - routeName: "dag.index", - model: this.get("model.dagID") - },{ - text: `Vertex [ ${vertexName} ]`, - routeName: "vertex.index", - model: this.get("model.vertexID") - }]; - }), - - tabs: [{ - text: "Vertex Details", - routeName: "vertex.index" - }, { - text: "Vertex Counters", - routeName: "vertex.counters" - }, { - text: "Tasks", - routeName: "vertex.tasks" - }, { - text: "Task Attempts", - routeName: "vertex.attempts" - }] -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/vertex/attempts.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/vertex/attempts.js b/tez-ui2/src/main/webapp/app/controllers/vertex/attempts.js deleted file mode 100644 index bdda7f8..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/vertex/attempts.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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 MultiTableController from '../multi-table'; -import ColumnDefinition from 'em-table/utils/column-definition'; - -import AutoCounterColumn from '../../mixins/auto-counter-column'; - -export default MultiTableController.extend(AutoCounterColumn, { - breadcrumbs: [{ - text: "Task Attempts", - routeName: "vertex.attempts", - }], - - columns: ColumnDefinition.make([{ - id: 'index', - headerTitle: 'Attempt No', - contentPath: 'index', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "attempt", - model: row.get("entityID"), - text: row.get("index") - }; - } - },{ - id: 'taskIndex', - headerTitle: 'Task Index', - contentPath: 'taskIndex', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "task", - model: row.get("taskID"), - text: row.get("taskIndex") - }; - } - },{ - id: 'status', - headerTitle: 'Status', - contentPath: 'status', - cellComponentName: 'em-table-status-cell', - observePath: true - },{ - id: 'progress', - headerTitle: 'Progress', - contentPath: 'progress', - cellComponentName: 'em-table-progress-cell', - observePath: true - },{ - id: 'startTime', - headerTitle: 'Start Time', - contentPath: 'startTime', - cellComponentName: 'date-formatter', - },{ - id: 'endTime', - headerTitle: 'End Time', - contentPath: 'endTime', - cellComponentName: 'date-formatter', - },{ - id: 'duration', - headerTitle: 'Duration', - contentPath: 'duration', - cellDefinition: { - type: 'duration' - } - },{ - id: 'containerID', - headerTitle: 'Container', - contentPath: 'containerID' - },{ - id: 'nodeID', - headerTitle: 'Node', - contentPath: 'nodeID' - }, { - id: 'log', - headerTitle: 'Log', - contentPath: 'logURL', - cellComponentName: 'em-table-linked-cell', - cellDefinition: { - target: "_blank" - }, - getCellContent: function (row) { - return [{ - href: row.get("logURL"), - text: "View" - }, { - href: row.get("logURL"), - text: "Download", - download: true - }]; - } - }]) -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/vertex/counters.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/vertex/counters.js b/tez-ui2/src/main/webapp/app/controllers/vertex/counters.js deleted file mode 100644 index 1213728..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/vertex/counters.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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 CountersTableController from '../counters-table'; - -export default CountersTableController.extend({ - breadcrumbs: [{ - text: "Vertex Counters", - routeName: "vertex.counters", - }], -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/vertex/index.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/vertex/index.js b/tez-ui2/src/main/webapp/app/controllers/vertex/index.js deleted file mode 100644 index c14d113..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/vertex/index.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import PageController from '../page'; - -function taskLinkComputerFactory(name) { - return Ember.computed(name, function () { - var tasks = this.get(name); - - if(tasks) { - return tasks.map(function (task) { - return { - routeName: 'task', - model: task, - text: task - }; - }); - } - }); -} - -export default PageController.extend({ - - pathname: Ember.computed(function() { - return window.location.pathname; - }).volatile(), - - firstTasksToStart: taskLinkComputerFactory("model.firstTasksToStart"), - lastTasksToFinish: taskLinkComputerFactory("model.lastTasksToFinish"), - shortestDurationTasks: taskLinkComputerFactory("model.shortestDurationTasks"), - longestDurationTasks: taskLinkComputerFactory("model.longestDurationTasks"), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/controllers/vertex/tasks.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/controllers/vertex/tasks.js b/tez-ui2/src/main/webapp/app/controllers/vertex/tasks.js deleted file mode 100644 index ed26173..0000000 --- a/tez-ui2/src/main/webapp/app/controllers/vertex/tasks.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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 MultiTableController from '../multi-table'; -import ColumnDefinition from 'em-table/utils/column-definition'; - -import AutoCounterColumn from '../../mixins/auto-counter-column'; - -export default MultiTableController.extend(AutoCounterColumn, { - breadcrumbs: [{ - text: "Tasks", - routeName: "vertex.tasks", - }], - - columns: ColumnDefinition.make([{ - id: 'index', - headerTitle: 'Task Index', - contentPath: 'index', - cellComponentName: 'em-table-linked-cell', - getCellContent: function (row) { - return { - routeName: "task", - model: row.get("entityID"), - text: row.get("index") - }; - } - },{ - id: 'status', - headerTitle: 'Status', - contentPath: 'status', - cellComponentName: 'em-table-status-cell', - observePath: true - },{ - id: 'progress', - headerTitle: 'Progress', - contentPath: 'progress', - cellComponentName: 'em-table-progress-cell', - observePath: true - },{ - id: 'startTime', - headerTitle: 'Start Time', - contentPath: 'startTime', - cellComponentName: 'date-formatter', - },{ - id: 'endTime', - headerTitle: 'End Time', - contentPath: 'endTime', - cellComponentName: 'date-formatter', - },{ - id: 'duration', - headerTitle: 'Duration', - contentPath: 'duration', - cellDefinition: { - type: 'duration' - } - }]) -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/entities/am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/entities/am.js b/tez-ui2/src/main/webapp/app/entities/am.js deleted file mode 100644 index 56d061d..0000000 --- a/tez-ui2/src/main/webapp/app/entities/am.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import Entity from './entity'; - -export default Entity.extend({ - - idsToJoin: null, - deferred: null, - - resetJoiner: Ember.on("init", function () { - this.set("idsToJoin", []); - this.set("deferred", Ember.RSVP.defer()); - }), - - queryRecord: function (loader, id, options, query, urlParams) { - this.get("idsToJoin").push(query[this.get("queryPropertyToJoin")]); - - // Yup, only the last query would be taken by design - Ember.run.once(this, "queryJoinedRecords", loader, options, query, urlParams); - - return this.get("deferred.promise").then(function (recordHash) { - return recordHash[id]; - }); - }, - - queryJoinedRecords: function (loader, options, query, urlParams) { - var deferred = this.get("deferred"); - - query[this.get("queryPropertyToJoin")] = this.get("idsToJoin").join(","); - this.query(loader, query, options, urlParams).then(function (records) { - deferred.resolve(records.reduce(function (recordHash, record) { - recordHash[record.get("entityID")] = record; - return recordHash; - }, {})); - }, function (error) { - deferred.reject(error); - }).finally(this.resetJoiner.bind(this)); - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/entities/attempt-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/entities/attempt-am.js b/tez-ui2/src/main/webapp/app/entities/attempt-am.js deleted file mode 100644 index 077c494..0000000 --- a/tez-ui2/src/main/webapp/app/entities/attempt-am.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 AMEntity from './am'; - -export default AMEntity.extend({ - queryPropertyToJoin: "attemptID", -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/entities/entity.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/entities/entity.js b/tez-ui2/src/main/webapp/app/entities/entity.js deleted file mode 100644 index 462a148..0000000 --- a/tez-ui2/src/main/webapp/app/entities/entity.js +++ /dev/null @@ -1,181 +0,0 @@ -/*global more*/ -/** - * 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 Ember from 'ember'; -import NameMixin from '../mixins/name'; - -var MoreObject = more.Object; - -var Entity = Ember.Object.extend(NameMixin, { - - queryRecord: function (loader, id, options, query, urlParams) { - var that = this; - return this.get('store').queryRecord(this.get("name"), { - id: id, - nameSpace: loader.get('nameSpace'), - params: query, - urlParams: urlParams - }).then(function (record) { - return that._loadAllNeeds(loader, record, options, urlParams); - }); - }, - - query: function (loader, query, options, urlParams) { - var that = this; - return this.get('store').query(this.get("name"), { - nameSpace: loader.get('nameSpace'), - params: query, - urlParams: urlParams - }).then(function (records) { - return Ember.RSVP.all(records.map(function (record) { - return that._loadAllNeeds(loader, record, options, urlParams); - })).then(function () { - return records; - }); - }); - }, - - normalizeNeed: function(name, needOptions, parentModel, queryParams, urlParams) { - var need = { - name: name, - type: name, - idKey: needOptions, - - loadType: "", // Possible values lazy, demand - silent: false, - - //urlParams - //queryParams - }, - overrides = {}; - - if(typeof needOptions === 'object') { - Ember.assert(`idKey not defined for need '${name}'!`, needOptions.idKey); - - if(MoreObject.isFunction(needOptions.urlParams)) { - overrides.urlParams = needOptions.urlParams.call(needOptions, parentModel); - } - if(MoreObject.isFunction(needOptions.queryParams)) { - overrides.queryParams = needOptions.queryParams.call(needOptions, parentModel); - } - - overrides = Ember.Object.create({}, needOptions, overrides); - } - - if(queryParams) { - overrides.queryParams = Ember.$.extend({}, overrides.queryParams, queryParams); - } - if(urlParams) { - overrides.urlParams = Ember.$.extend({}, overrides.urlParams, urlParams); - } - - return Ember.Object.create(need, overrides); - }, - - _loadNeed: function (loader, parentModel, needOptions, options, index) { - var needLoader, - that = this, - types = needOptions.type, - type; - - if(!Array.isArray(types)) { - types = [types]; - } - - index = index || 0; - type = types[index]; - - needLoader = loader.queryRecord( - type, - parentModel.get(needOptions.idKey), - options, - needOptions.queryParams, - needOptions.urlParams - ); - - needLoader = needLoader.then(function (model) { - parentModel.set(needOptions.name, model); - parentModel.refreshLoadTime(); - return model; - }); - - needLoader = needLoader.catch(function (err) { - if(++index < types.length) { - return that._loadNeed(loader, parentModel, needOptions, options, index); - } - - if(needOptions.silent) { - parentModel.set(needOptions.name, null); - parentModel.refreshLoadTime(); - } - else { - throw(err); - } - }); - - return needLoader; - }, - - loadNeed: function (loader, parentModel, needName, options, queryParams, urlParams) { - var needOptions = parentModel.get(`needs.${needName}`); - Ember.assert(`Need '${needName}' not defined in model!`, needOptions); - - needOptions = this.normalizeNeed(needName, needOptions, parentModel, queryParams, urlParams); - return this._loadNeed(loader, parentModel, needOptions, options); - }, - - _loadAllNeeds: function (loader, model, options/*, urlParams*/) { - var needsPromise = this.loadAllNeeds(loader, model, options); - - if(needsPromise) { - return needsPromise.then(function () { - return model; - }); - } - - return model; - }, - - loadAllNeeds: function (loader, parentModel, options, queryParams, urlParams) { - var needLoaders = [], - that = this, - needs = parentModel.get("needs"); - - if(needs) { - MoreObject.forEach(needs, function (name, needOptions) { - needOptions = that.normalizeNeed(name, needOptions, parentModel, queryParams, urlParams); - - if(needOptions.loadType !== "demand") { - let needLoader = that._loadNeed(loader, parentModel, needOptions, options); - - if(needOptions.loadType !== "lazy") { - needLoaders.push(needLoader); - } - } - }); - } - - if(needLoaders.length) { - return Ember.RSVP.all(needLoaders); - } - }, - -}); - -export default Entity; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/entities/task-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/entities/task-am.js b/tez-ui2/src/main/webapp/app/entities/task-am.js deleted file mode 100644 index 0e41239..0000000 --- a/tez-ui2/src/main/webapp/app/entities/task-am.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 AMEntity from './am'; - -export default AMEntity.extend({ - queryPropertyToJoin: "taskID", -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/entities/vertex-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/entities/vertex-am.js b/tez-ui2/src/main/webapp/app/entities/vertex-am.js deleted file mode 100644 index 15a26da..0000000 --- a/tez-ui2/src/main/webapp/app/entities/vertex-am.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 AMEntity from './am'; - -export default AMEntity.extend({ - queryPropertyToJoin: "vertexID", -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/errors/unlinked-promise.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/errors/unlinked-promise.js b/tez-ui2/src/main/webapp/app/errors/unlinked-promise.js deleted file mode 100644 index 770b095..0000000 --- a/tez-ui2/src/main/webapp/app/errors/unlinked-promise.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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 Ember from 'ember'; - -let UnlinkedPromise = function (errors, message = 'Promise chain was unlinked.') { - Ember.Error.call(this, message); - - this.errors = errors || [ - { - title: 'Unlinked promise chain.', - detail: message - } - ]; -}; - -UnlinkedPromise.prototype = Object.create(Ember.Error.prototype); - -export default UnlinkedPromise; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/index.html ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/index.html b/tez-ui2/src/main/webapp/app/index.html deleted file mode 100644 index 757d663..0000000 --- a/tez-ui2/src/main/webapp/app/index.html +++ /dev/null @@ -1,47 +0,0 @@ -<!-- -* 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. ---> - -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <title>Tez UI</title> - <meta name="description" content=""> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - {{content-for 'head'}} - - <link rel="shortcut icon" href="assets/images/favicon.png" type="image/x-icon"> - - <link rel="stylesheet" href="assets/vendor.css"> - <link rel="stylesheet" href="assets/tez-ui.css"> - - {{content-for 'head-footer'}} - </head> - <body> - {{content-for 'body'}} - - <script src="config/configs.env" integrity=""></script> - - <script src="assets/vendor.js"></script> - <script src="assets/tez-ui.js"></script> - - {{content-for 'body-footer'}} - </body> -</html> http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/entities.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/entities.js b/tez-ui2/src/main/webapp/app/initializers/entities.js deleted file mode 100644 index b5afd31..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/entities.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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 registerWithContainer from "ember-cli-auto-register/register"; - -export function initialize(application) { - registerWithContainer("entity", application); - application.inject('entitie', 'store', 'service:store'); -} - -export default { - name: 'entities', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/env.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/env.js b/tez-ui2/src/main/webapp/app/initializers/env.js deleted file mode 100644 index 591d989..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/env.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - */ - -export function initialize(application) { - application.inject('controller', 'env', 'service:env'); - application.inject('route', 'env', 'service:env'); - application.inject('adapter', 'env', 'service:env'); - application.inject('serializer', 'env', 'service:env'); -} - -export default { - name: 'env', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/hosts.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/hosts.js b/tez-ui2/src/main/webapp/app/initializers/hosts.js deleted file mode 100644 index ec6f7a7..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/hosts.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - */ - -export function initialize(application) { - application.inject('controller', 'hosts', 'service:hosts'); - application.inject('adapter', 'hosts', 'service:hosts'); - application.inject('route', 'hosts', 'service:hosts'); -} - -export default { - name: 'hosts', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/jquery.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/jquery.js b/tez-ui2/src/main/webapp/app/initializers/jquery.js deleted file mode 100644 index 2c34b1d..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/jquery.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 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 Ember from 'ember'; - -export function initialize(/* application */) { - Ember.$(document).tooltip({ - delay: 20, - tooltipClass: 'generic-tooltip' - }); - - Ember.$.ajaxPrefilter(function(options, originalOptions, jqXHR) { - jqXHR.requestOptions = originalOptions; - }); - - Ember.$.ajaxSetup({ - cache: false - }); -} - -export default { - name: 'jquery', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/loader.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/loader.js b/tez-ui2/src/main/webapp/app/initializers/loader.js deleted file mode 100644 index 2956d2c..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/loader.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 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. - */ - -export function initialize(application) { - application.inject('route', 'loader', 'service:loader'); - application.inject('entity', 'loader', 'service:loader'); -} - -export default { - name: 'loader', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/initializers/local-storage.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/initializers/local-storage.js b/tez-ui2/src/main/webapp/app/initializers/local-storage.js deleted file mode 100644 index 8504c35..0000000 --- a/tez-ui2/src/main/webapp/app/initializers/local-storage.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - */ - -export function initialize(application) { - application.inject('controller', 'localStorage', 'service:localStorage'); -} - -export default { - name: 'local-storage', - initialize -}; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/mixins/auto-counter-column.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/mixins/auto-counter-column.js b/tez-ui2/src/main/webapp/app/mixins/auto-counter-column.js deleted file mode 100644 index 0504d4b..0000000 --- a/tez-ui2/src/main/webapp/app/mixins/auto-counter-column.js +++ /dev/null @@ -1,69 +0,0 @@ -/*global more*/ - -/** - * 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 Ember from 'ember'; - -var MoreObject = more.Object; - -export default Ember.Mixin.create({ - columnSelectorMessage: "<span class='per-io'>Per-IO counter</span> selection wouldn't persist.", - - getCounterColumns: function () { - var columns = [], - records = this.get("model"), - counterHash = {}; - - this._super().forEach(function (column) { - var groupHash = - counterHash[column.counterGroupName] = - counterHash[column.counterGroupName] || {}; - groupHash[column.counterName] = column.counterName; - }); - - if(records) { - records.forEach(function (record) { - let counterGroupsHash = Ember.get(record, 'counterGroupsHash'); - - if(counterGroupsHash) { - MoreObject.forEach(counterGroupsHash, function (groupName, countersHash) { - var groupHash = - counterHash[groupName] = - counterHash[groupName] || {}; - - MoreObject.forEach(countersHash, function (counterName) { - groupHash[counterName] = counterName; - }); - }); - } - }); - } - - MoreObject.forEach(counterHash, function (groupName, counters) { - MoreObject.forEach(counters, function (counterName) { - columns.push({ - counterName: counterName, - counterGroupName: groupName - }); - }); - }); - - return columns; - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/mixins/name.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/mixins/name.js b/tez-ui2/src/main/webapp/app/mixins/name.js deleted file mode 100644 index fe0c524..0000000 --- a/tez-ui2/src/main/webapp/app/mixins/name.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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 Ember from 'ember'; - -export default Ember.Mixin.create({ - - name: Ember.computed(function () { - var name = this.toString(); - name = name.substr(0, name.indexOf("::")); - name = name.substr(name.indexOf(":") + 1); - return name; - }), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/abstract.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/abstract.js b/tez-ui2/src/main/webapp/app/models/abstract.js deleted file mode 100644 index 24bcbd3..0000000 --- a/tez-ui2/src/main/webapp/app/models/abstract.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -export default DS.Model.extend({ - loadTime: null, - - mergedProperties: ["needs"], - - refreshLoadTime: function () { - this.set('loadTime', new Date()); - }, - - //TODO - Find a better alternative to detect property change in a model - _notifyProperties: function (keys) { - this.refreshLoadTime(); - return this._super(keys); - }, - - didLoad: function () { - this.refreshLoadTime(); - }, - - entityID: DS.attr("string"), - - index: Ember.computed("entityID", function () { - var id = this.get("entityID") || ""; - return id.substr(id.lastIndexOf('_') + 1); - }), - - status: DS.attr("string"), - isComplete: Ember.computed("status", function () { - switch(this.get("status")) { - case "SUCCEEDED": - case "FINISHED": - case "FAILED": - case "KILLED": - return true; - } - return false; - }), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/ahs-app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/ahs-app.js b/tez-ui2/src/main/webapp/app/models/ahs-app.js deleted file mode 100644 index c18bed9..0000000 --- a/tez-ui2/src/main/webapp/app/models/ahs-app.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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 Ember from 'ember'; - -import DS from 'ember-data'; -import AbstractModel from './abstract'; - -export default AbstractModel.extend({ - attemptID: DS.attr('string'), - - name: DS.attr('string'), - queue: DS.attr('string'), - user: DS.attr('string'), - type: DS.attr('string'), - - status: DS.attr('string'), - finalStatus: DS.attr('string'), - - startTime: DS.attr('number'), - endTime: DS.attr('number'), - duration: Ember.computed("startTime", "endTime", function () { - var duration = this.get("endTime") - this.get("startTime"); - return duration > 0 ? duration : null; - }), - - diagnostics: DS.attr('string'), -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/am-timeline.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/am-timeline.js b/tez-ui2/src/main/webapp/app/models/am-timeline.js deleted file mode 100644 index bfd03b3..0000000 --- a/tez-ui2/src/main/webapp/app/models/am-timeline.js +++ /dev/null @@ -1,46 +0,0 @@ -/*global more*/ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -import TimelineModel from './timeline'; - -var MoreObject = more.Object; - -// For all AM related entities that can be updated from AM -export default TimelineModel.extend({ - - am: DS.attr("object"), // Represents data from am - - status: Ember.computed("am.status", "atsStatus", "app.status", "app.finalStatus", function () { - return this.get("am.status") || this._super(); - }), - - progress: Ember.computed("am.progress", "status", function () { - var progress = this.get("am.progress"); - return MoreObject.isNumber(progress) ? progress : this._super(); - }), - - counterGroupsHash: Ember.computed("am.counterGroupsHash", "_counterGroups", function () { - var amCounters = this.get("am.counterGroupsHash"), - atsCounters = this._super(); - return amCounters ? Ember.$.extend({}, atsCounters, amCounters) : atsCounters; - }) -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/am.js b/tez-ui2/src/main/webapp/app/models/am.js deleted file mode 100644 index 46ec75e..0000000 --- a/tez-ui2/src/main/webapp/app/models/am.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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 DS from 'ember-data'; - -import AbstractModel from './abstract'; - -export default AbstractModel.extend({ - - entityID: DS.attr("string"), - - status: DS.attr("string"), - progress: DS.attr("number"), - - counterGroupsHash: DS.attr("object") -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/app-rm.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/app-rm.js b/tez-ui2/src/main/webapp/app/models/app-rm.js deleted file mode 100644 index 34bf6b3..0000000 --- a/tez-ui2/src/main/webapp/app/models/app-rm.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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 RMModel from './rm'; - -export default RMModel.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/app.js b/tez-ui2/src/main/webapp/app/models/app.js deleted file mode 100644 index eabb61f..0000000 --- a/tez-ui2/src/main/webapp/app/models/app.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -import TimelineModel from './timeline'; - -export default TimelineModel.extend({ - needs:{ - app: { - type: ["AhsApp", "appRm"], - idKey: "appID", - silent: true - } - }, - - appID: Ember.computed("entityID", function () { - return this.get("entityID").substr(4); - }), - - domain: DS.attr("string"), - - user: DS.attr("string"), - - buildTime: DS.attr("string"), - tezRevision: DS.attr("string"), - tezVersion: DS.attr("string"), - - configs: DS.attr("object"), -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/attempt-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/attempt-am.js b/tez-ui2/src/main/webapp/app/models/attempt-am.js deleted file mode 100644 index 55722b6..0000000 --- a/tez-ui2/src/main/webapp/app/models/attempt-am.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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 AMModel from './am'; - -export default AMModel.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/attempt.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/attempt.js b/tez-ui2/src/main/webapp/app/models/attempt.js deleted file mode 100644 index e04c8c1..0000000 --- a/tez-ui2/src/main/webapp/app/models/attempt.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -import AMTimelineModel from './am-timeline'; - -export default AMTimelineModel.extend({ - needs: { - dag: { - type: "dag", - idKey: "dagID", - silent: true - }, - am: { - type: "attemptAm", - idKey: "entityID", - loadType: "demand", - queryParams: function (model) { - var vertexIndex = parseInt(model.get("vertexIndex")), - taskIndex = parseInt(model.get("taskIndex")), - attemptIndex = parseInt(model.get("index")); - return { - attemptID: `${vertexIndex}_${taskIndex}_${attemptIndex}`, - dagID: parseInt(model.get("dag.index")), - counters: "*" - }; - }, - urlParams: function (model) { - return { - app_id: model.get("appID") - }; - } - } - }, - - taskID: DS.attr('string'), - taskIndex: Ember.computed("taskID", function () { - var id = this.get("taskID") || ""; - return id.substr(id.lastIndexOf('_') + 1); - }), - - vertexID: DS.attr('string'), - vertexIndex: Ember.computed("vertexID", function () { - var id = this.get("vertexID") || ""; - return id.substr(id.lastIndexOf('_') + 1); - }), - vertexName: Ember.computed("vertexID", "dag", function () { - var vertexID = this.get("vertexID"); - return this.get(`dag.vertexIdNameMap.${vertexID}`); - }), - - dagID: DS.attr('string'), - dag: DS.attr('object'), // Auto-loaded by need - - containerID: DS.attr('string'), - nodeID: DS.attr('string'), - - logURL: DS.attr('string'), -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/dag-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/dag-am.js b/tez-ui2/src/main/webapp/app/models/dag-am.js deleted file mode 100644 index 55722b6..0000000 --- a/tez-ui2/src/main/webapp/app/models/dag-am.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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 AMModel from './am'; - -export default AMModel.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/dag.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/dag.js b/tez-ui2/src/main/webapp/app/models/dag.js deleted file mode 100644 index 8e7b523..0000000 --- a/tez-ui2/src/main/webapp/app/models/dag.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -import AMTimelineModel from './am-timeline'; - -export default AMTimelineModel.extend({ - needs: { - am: { - type: "dagAm", - idKey: "entityID", - loadType: "demand", - queryParams: function (model) { - return { - dagID: parseInt(model.get("index")), - counters: "*" - }; - }, - urlParams: function (model) { - return { - app_id: model.get("appID") - }; - } - }, - app: { - type: ["AhsApp", "appRm"], - idKey: "appID", - silent: true - } - }, - - name: DS.attr("string"), - - submitter: DS.attr("string"), - - // Serialize when required - vertices: DS.attr('object'), - edges: DS.attr('object'), - vertexGroups: DS.attr('object'), - - domain: DS.attr("string"), - containerLogs: DS.attr("object"), - queue: Ember.computed("app", function () { - return this.get("app.queue"); - }), - - vertexIdNameMap: DS.attr("object"), - - callerID: DS.attr("string"), - callerType: DS.attr("string"), - callerInfo: DS.attr("string"), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/rm.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/rm.js b/tez-ui2/src/main/webapp/app/models/rm.js deleted file mode 100644 index d35ba23..0000000 --- a/tez-ui2/src/main/webapp/app/models/rm.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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 DS from 'ember-data'; - -import AbstractModel from './abstract'; - -export default AbstractModel.extend({ - entityID: DS.attr("string"), - status: DS.attr("string"), -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/task-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/task-am.js b/tez-ui2/src/main/webapp/app/models/task-am.js deleted file mode 100644 index 55722b6..0000000 --- a/tez-ui2/src/main/webapp/app/models/task-am.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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 AMModel from './am'; - -export default AMModel.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/models/task.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/models/task.js b/tez-ui2/src/main/webapp/app/models/task.js deleted file mode 100644 index b2e7f71..0000000 --- a/tez-ui2/src/main/webapp/app/models/task.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * 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 Ember from 'ember'; -import DS from 'ember-data'; - -import AMTimelineModel from './am-timeline'; - -export default AMTimelineModel.extend({ - needs: { - dag: { - type: "dag", - idKey: "dagID", - silent: true - }, - am: { - type: "taskAm", - idKey: "entityID", - loadType: "demand", - queryParams: function (model) { - var vertexIndex = parseInt(model.get("vertexIndex")), - taskIndex = parseInt(model.get("index")); - return { - taskID: `${vertexIndex}_${taskIndex}`, - dagID: parseInt(model.get("dag.index")), - counters: "*" - }; - }, - urlParams: function (model) { - return { - app_id: model.get("appID") - }; - } - } - }, - - vertexID: DS.attr('string'), - vertexIndex: Ember.computed("vertexID", function () { - var id = this.get("vertexID") || ""; - return id.substr(id.lastIndexOf('_') + 1); - }), - vertexName: Ember.computed("vertexID", "dag", function () { - var vertexID = this.get("vertexID"); - return this.get(`dag.vertexIdNameMap.${vertexID}`); - }), - - dagID: DS.attr('string'), - dag: DS.attr('object'), // Auto-loaded by need - - failedTaskAttempts: DS.attr('number'), -});
